OESF Portables Forum
Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: CoreyC on April 15, 2004, 11:59:32 pm
-
I\'ve finally got around to trying out the new pdaXrom sdk. I started with the tutorial from the site.
I get a ton of SDL errors running make. I\'ve seen people comment about the same problem in the irc channel, but never saw any kind of solution.
Other non-sdl apps compile fine.
Can somebody help us figure out what is going wrong?
this is what the errors look like. I wont\'t paste al of them since they all look related.
/opt/arm/3.3.2/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XUnmapWindow\'
/opt/arm/3.3.2/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XAllocWMHints\'
/opt/arm/3.3.2/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XGetWMIconName\'
/opt/arm/3.3.2/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XCreateGC\'
/opt/arm/3.3.2/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XOpenDisplay\'
/opt/arm/3.3.2/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XInstallColormap\'
/opt/arm/3.3.2/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XMapRaised\'
collect2: ld returned 1 exit status
make: *** [newvox] Error 1
-
You\'ll probably need to refer to X11 libs when linking the program:
-Wl,-rpath-link,/opt/arm/3.3.2/armv5tel-cacko-linux/X11R6/lib
-
That did it Wood, thanks for the reply.
-
heheh, and here I thought I was the only one that the sdk hated.
Scott
-
Okay - my linux is destroyed at the moment - so can someone please post the right couple of steps so i can update the webpage?
-
as was stated, use the LDFLAGS setting that\'s in the usage under the installation/tutorial.
this is in the docs:
kgb [144]> cat do-configure
./configure --host=armv5tel-cacko-linux --build=i686-linux --x-includes=/opt/arm/3.3.2/armv5tel-cacko-linux/X11R6/include --x-libraries=/opt/arm/3.3.2/armv5tel-cacko-linux/X11R6/lib --disable-debug --prefix=/usr/local
LDFLAGS=-Wl,-rpath-link,/opt/arm/3.3.2/armv5tel-cacko-linux/X11R6/lib
but this is what worked:
LDFLAGS="-Wl,-rpath-link,/opt/arm/3.3.2/armv5tel-cacko-linux/X11R6/lib"
export LDFLAGS
./configure --host=armv5tel-cacko-linux --build=i686-linux--x-includes=/opt/arm/3.3.2/armv5tel-cacko-linux/X11R6/include--x-libraries=/opt/arm/3.3.2/armv5tel-cacko-linux/X11R6/lib
The first configure would probably work too, but the LDFLAGS setting is needed. If that setting won\'t harm compiles, perhaps
it should just always be set.
Scott