Hacking WIP SDL 1.2.15 for Switch (libnx based)

realWinterMute

Well-Known Member
Member
Joined
Feb 24, 2011
Messages
117
Trophies
1
XP
560
Country
Please refer to SDL2 version on https://github.com/devkitpro maintained by @cpasjuste

Soon I'll commit the SDL1.2 code there too.

About portlibs you'll have to use the ones on https://github.com/devkitpro. @realWinterMute is going to release what needed for installing them soon.

Sorry, but wintermute asked me to keep everything as clean as possible, so I removed my version of the portlibs, that indeed had some bad compilation flags.

Everything is now released. See https://devkitpro.org/viewtopic.php?f=13&t=8702&p=15914#p15914 for details. Check your PMs too
 

sweetlilmre

Active Member
Newcomer
Joined
Aug 15, 2010
Messages
43
Trophies
0
XP
440
Country
Hi,

I used pacman to install SDL2, got a basic hello world up and running, it's very very slick. Nice work!
Looking forward to the SDL 1.2 port!
-(e)
 

sweetlilmre

Active Member
Newcomer
Joined
Aug 15, 2010
Messages
43
Trophies
0
XP
440
Country
How did you get SDL2 SDL_ttf working via pacman packages?
I didn't. By hello world I meant a block of colour on the screen. I'll have a look later though and see what's up with the ttf stuff.
I've been trying to get 1.2 running today with no luck so far.

Sent from my ONEPLUS A3003 using Tapatalk
 

delete12345

Well-Known Member
Member
Joined
Feb 27, 2010
Messages
695
Trophies
1
Age
32
Location
Taipei, Taiwan
XP
1,279
Country
United States
I didn't. By hello world I meant a block of colour on the screen. I'll have a look later though and see what's up with the ttf stuff.
I've been trying to get 1.2 running today with no luck so far.

Sent from my ONEPLUS A3003 using Tapatalk


I was sure WinterMute said SDL 1.2 is not ready yet, and should use SDL2 for the time being.

But, if you are able to get SDL_ttf working on SDL2, it would be awesome to hear. Because the way I know of right now, even with a tiny code calling TTF_Init(), it would fail to compile.
 
Last edited by delete12345,

sweetlilmre

Active Member
Newcomer
Joined
Aug 15, 2010
Messages
43
Trophies
0
XP
440
Country
I was sure WinterMute said SDL 1.2 is not ready yet, and should use SDL2 for the time being.
He did. I was trying to build from the initial source release. There are a ton of projects I would like to port that require 1.2. A 2.0 rework would be too much effort.

-(e)
 

delete12345

Well-Known Member
Member
Joined
Feb 27, 2010
Messages
695
Trophies
1
Age
32
Location
Taipei, Taiwan
XP
1,279
Country
United States
sFtgueV.png


Found out how to set up the flags properly, thanks to TurtleP.
 

realWinterMute

Well-Known Member
Member
Joined
Feb 24, 2011
Messages
117
Trophies
1
XP
560
Country
I forked nop90's SDL1.2 code on Github and patched it to work with the latest (as of now) devkitpro.
This is just for my own experimentation purposes until official is out, but if anyone wants to play...
You can find it on GitHub under my username "sweetlilmre", the repo is called "SDL-SWITCH"
(I can't post links yet, need to up my game it seems :))

Instructions:
  • clone
  • export DEVKITA84 to point to the appropriate path
  • make install
@nop90 I hope you don't mind this? If you do, please ping me and I'll kill this post.

Thanks
-(e)

These instructions are *wrong*. Please do *not* do this.

If you have patches and you have tested them then please PR them to https://github.com/devkitPro/SDL/tree/switch-sdl-1.2. Once we get a working port we can roll a package rather than having half finished and improperly built forks all over the place.
 

hippy dave

BBMB
Member
Joined
Apr 30, 2012
Messages
9,894
Trophies
2
XP
29,480
Country
United Kingdom
Sorry for bumping, did this SDL 1.2 get finished and everything? I've seen stuff using SDL2, but obviously 1.2 has its uses for various ports too.
 

nop90

Well-Known Member
OP
Member
Joined
Jan 11, 2014
Messages
1,556
Trophies
0
Location
Rome
XP
3,136
Country
Italy
the lib is now maintained in devkitPro and an updated version can be downloaded with pacman. Main coder shoulb be @cpasjuste

At the moment I'm not working on switch, next week I'm going to release a new retroguru game (completely wrotre bt me) at Retrokomp in Polland, so I'm very busy testing and cleaning everything for the release, than I and have a project for a game on an old handheld.

But I'm considering to start a switch project for the gbatemp competition.
 
Last edited by nop90,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Materia_tofu @ Materia_tofu:
    im not a very bright individual, but we live and we learn
  • SylverReZ @ SylverReZ:
    @Materia_tofu, We do learn a lot from plenty of talented individuals.
  • Materia_tofu @ Materia_tofu:
    this is true! i learned how to make soundfont remixes from a friend back in 2021
    +1
  • BakerMan @ BakerMan:
    Update on my brother: He's home now, tired and hungry, obviously, but other than that, seems to be doing fine.
    +2
  • Veho @ Veho:
    That's a relief to hear. Do you know what happened?
  • SylverReZ @ SylverReZ:
    @BakerMan, Any idea what happened? I hope that your brother's doing good.
  • BakerMan @ BakerMan:
    Well, from what I've heard from my parents, he had a seizure last night, perhaps an epileptic episode, fucking died, had a near death experience, my dad called the paramedics, they showed up, took him to the hospital, and he woke up covered in tubes, and started complaining.
  • BakerMan @ BakerMan:
    He couldn't eat until after his MRI, when he had a bomb pop.
  • BakerMan @ BakerMan:
    What matters now is that he's doing alright.
  • Veho @ Veho:
    But you still don't know what it was?
  • Veho @ Veho:
    Has he had seizures before?
  • The Real Jdbye @ The Real Jdbye:
    apparently stress can cause seizures, my brother had one during a test once
  • The Real Jdbye @ The Real Jdbye:
    never had one before that, and never had one since
  • Redleviboy123 @ Redleviboy123:
    Question about game texture chanching Do i need an own game id?
  • The Real Jdbye @ The Real Jdbye:
    @Veho for those that want to
    experience being sonic the hedgehog
  • Veho @ Veho:
    Ah, you mean
    furries.
  • The Real Jdbye @ The Real Jdbye:
    well, sonic fans are a whole separate thing from furries
  • The Real Jdbye @ The Real Jdbye:
    like bronys
  • The Real Jdbye @ The Real Jdbye:
    sonic porn is too weird even for me
  • Dumpflam @ Dumpflam:
    bruh
  • Dumpflam @ Dumpflam:
    guys how do i delete a post
  • The Real Jdbye @ The Real Jdbye:
    you don't
  • The Real Jdbye @ The Real Jdbye:
    you can report it and request deletion
    The Real Jdbye @ The Real Jdbye: you can report it and request deletion