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

Discussion in '3DS - Homebrew Development and Emulators' started by nop90, Jan 30, 2017.

  1. nop90
    OP

    nop90 GBAtemp Maniac

    Member
    1,437
    2,138
    Jan 11, 2014
    Italy
    Rome
    @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.
     
  2. kprovost7314

    kprovost7314 GBAtemp's Official Bara Master

    Member
    1,723
    939
    Dec 24, 2014
    United States
    In that bara manga ( ͡° ͜ʖ ͡°)
    It deletes the extracted folder and downloads a new one is there a way to stop this?
     
  3. nop90
    OP

    nop90 GBAtemp Maniac

    Member
    1,437
    2,138
    Jan 11, 2014
    Italy
    Rome
    try with the makefile attached.
     

    Attached Files:

  4. kprovost7314

    kprovost7314 GBAtemp's Official Bara Master

    Member
    1,723
    939
    Dec 24, 2014
    United States
    In that bara manga ( ͡° ͜ʖ ͡°)
    It makes me install another version different from the one in the original portlibs and gives me the same error.
     
  5. nop90
    OP

    nop90 GBAtemp Maniac

    Member
    1,437
    2,138
    Jan 11, 2014
    Italy
    Rome
    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.

    — Posts automatically merged - Please don't double post! —

    Maybe you are running make clean.
     
  6. kprovost7314

    kprovost7314 GBAtemp's Official Bara Master

    Member
    1,723
    939
    Dec 24, 2014
    United States
    In that bara manga ( ͡° ͜ʖ ͡°)
    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
     
  7. nop90
    OP

    nop90 GBAtemp Maniac

    Member
    1,437
    2,138
    Jan 11, 2014
    Italy
    Rome
    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.
     

    Attached Files:

  8. nop90
    OP

    nop90 GBAtemp Maniac

    Member
    1,437
    2,138
    Jan 11, 2014
    Italy
    Rome
    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.
     
  9. nop90
    OP

    nop90 GBAtemp Maniac

    Member
    1,437
    2,138
    Jan 11, 2014
    Italy
    Rome
    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, Apr 7, 2017
    cearp, Cid2mizard and Fatalanus like this.
  10. Fatalanus

    Fatalanus GBAtemp Advanced Fan

    Member
    591
    213
    Jan 4, 2015
    Romania
    Thanks for your dedication, nop90. You are appreciated from me for that.
     
  11. Manurocker95

    Manurocker95 Game Dev & Pokémon Master

    Member
    689
    182
    May 29, 2016
    Spain
    Madrid
    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?
     
  12. nop90
    OP

    nop90 GBAtemp Maniac

    Member
    1,437
    2,138
    Jan 11, 2014
    Italy
    Rome
    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.
     
  13. nop90
    OP

    nop90 GBAtemp Maniac

    Member
    1,437
    2,138
    Jan 11, 2014
    Italy
    Rome
  14. cearp

    cearp the ticket master

    Member
    7,552
    4,815
    May 26, 2008
    Tuvalu
    thanks for all your work!
    i am really looking forward to sdl2 :)
    i want to port the game i'm working on!
     
  15. nop90
    OP

    nop90 GBAtemp Maniac

    Member
    1,437
    2,138
    Jan 11, 2014
    Italy
    Rome
    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.
     
    cearp likes this.
  16. B_E_P_I_S_M_A_N

    B_E_P_I_S_M_A_N I have graced this thread with my presence.

    Member
    848
    3,207
    Jun 7, 2016
    United States
    Hell
    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 B_E_P_I_S_M_A_N, May 28, 2017
    kprovost7314 likes this.
  17. nop90
    OP

    nop90 GBAtemp Maniac

    Member
    1,437
    2,138
    Jan 11, 2014
    Italy
    Rome
    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.
     
    cearp likes this.
  18. cearp

    cearp the ticket master

    Member
    7,552
    4,815
    May 26, 2008
    Tuvalu
    @nop90, your job is a programmer? or is this hobby you gift us with not the skill that earns you money?
    thanks for the support!
     
  19. nop90
    OP

    nop90 GBAtemp Maniac

    Member
    1,437
    2,138
    Jan 11, 2014
    Italy
    Rome
    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:
     
  20. cearp

    cearp the ticket master

    Member
    7,552
    4,815
    May 26, 2008
    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.

    haha it would be nice to run a company and require new people! but sorry no :)