Homebrew [Release] SDL-3DS 1.2.15 - Simple DirectMedia Layer for 3DS

nop90

Well-Known Member
OP
Member
Joined
Jan 11, 2014
Messages
1,556
Trophies
0
Location
Rome
XP
3,036
Country
Italy
@kprovost7314

start from a fres package (delete the one you already tried to compile): you have to comment from row 119 to row 127 of the config.in file. Here is the modified part:

Code:
# if test "x$HAVE_OGG" = "xno"
# then
#  dnl fall back to the old school test
#  XIPH_PATH_OGG(, AC_MSG_ERROR(must have Ogg installed!))
#  libs_save=$LIBS
#  LIBS="$OGG_LIBS"
#  AC_CHECK_FUNC(oggpack_writealign, , AC_MSG_ERROR(Ogg >= 1.0 required !))
#  LIBS=$libs_save
# fi

Than you should be able to build without problems.
 

YugamiSekai

Mr. Picross
Member
Joined
Dec 24, 2014
Messages
2,015
Trophies
1
Age
21
XP
2,273
Country
United States
@kprovost7314

start from a fres package (delete the one you already tried to compile): you have to comment from row 119 to row 127 of the config.in file. Here is the modified part:

Code:
# if test "x$HAVE_OGG" = "xno"
# then
#  dnl fall back to the old school test
#  XIPH_PATH_OGG(, AC_MSG_ERROR(must have Ogg installed!))
#  libs_save=$LIBS
#  LIBS="$OGG_LIBS"
#  AC_CHECK_FUNC(oggpack_writealign, , AC_MSG_ERROR(Ogg >= 1.0 required !))
#  LIBS=$libs_save
# fi

Than you should be able to build without problems.
It deletes the extracted folder and downloads a new one is there a way to stop this?
 

nop90

Well-Known Member
OP
Member
Joined
Jan 11, 2014
Messages
1,556
Trophies
0
Location
Rome
XP
3,036
Country
Italy
It makes me install another version different from the one in the original portlibs and gives me the same error.
Did you modified config.in?

And for the version, yes I used the latest, but you can change it if you prefer. Only minor changes.

--------------------- MERGED ---------------------------

It deletes the extracted folder and downloads a new one is there a way to stop this?
Maybe you are running make clean.
 

YugamiSekai

Mr. Picross
Member
Joined
Dec 24, 2014
Messages
2,015
Trophies
1
Age
21
XP
2,273
Country
United States
Did you modified config.in?

And for the version, yes I used the latest, but you can change it if you prefer. Only minor changes.

--------------------- MERGED ---------------------------


Maybe you are running make clean.
I can't edit directly from the tar file since I'm using WinRAR, when I try to compile from the extracted folder, it says I need the tar, and when I try to re-build the tar I get this error:

Code:
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
make: *** [tremor] Error 2

And I'm not running make clean
 

nop90

Well-Known Member
OP
Member
Joined
Jan 11, 2014
Messages
1,556
Trophies
0
Location
Rome
XP
3,036
Country
Italy
I can't edit directly from the tar file since I'm using WinRAR, when I try to compile from the extracted folder, it says I need the tar, and when I try to re-build the tar I get this error:

Code:
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
make: *** [tremor] Error 2

And I'm not running make clean
in the attached zip there is an already modified config.in and a makefile that after extracting the archive will copy it in the tremor folder.

The config.in file has to be in the same directory of makefile.
 

Attachments

  • Makefile.zip
    2 KB · Views: 246

nop90

Well-Known Member
OP
Member
Joined
Jan 11, 2014
Messages
1,556
Trophies
0
Location
Rome
XP
3,036
Country
Italy
I'm going to release in the next week end a new version of the lib that solves all the remaining known problems.

I solved the problem of closing the application fron the 3ds home menu (for CIA homebrew) and found that the cause of random freeze of the GPU was a bug in citro3d, fixed about a month ago by fincs, but not yet in the master branch (I had to use the "next" branch of the lib).

Now I'm recompiling and testing all my SDL ported games, and if everything is ok, I'll release the new versions in the week end.

Sorry for not updating for long time, but I was busy with a new Retroguru project that will be presented at the next Revision 2017 demoparty in Germany.

I fixed the SDL lib just in time to use it for the 3ds port of this new Retroguru game, that I'll present on GBATemp after the mid of this month.

So, stay tuned for updates.
 

nop90

Well-Known Member
OP
Member
Joined
Jan 11, 2014
Messages
1,556
Trophies
0
Location
Rome
XP
3,036
Country
Italy
New version of the lib is on Github.

Is very stable and has almost all you need to port existing games or make original games for the 3ds.

I added SDL_net, it compiles but is untested. I'll test it with SMW probably.

I'm not going to make other big changes now, but I'll try to fix the buildig of the libs with autotools.

Then I'll start SDL2 (hope to release a first version for this summer)
 
Last edited by nop90,

nop90

Well-Known Member
OP
Member
Joined
Jan 11, 2014
Messages
1,556
Trophies
0
Location
Rome
XP
3,036
Country
Italy
I'd like to start using SDL for making homebrew games but dunno where to start. Could you make a small test example with some funcs working?
No, I'm not going to make a SDL tutorial, there are a lot of them on the web. this is a good one for SDL 1.2 http://lazyfoo.net/SDL_tutorials/

SDL for 3ds has all the standard functions, with some addon that are not foundamental for a beginner.
 

nop90

Well-Known Member
OP
Member
Joined
Jan 11, 2014
Messages
1,556
Trophies
0
Location
Rome
XP
3,036
Country
Italy
thanks for all your work!
i am really looking forward to sdl2 :)
i want to port the game i'm working on!

Already started working on SDL2, but finishing the port to 3ds of Hermes in time for Revision 2017 was the priority.

Now I have to finish the rework of POWDER ( so Jeff Lait will merge my port in his sources) and a lot of people are waiting that I finish the SMW port.

Then I'l finish SDL2.
 
  • Like
Reactions: cearp
D

Deleted User

Guest
Apologies for the necrobump, I'm having trouble getting a simple program I wrote using SDL 1.2 to compile under this. I ran the Makefile scripts for SDL 1.2, as well as for SDL_image, and when I checked /opt/devkitpro/portlibs/3ds/include, the files seemed to be all there. I modified my Makefile like so:

Code:
LIBS    := -lSDL_image -lSDL -lSDLmain -lcitro3d -lctru -lm

but whenever I run make, I get this:

Code:
main.cpp:4:21: fatal error: SDL/SDL.h: No such file or directory

I assume this has something to do with my path, though I'm not sure what, as DEVKITPRO and DEVKITARM are defined in my environment. Any suggestions?

EDIT: Ah, never mind. I edited this line:

Code:
LIBSDIRS := $(CTRULIB) $(PORTLIBS)

and it seemed to work.
 
Last edited by ,
  • Like
Reactions: YugamiSekai

nop90

Well-Known Member
OP
Member
Joined
Jan 11, 2014
Messages
1,556
Trophies
0
Location
Rome
XP
3,036
Country
Italy
Small update that fixes video and mouse using the dual screen mode.

Sorry for not releasing new things from long time, I'm very busy with work.

But I have a lot of project in progress and I plan to release again during the summer when I have alot of free time.
 
  • Like
Reactions: cearp

nop90

Well-Known Member
OP
Member
Joined
Jan 11, 2014
Messages
1,556
Trophies
0
Location
Rome
XP
3,036
Country
Italy
@nop90, your job is a programmer? or is this hobby you gift us with not the skill that earns you money?

I code for hobby from the age of eleven, started coding basic and asm on a C64.

At sixteen when I had my first intel based PC I learned Pacsal, Visual basic and some C.

There was I period I was very interested in hacking and crackig ( falled in love with ORC+ "How to Crack" tutorials) but it was the period of my life I started to be distracted by girls, so never become an 31173 (we used to write it this way instead of 'leet' like kids do now)

At the university studied C++ and a lot of other languages.

I graduated in Electronic Engineering, but it wasn't easy (and it's not easy now) to find a job as Engineer in Italy, so I started working as a programmer. After 4 years as an Enterprise Developer (working mostly in ASP, PHP, JAVA 2EE) I had the opportunity to start working as analyst for a small but fast growing IT Consulting firm.

Now that my technical skills are very obsolete, I work as Client Manager and, when I want to do more interesting things, as a Senior Progect Manager for Business Processes Reengineering projects.

But I like too much coding, so when I don't have to work till late night (that luckily doesn't happen so often now) , I use to code for fun after dinner when my family watch that stupid TV. :)

This is my resume. Do you want to hire me? :rofl2:
 

cearp

瓜老外
Developer
Joined
May 26, 2008
Messages
8,721
Trophies
2
XP
8,468
Country
Tuvalu
wow that is really interesting, thanks for sharing that.
i guess that might happen a lot, people like something (coding, cooking, building, teaching, etc) - and once they are a 'manager' they might miss the true nature of their job.

This is my resume. Do you want to hire me? :rofl2:
haha it would be nice to run a company and require new people! but sorry no :)
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Veho @ Veho:
    Mkay.
  • Veho @ Veho:
    I just ordered another package from China just to spite you.
  • SylverReZ @ SylverReZ:
    Communism lol
  • SylverReZ @ SylverReZ:
    OUR products
  • The Real Jdbye @ The Real Jdbye:
    @LeoTCK actually good quality products are dying out because they can't compete with dropshipped chinese crap
    +2
  • BakerMan @ BakerMan:
    @LeoTCK is your partner the sascrotch or smth?
  • Xdqwerty @ Xdqwerty:
    Good morning
  • Xdqwerty @ Xdqwerty:
    Out of nowhere I got several scars on my forearm and part of my arm and it really itches.
  • AdRoz78 @ AdRoz78:
    Hey, I bought a modchip today and it says "New 2040plus" in the top left corner. Is this a legit chip or was I scammed?
  • Veho @ Veho:
    @AdRoz78 start a thread and post a photo of the chip.
    +2
  • Xdqwerty @ Xdqwerty:
    Yawn
  • S @ salazarcosplay:
    and good morning everyone
    +1
  • K3Nv2 @ K3Nv2:
    @BakerMan, his partner is Luke
  • Sicklyboy @ Sicklyboy:
    Sup nerds
    +1
  • Flame @ Flame:
    oh hi, Sickly
  • K3Nv2 @ K3Nv2:
    Oh hi flame
  • S @ salazarcosplay:
    @K3Nv2 what was your ps4 situation
  • S @ salazarcosplay:
    did you always have a ps4 you never updated
  • S @ salazarcosplay:
    or were you able to get new ps4 tracking it \
    as soon as the hack was announced
  • S @ salazarcosplay:
    or did you have to find a used one with the lower firm ware that was not updated
  • K3Nv2 @ K3Nv2:
    I got this ps4 at launch and never updated since 9.0
  • K3Nv2 @ K3Nv2:
    You got a good chance of buying a used one and asking the seller how often they used or even ask for a Pic of fw and telling them not to update
    K3Nv2 @ K3Nv2: You got a good chance of buying a used one and asking the seller how often they used or even ask...