Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: SDL 1.2.9 for the DS

                  
   
  1. #1
    DCEmu Coder GPF's Avatar
    Join Date
    Apr 2004
    Location
    Texas
    Age
    52
    Posts
    796
    Rep Power
    78

    Default SDL 1.2.9 for the DS

    OK finally uploaded the newer version of SDL 1.2.9, SDL_image1.2.6 and SDL_mixer-1.2.6 , the precompiled libs and examples have not been updated with the new version yet though. Thanks to parrot from #dsdev for the help upgrading SDL.

    Troy(GPF)
    http://gpf.dcemu.co.uk/ndsSDL.shtml

  2. #2

    Default

    Very very nice news!! Let's try

  3. #3

    Default

    I've got this error when I try to complie anything with new SDL version (1.2.9) old version 1.2.3 compiles well. Also I've tried to complie SDL 1.2.9 sources and the path c:/devkitPro/msys/home/Troy.Davis/prj/SDL/source/joystick/nds/SDL_sysjoystick.c:48: changes to dir where SDL source is allocated.

    Code:
    ltk@debian:~/NDSSDLexamples1.2.9/fireSDL$ make
    linking fireSDL.elf
    /opt/devkitPRO/devkitARM/bin/../lib/gcc/arm-elf/4.0.2/../../../../arm-elf/lib/interwork/libg.a(signalr.o): In function `_kill_r':
    : warning:
    /opt/devkitPRO/libnds/lib/libSDL.a(SDL_sysjoystick.o): In function `SDL_SYS_JoystickInit':
    c:/devkitPro/msys/home/Troy.Davis/prj/SDL/source/joystick/nds/SDL_sysjoystick.c:48: undefined reference to `keysInit'
    collect2: ld returned 1 exit status
    make[1]: *** [/home/ltk/NDSSDLexamples1.2.9/fireSDL/fireSDL.elf] Error 1
    make: *** [build] Error 2
    I use devkitARM r17 and libnds-20060201

  4. #4
    DCEmu Coder GPF's Avatar
    Join Date
    Apr 2004
    Location
    Texas
    Age
    52
    Posts
    796
    Rep Power
    78

    Default

    look like your still using the old libSDL.a . keysInit() was removed from newer version of libnds. New version of SDL 1.2.9 doesnt have that command anymore, so im guessing your linking the old lib.

    Troy(GPF)

  5. #5

    Default

    Many thanks, I´m gonna to install all the again.

  6. #6

    Default

    I've been able to compile all libs except SDL_image, here is the error

    Code:
    In file included from SDL_image-1.2.4/source/IMG_bmp.c:30:
    SDL_image-1.2.4/source/SDL_image.h:59: error: syntax error before 'IMG_Linked_Version'
    SDL_image-1.2.4/source/SDL_image.h:59: warning: type defaults to 'int' in declaration of 'IMG_Linked_Version'
    SDL_image-1.2.4/source/SDL_image.h:59: warning: data definition has no type or storage class
    SDL_image-1.2.4/source/SDL_image.h:69: error: syntax error before 'IMG_LoadTyped_RW'
    SDL_image-1.2.4/source/SDL_image.h:69: warning: type defaults to 'int' in declaration of 'IMG_LoadTyped_RW'
    SDL_image-1.2.4/source/SDL_image.h:69: warning: data definition has no type or storage class
    SDL_image-1.2.4/source/SDL_image.h:71: error: syntax error before 'IMG_Load'
    SDL_image-1.2.4/source/SDL_image.h:71: warning: type defaults to 'int' in declaration of 'IMG_Load'
    SDL_image-1.2.4/source/SDL_image.h:71: warning: data definition has no type or storage class
    SDL_image-1.2.4/source/SDL_image.h:72: error: syntax error before 'IMG_Load_RW'
    SDL_image-1.2.4/source/SDL_image.h:72: warning: type defaults to 'int' in declaration of 'IMG_Load_RW'
    SDL_image-1.2.4/source/SDL_image.h:72: warning: data definition has no type or storage class
    SDL_image-1.2.4/source/SDL_image.h:77: error: syntax error before 'IMG_InvertAlpha'
    SDL_image-1.2.4/source/SDL_image.h:77: warning: type defaults to 'int' in declaration of 'IMG_InvertAlpha'
    SDL_image-1.2.4/source/SDL_image.h:77: warning: data definition has no type or storage class
    SDL_image-1.2.4/source/SDL_image.h:80: error: syntax error before 'IMG_isBMP'
    SDL_image-1.2.4/source/SDL_image.h:80: warning: type defaults to 'int' in declaration of 'IMG_isBMP'
    SDL_image-1.2.4/source/SDL_image.h:80: warning: data definition has no type or storage class
    SDL_image-1.2.4/source/SDL_image.h:81: error: syntax error before 'IMG_isPNM'
    SDL_image-1.2.4/source/SDL_image.h:81: warning: type defaults to 'int' in declaration of 'IMG_isPNM'
    SDL_image-1.2.4/source/SDL_image.h:81: warning: data definition has no type or storage class
    SDL_image-1.2.4/source/SDL_image.h:82: error: syntax error before 'IMG_isXPM'
    SDL_image-1.2.4/source/SDL_image.h:82: warning: type defaults to 'int' in declaration of 'IMG_isXPM'
    SDL_image-1.2.4/source/SDL_image.h:82: warning: data definition has no type or storage class
    SDL_image-1.2.4/source/SDL_image.h:83: error: syntax error before 'IMG_isXCF'
    SDL_image-1.2.4/source/SDL_image.h:83: warning: type defaults to 'int' in declaration of 'IMG_isXCF'
    SDL_image-1.2.4/source/SDL_image.h:83: warning: data definition has no type or storage class
    SDL_image-1.2.4/source/SDL_image.h:84: error: syntax error before 'IMG_isPCX'
    SDL_image-1.2.4/source/SDL_image.h:84: warning: type defaults to 'int' in declaration of 'IMG_isPCX'
    SDL_image-1.2.4/source/SDL_image.h:84: warning: data definition has no type or storage class
    SDL_image-1.2.4/source/SDL_image.h:85: error: syntax error before 'IMG_isGIF'
    SDL_image-1.2.4/source/SDL_image.h:85: warning: type defaults to 'int' in declaration of 'IMG_isGIF'
    SDL_image-1.2.4/source/SDL_image.h:85: warning: data definition has no type or storage class
    SDL_image-1.2.4/source/SDL_image.h:86: error: syntax error before 'IMG_isJPG'
    SDL_image-1.2.4/source/SDL_image.h:86: warning: type defaults to 'int' in declaration of 'IMG_isJPG'
    SDL_image-1.2.4/source/SDL_image.h:86: warning: data definition has no type or storage class
    SDL_image-1.2.4/source/SDL_image.h:87: error: syntax error before 'IMG_isTIF'
    SDL_image-1.2.4/source/SDL_image.h:87: warning: type defaults to 'int' in declaration of 'IMG_isTIF'
    SDL_image-1.2.4/source/SDL_image.h:87: warning: data definition has no type or storage class
    SDL_image-1.2.4/source/SDL_image.h:88: error: syntax error before 'IMG_isPNG'
    SDL_image-1.2.4/source/SDL_image.h:88: warning: type defaults to 'int' in declaration of 'IMG_isPNG'
    SDL_image-1.2.4/source/SDL_image.h:88: warning: data definition has no type or storage class
    SDL_image-1.2.4/source/SDL_image.h:89: error: syntax error before 'IMG_isLBM'
    SDL_image-1.2.4/source/SDL_image.h:89: warning: type defaults to 'int' in declaration of 'IMG_isLBM'
    SDL_image-1.2.4/source/SDL_image.h:89: warning: data definition has no type or storage class
    SDL_image-1.2.4/source/SDL_image.h:92: error: syntax error before 'IMG_LoadBMP_RW'
    SDL_image-1.2.4/source/SDL_image.h:92: warning: type defaults to 'int' in declaration of 'IMG_LoadBMP_RW'
    SDL_image-1.2.4/source/SDL_image.h:92: warning: data definition has no type or storage class
    SDL_image-1.2.4/source/SDL_image.h:93: error: syntax error before 'IMG_LoadPNM_RW'
    SDL_image-1.2.4/source/SDL_image.h:93: warning: type defaults to 'int' in declaration of 'IMG_LoadPNM_RW'
    SDL_image-1.2.4/source/SDL_image.h:93: warning: data definition has no type or storage class
    SDL_image-1.2.4/source/SDL_image.h:94: error: syntax error before 'IMG_LoadXPM_RW'
    SDL_image-1.2.4/source/SDL_image.h:94: warning: type defaults to 'int' in declaration of 'IMG_LoadXPM_RW'
    SDL_image-1.2.4/source/SDL_image.h:94: warning: data definition has no type or storage class
    SDL_image-1.2.4/source/SDL_image.h:95: error: syntax error before 'IMG_LoadXCF_RW'
    SDL_image-1.2.4/source/SDL_image.h:95: warning: type defaults to 'int' in declaration of 'IMG_LoadXCF_RW'
    SDL_image-1.2.4/source/SDL_image.h:95: warning: data definition has no type or storage class
    SDL_image-1.2.4/source/SDL_image.h:96: error: syntax error before 'IMG_LoadPCX_RW'
    SDL_image-1.2.4/source/SDL_image.h:96: warning: type defaults to 'int' in declaration of 'IMG_LoadPCX_RW'
    SDL_image-1.2.4/source/SDL_image.h:96: warning: data definition has no type or storage class
    SDL_image-1.2.4/source/SDL_image.h:97: error: syntax error before 'IMG_LoadGIF_RW'
    SDL_image-1.2.4/source/SDL_image.h:97: warning: type defaults to 'int' in declaration of 'IMG_LoadGIF_RW'
    SDL_image-1.2.4/source/SDL_image.h:97: warning: data definition has no type or storage class
    SDL_image-1.2.4/source/SDL_image.h:98: error: syntax error before 'IMG_LoadJPG_RW'
    SDL_image-1.2.4/source/SDL_image.h:98: warning: type defaults to 'int' in declaration of 'IMG_LoadJPG_RW'
    SDL_image-1.2.4/source/SDL_image.h:98: warning: data definition has no type or storage class
    SDL_image-1.2.4/source/SDL_image.h:99: error: syntax error before 'IMG_LoadTIF_RW'
    SDL_image-1.2.4/source/SDL_image.h:99: warning: type defaults to 'int' in declaration of 'IMG_LoadTIF_RW'
    SDL_image-1.2.4/source/SDL_image.h:99: warning: data definition has no type or storage class
    SDL_image-1.2.4/source/SDL_image.h:100: error: syntax error before 'IMG_LoadPNG_RW'
    SDL_image-1.2.4/source/SDL_image.h:100: warning: type defaults to 'int' in declaration of 'IMG_LoadPNG_RW'
    SDL_image-1.2.4/source/SDL_image.h:100: warning: data definition has no type or storage class
    SDL_image-1.2.4/source/SDL_image.h:101: error: syntax error before 'IMG_LoadTGA_RW'
    SDL_image-1.2.4/source/SDL_image.h:101: warning: type defaults to 'int' in declaration of 'IMG_LoadTGA_RW'
    SDL_image-1.2.4/source/SDL_image.h:101: warning: data definition has no type or storage class
    SDL_image-1.2.4/source/SDL_image.h:102: error: syntax error before 'IMG_LoadLBM_RW'
    SDL_image-1.2.4/source/SDL_image.h:102: warning: type defaults to 'int' in declaration of 'IMG_LoadLBM_RW'
    SDL_image-1.2.4/source/SDL_image.h:102: warning: data definition has no type or storage class
    SDL_image-1.2.4/source/SDL_image.h:104: error: syntax error before 'IMG_ReadXPMFromArray'
    SDL_image-1.2.4/source/SDL_image.h:104: warning: type defaults to 'int' in declaration of 'IMG_ReadXPMFromArray'
    SDL_image-1.2.4/source/SDL_image.h:104: warning: data definition has no type or storage class
    SDL_image-1.2.4/source/IMG_bmp.c:428: error: conflicting types for 'IMG_LoadBMP_RW'
    SDL_image-1.2.4/source/SDL_image.h:92: error: previous declaration of 'IMG_LoadBMP_RW' was here
    make[1]: *** [IMG_bmp.o] Error 1
    
    
    .... and so on

  7. #7
    DCEmu Coder GPF's Avatar
    Join Date
    Apr 2004
    Location
    Texas
    Age
    52
    Posts
    796
    Rep Power
    78

    Default

    add to the top
    Code:
    #ifdef __NDS__
    #include <nds.h>
    #define DECLSPEC
    #define SDLCALL
    #endif
    and then define -D__NDS__ in your makefile

    very strange,
    #include "begin_code.h"
    at the top of that file should have done that automatically, it works on my machines for some reason. Ill have to look into this some more later.

    Troy(GPF)

  8. #8

    Default

    Many thanks again, I added

    Code:
    #ifdef __NDS__
    #include 
    #define DECLSPEC
    #define SDLCALL
    #endif
    to "begin_code.h" and that compiled ok.

  9. #9
    DCEmu Coder GPF's Avatar
    Join Date
    Apr 2004
    Location
    Texas
    Age
    52
    Posts
    796
    Rep Power
    78

    Default

    Quote Originally Posted by LTK
    Many thanks again, I added

    Code:
    #ifdef __NDS__
    #include 
    #define DECLSPEC
    #define SDLCALL
    #endif
    to "begin_code.h" and that compiled ok.
    are you using dos/cmd window or msys? Just curious if thats related to why it didnt work for you originally.

  10. #10
    DCEmu Newbie
    Join Date
    Apr 2006
    Posts
    2
    Rep Power
    0

    Default

    Hello!!!

    I've got this error when I try to complie libpng from SDL 1.2.9.
    Can u help me with this??

    Code:
    C:\Proyectos\NDS\SDL\libpng-1.2.8>make
    arm-elf-gcc -o pngtest pngtest.o -mthumb -mthumb-interwork -L. -L../zlib-1.2.2 -lpng -lz -lm -s c:\proyectos\nds\devkitpro\devkitarm\bin\..\lib\gcc\arm-elf\4.0.2\..\..\..\..\ar
    m-elf\bin\ld.exe: crt0.o: No such file: No such file or directory
    make: *** [pngtest] Error 1
    I have been able to compile: SDL 1.2.9 and zlib, only xDDD. I am very bad compiling things ^^

    Thanks

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •