OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: CoreyC on April 15, 2004, 11:59:32 pm

Title: SDK help (sdl errors)
Post 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
Title: SDK help (sdl errors)
Post by: Wood on April 16, 2004, 02:41:37 am
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
Title: SDK help (sdl errors)
Post by: CoreyC on April 16, 2004, 09:13:27 am
That did it Wood, thanks for the reply.
Title: SDK help (sdl errors)
Post by: ScottYelich on April 16, 2004, 10:59:16 am
heheh, and here I thought I was the only one that the sdk hated.

Scott
Title: SDK help (sdl errors)
Post by: Laze on April 16, 2004, 05:21:21 pm
Okay - my linux is destroyed at the moment - so can someone please post the right couple of steps so i can update the webpage?
Title: SDK help (sdl errors)
Post by: ScottYelich on April 17, 2004, 09:55:08 am
as was stated, use the LDFLAGS setting that\'s in the usage under the installation/tutorial.

this is in the docs:

Code: [Select]
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:

Code: [Select]
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