Using Pearyns Newest Libs?! No Workywork :-(


Quiest

I like turtles!
Joined
Sep 2, 2004
Messages
3,411
Age
40
Location
Dteuschland ;)
After lots of help from Alex., I was able to sort out most stuff, but
I still have the problem that my touchscreen is not working.

I got paeryns newest libs, and I got the devkit included in the RC7 code::blocks pack.
I copied the files over, but I cant use any of the functions from the sdl_gp2x.h,
like SDL_GP2X_MouseType() for example.

So guess I'm missing something here?

I'm getting the error:
CODE
error: 'SDL_GP2X_MouseType' was not declared in this scope

although the function shows up in code::blocks' code completion window.

If I include the "sdl_gp2x.h" I get the some of the following errors:
CODE
c:\devkitGP2X\lib\libSDL.a(SDL_gp2xvideo.o)||In function `SDL_GP2X_SetCursorColour':|
\home\darius\svn\open2x\trunk\libs\SDL-1.2.9\src\video\gp2x\SDL_gp2xvideo.c|1274|multiple definition of `SDL_GP2X_SetCursorColour'|
c:\devkitGP2X\lib\libSDL_image.a(SDL_gp2xvideo.o):\home\Administrator\newtoolchain\SDL-1.2.9\src\video\gp2x\SDL_gp2xvideo.c|1171|first defined here|
||Warning: size of symbol `SDL_GP2X_SetCursorColour' changed from 212 in c:\devkitGP2X\lib\libSDL_image.a(SDL_gp2xvideo.o) to 220 in c:\devkitGP2X\lib\libSDL.a(SDL_gp2xvideo.o)|


Could someone shed some light on this?

I copied the .h in include\sdl\ (overwriting an older one), and the the .a to libs\ and libsgpl\
also overwriting the old ones.
My search dirs are:
Compiler:
CODE
c:\devkitGP2X\include
c:\devkitGP2X\include\SDL
c:\devkitGP2X\lib\gcc\arm-linux\4.0.2\include

Linker:
CODE
c:\devkitGP2X\lib


and my linker options are:
CODE
-static
-lfreetype
-lSDL_image
-ljpeg
-lpng12
-lz
-lSDL_mixer
-lvorbisidec
-lmikmod
-lmad
-lsmpeg
-lSDL
-lgcc
-lm
-lc
-lexpat
-lpthread


Thanks in advance for any help I can get!
 
I havent installed in a custom location o_O it's c:\devkitgp2x
And my apps all build & run on the gp2x, its just that I have no
touchscreen support...

Marc sent me his devkit, but I get the same errors, so I guess it has something to do with my Code::Blocks config.

I cant do more than guessing here anymore :-(
 
Quiest said:
I havent installed in a custom location o_O it's c:\devkitgp2x
what i mean is you said you used the RC7 version, which uses my installer. The installer defaults to installing the whole thing under program files\codeblocks. If you dont install there then yes all the paths configured for codeblocks are wrong. The easy way might be to find that config file and do a quick replace on the paths.
 
Last edited by a moderator:
I didnt use the c::b from rc7, i just got the devkit from it.
But the problem occured with my old devkit too (which I copied together from the gp2x archive)
 
Quiest said:
I didnt use the c::b from rc7, i just got the devkit from it.
But the problem occured with my old devkit too (which I copied together from the gp2x archive)
ah, are you up to trying the c::b from RC7 and see if you get the same result? You must have installed it in order to get to the devlkit, or did you unistall it right after?
 
Last edited by a moderator:
Yes, i did use the installer & unsinstaller
And I guess I will have to install it again and try it to see
if I get the same error, once I am in the mood to do so.
 
Back
Top