Author Topic: SDK help (sdl errors)  (Read 2701 times)

CoreyC

  • Sr. Member
  • ****
  • Posts: 288
    • View Profile
    • http://
SDK help (sdl errors)
« 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

Wood

  • Newbie
  • *
  • Posts: 10
    • View Profile
SDK help (sdl errors)
« Reply #1 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
_________________
Sharp SL-C760 zUbuntu 1.0 RC1

CoreyC

  • Sr. Member
  • ****
  • Posts: 288
    • View Profile
    • http://
SDK help (sdl errors)
« Reply #2 on: April 16, 2004, 09:13:27 am »
That did it Wood, thanks for the reply.

ScottYelich

  • Hero Member
  • *****
  • Posts: 992
    • View Profile
    • http://www.zaurususergroup.com/modules.php?opmodload&namephpWiki&filei
SDK help (sdl errors)
« Reply #3 on: April 16, 2004, 10:59:16 am »
heheh, and here I thought I was the only one that the sdk hated.

Scott

Laze

  • Hero Member
  • *****
  • Posts: 704
    • View Profile
    • http://www.pdaXrom.org
SDK help (sdl errors)
« Reply #4 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?
C760 running pdaXrom lastest ;-)
SL5500 Running Cacko Qtopia
512 MB SD Card, 128 MB CF Card, Prism2 CF Wlan.

Always visit http://www.pdaXrom.org for latest news.

ScottYelich

  • Hero Member
  • *****
  • Posts: 992
    • View Profile
    • http://www.zaurususergroup.com/modules.php?opmodload&namephpWiki&filei
SDK help (sdl errors)
« Reply #5 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