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,276
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,276
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,890
Trophies
2
XP
29,460
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
  • BakerMan @ BakerMan:
    Guys, I just learned my little brother is in the hospital because he had a seizure last night.
  • cearp @ cearp:
    Sorry to hear that BakerMan
    +2
  • BakerMan @ BakerMan:
    Just found out he's doing alright, doing a lot of complaining too, rightfully so. Who wouldn't complain after having a seizure and being hospitalized?
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Glad he is OK and complaining is cool :)
    +1
  • K3Nv2 @ K3Nv2:
    Yeah been there had that no fun
    +1
  • K3Nv2 @ K3Nv2:
    They'll give him sleep studies eegs and possibly one week hospital stay
    +1
  • BakerMan @ BakerMan:
    I hope it's not a week.
  • K3Nv2 @ K3Nv2:
    It's standard so doctors can get a idea about what's going on
  • BakerMan @ BakerMan:
    understood
  • BakerMan @ BakerMan:
    well, i'm glad he seems to be doing fine, and ig i'm going to start spewing goofy shit again
  • BakerMan @ BakerMan:
    Update: Turns out he's epileptic
  • K3Nv2 @ K3Nv2:
    Get a 2nd opinion run mris etc they told me that also
  • Psionic Roshambo @ Psionic Roshambo:
    Also a food allergy study would be a good idea
  • K3Nv2 @ K3Nv2:
    Turns out you can't sprinkle methamphetamine on McDonald's French fries
    +1
  • ZeroT21 @ ZeroT21:
    they wouldn't be called french fries at that point
    +1
  • ZeroT21 @ ZeroT21:
    Probably just meth fries
    +1
  • K3Nv2 @ K3Nv2:
    White fries hold up
    +1
  • The Real Jdbye @ The Real Jdbye:
    @K3Nv2 sure you can
  • BakerMan @ BakerMan:
    why tf do people hate android users? is it the video quality? just because "AnDrOiD = pOoR" bc they don't cost an arm and a leg like iphones do?
    +1
  • BakerMan @ BakerMan:
    i won't be turned off by an iphone, but don't pick on me for having an android, that's just how this shit should work
  • ZeroT21 @ ZeroT21:
    Should say more what these kind of android users say bout nokia 3310 users
  • BigOnYa @ BigOnYa:
    I've owned both iPhone and Androids over the years. Both are just as good, other than Apples higher price. I'm currently on Android, Samsung S21 I think, and very happy with it.
  • K3Nv2 @ K3Nv2:
    Got my 60 minute steps in whew
    +1
    K3Nv2 @ K3Nv2: Got my 60 minute steps in whew +1