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,891
Trophies
2
XP
29,473
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
  • No one is chatting at the moment.
    The Real Jdbye @ The Real Jdbye: never had one before that, and never had one since