Author Topic: Need Help Configuring & Compiling Sdl_gfx  (Read 2833 times)

Seb

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • http://
Need Help Configuring & Compiling Sdl_gfx
« on: February 26, 2006, 06:39:25 am »
hi there

in order to compile famous lincity-ng i need to install SDL_gfx first, since the installation notes say you need to compile SDL from source in order to compile SDL_gfx i did the following:

i UNinstalled sdl_1.2.9_armv5tel.ipk which i had installed before from www.pdaxrom.org, got the SDL-1.2.9 source and installed it by the usual ./configure make make install

then when configuring SDL_gfx i get the following error message:

checking for SDL - version >= 1.2.0... no
*** could not run SDL test program, checking why...
*** the test program failed to compile or link. see the file config.log for the
*** exact error that occured. this usually means SDL was incorrectly installed
*** or that you have moved SDL since it was installed. in the latter case, you
*** may want to edit the sdl-config script: /opt/native/arm/3.4.5-xscale-softvfp/bin/sdl-config
configure: error: *** SDL version 1.2.0 not found!

config.log gives:

configure:6345: gcc -o conftest -g -O2 -DUSE_MMX -I/opt/native/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/include/SDL -D_REENTRANT   conftest.c  -lm -L/opt/native/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/lib -Wl,-rpath,/opt/native/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/lib -lSDL -lpthread >&5
/usr/local/lib/libSDL.so: undefined reference to `DISKAUD_bootstrap'
/usr/local/lib/libSDL.so: undefined reference to `SDL_SYS_JoystickUpdate'
/usr/local/lib/libSDL.so: undefined reference to `SDL_SYS_JoystickOpen'
/usr/local/lib/libSDL.so: undefined reference to `SDL_SYS_JoystickQuit'
/usr/local/lib/libSDL.so: undefined reference to `DSP_bootstrap'
/usr/local/lib/libSDL.so: undefined reference to `SDL_SYS_CDInit'
/usr/local/lib/libSDL.so: undefined reference to `SDL_SYS_JoystickName'
/usr/local/lib/libSDL.so: undefined reference to `X11_bootstrap'
/usr/local/lib/libSDL.so: undefined reference to `ESD_bootstrap'
/usr/local/lib/libSDL.so: undefined reference to `DMA_bootstrap'
/usr/local/lib/libSDL.so: undefined reference to `FBCON_bootstrap'
/usr/local/lib/libSDL.so: undefined reference to `DUMMY_bootstrap'
/usr/local/lib/libSDL.so: undefined reference to `SDL_SYS_JoystickInit'
/usr/local/lib/libSDL.so: undefined reference to `SDL_SYS_JoystickClose'
/usr/local/lib/libSDL.so: undefined reference to `SDL_SYS_CDQuit'
/usr/local/lib/libSDL.so: undefined reference to `DGA_bootstrap'
collect2: ld returned 1 exit status
configure:6351: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "SDL_gfx"
| #define VERSION "2.0.13"
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| /* end confdefs.h.  */
|
| #include <stdio.h>
| #include "SDL.h"
|
| int
| main ()
| {
|  return 0;
|   ;
|   return 0;
| }
configure:6392: error: *** SDL version 1.2.0 not found!

what makes me confused is the line
"*** may want to edit the sdl-config script: /opt/native/arm/3.4.5-xscale-softvfp/bin/sdl-config"
since i don't think *I* installed my SDL there, i think, this belongs somehow to gcc or something

how can i make zaurus use *MY* sdl? or what else am i missing?

many thanks in advance
seb
« Last Edit: February 26, 2006, 05:52:24 pm by Seb »

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Need Help Configuring & Compiling Sdl_gfx
« Reply #1 on: February 26, 2006, 08:59:31 am »
the sdl-config and headers are included in the zgcc image.
it's not really a problem if you installed the same version of sdl.


Where did you install you sdl? /usr/local ?
I don't think gcc look for the library in /usr/local/lib by default
 
you probably need to pass as an argument to configure the path to your sdl library
(see ./configure --help) or in an environement variable LDFLAGS
or maybe you need to set a variable so that the system find your sdl-config script
SLC-860 cacko / senao wifi

dtruchan

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
    • http://
Need Help Configuring & Compiling Sdl_gfx
« Reply #2 on: February 26, 2006, 11:07:55 am »
The configure script allows you to specify the location of SDL.

I built this package last week for wormux, it segfaults on TestFonts and TestRotozoom.
I have not traced the problem yet, so I would say it's not working.
Here it is anyway, if you want it.

 [ Invalid Attachment ]
 [ Invalid Attachment ]

you will need to fix the package names before you install.
Code: [Select]
SDL_gfx_dev = SDL-gfx-dev
SDL_gfx_test = sdl-gfx-test
- becomes _ when you upload.  
« Last Edit: February 26, 2006, 11:10:32 am by dtruchan »
860 Debian EABI
Lexar Cards
WCF11 v2.5
Mittoni SD-CF Adapter
Gentoo

Seb

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • http://
Need Help Configuring & Compiling Sdl_gfx
« Reply #3 on: February 26, 2006, 01:33:13 pm »
firstly thanks to both of you
i will try the ipks first ( thx!   ) - i don't know what sdl_gfx provides and what of this is needed by lincity-ng - i guess i'll see if it works and if not try to find another way
thx
seb

edit:

@dtruchan: i didn't notice the "dev" at first, what exactly did you compile? i presume that the "test"-ipk is the compiled contents of the "test"-folder in the SDL_gfx tarball - but what is the "dev"-ipk? is it dome kind of "devel"-package? because configuring lincity-ng exits with

configure: error: please install SDL_gfx >= 2.0.13

or: does the "devel"-ipk contain the "right" package and could this error be related to the errors you were mentioning?
or: do i have to adjust something else besides running ldconfig after ipkg install of your "devel"-ipk?

thx ia
seb
« Last Edit: February 26, 2006, 02:16:47 pm by Seb »

dtruchan

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
    • http://
Need Help Configuring & Compiling Sdl_gfx
« Reply #4 on: February 26, 2006, 04:21:36 pm »
Quote
firstly thanks to both of you
i will try the ipks first ( thx!   ) - i don't know what sdl_gfx provides and what of this is needed by lincity-ng - i guess i'll see if it works and if not try to find another way
thx
seb

edit:

@dtruchan: i didn't notice the "dev" at first, what exactly did you compile? i presume that the "test"-ipk is the compiled contents of the "test"-folder in the SDL_gfx tarball - but what is the "dev"-ipk? is it dome kind of "devel"-package? because configuring lincity-ng exits with

configure: error: please install SDL_gfx >= 2.0.13

or: does the "devel"-ipk contain the "right" package and could this error be related to the errors you were mentioning?
or: do i have to adjust something else besides running ldconfig after ipkg install of your "devel"-ipk?

thx ia
seb
[div align=\"right\"][a href=\"index.php?act=findpost&pid=116151\"][{POST_SNAPBACK}][/a][/div]


I appended the -dev suffix to denote that it is a development version, has includes and unstripped libs, rather than just a runtime version, no includes and stripped libs.  

try and run:
Code: [Select]
export CFLAGS="-I/usr/include/SDL"before you run configure.

I had to do something similar to build the tests.  
860 Debian EABI
Lexar Cards
WCF11 v2.5
Mittoni SD-CF Adapter
Gentoo

Seb

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • http://
Need Help Configuring & Compiling Sdl_gfx
« Reply #5 on: February 26, 2006, 05:19:42 pm »
yep that did the job    thanks!