libSDL vs uclibc

Is it possible to linky agains libSDL when using uclibc? I have a chroot
environment with uclibc (gentoo based) and I have compiled libsdl with
standard USE flags ( I also tested -X, because I’d like to run just agains
fbcon, but no luck)

Any ideas?

g++ -o test.o main.cpp -lSDL

main.cpp: In function int main(int, char**)': main.cpp:100: warning: passingdouble’ for converting 3 of void CTunnel::Draw(SDL_Surface*, SDL_Surface*, int, int)' main.cpp:100: warning: passingfloat’ for converting 4 of void CTunnel::Draw(SDL_Surface*, SDL_Surface*, int, int)' /usr/lib/gcc-lib/i386-gentoo-linux-uclibc/3.3.5-20050130/../../../libSDL.so: undefined reference totermattrs’
/usr/lib/gcc-lib/i386-gentoo-linux-uclibc/3.3.5-20050130/…/…/…/libSDL.so:
undefined reference to endwin' /usr/lib/gcc-lib/i386-gentoo-linux-uclibc/3.3.5-20050130/../../../libSDL.so: undefined reference tonl’
/usr/lib/gcc-lib/i386-gentoo-linux-uclibc/3.3.5-20050130/…/…/…/libSDL.so:
undefined reference to echo' /usr/lib/gcc-lib/i386-gentoo-linux-uclibc/3.3.5-20050130/../../../libSDL.so: undefined reference tonocbreak’
/usr/lib/gcc-lib/i386-gentoo-linux-uclibc/3.3.5-20050130/…/…/…/libSDL.so:
undefined reference to wrefresh' /usr/lib/gcc-lib/i386-gentoo-linux-uclibc/3.3.5-20050130/../../../libSDL.so: undefined reference tocbreak’
/usr/lib/gcc-lib/i386-gentoo-linux-uclibc/3.3.5-20050130/…/…/…/libSDL.so:
undefined reference to waddnstr' /usr/lib/gcc-lib/i386-gentoo-linux-uclibc/3.3.5-20050130/../../../libSDL.so: undefined reference tononl’
/usr/lib/gcc-lib/i386-gentoo-linux-uclibc/3.3.5-20050130/…/…/…/libSDL.so:
undefined reference to keypad' /usr/lib/gcc-lib/i386-gentoo-linux-uclibc/3.3.5-20050130/../../../libSDL.so: undefined reference tonoecho’
/usr/lib/gcc-lib/i386-gentoo-linux-uclibc/3.3.5-20050130/…/…/…/libSDL.so:
undefined reference to intrflush' /usr/lib/gcc-lib/i386-gentoo-linux-uclibc/3.3.5-20050130/../../../libSDL.so: undefined reference toinitscr’
/usr/lib/gcc-lib/i386-gentoo-linux-uclibc/3.3.5-20050130/…/…/…/libSDL.so:
undefined reference to wmove' /usr/lib/gcc-lib/i386-gentoo-linux-uclibc/3.3.5-20050130/../../../libSDL.so: undefined reference tocurs_set’
/usr/lib/gcc-lib/i386-gentoo-linux-uclibc/3.3.5-20050130/…/…/…/libSDL.so:
undefined reference to wgetch' /usr/lib/gcc-lib/i386-gentoo-linux-uclibc/3.3.5-20050130/../../../libSDL.so: undefined reference tostdscr’
/usr/lib/gcc-lib/i386-gentoo-linux-uclibc/3.3.5-20050130/…/…/…/libSDL.so:
undefined reference to wclear' /usr/lib/gcc-lib/i386-gentoo-linux-uclibc/3.3.5-20050130/../../../libSDL.so: undefined reference tonodelay’
/usr/lib/gcc-lib/i386-gentoo-linux-uclibc/3.3.5-20050130/…/…/…/libSDL.so:
undefined reference to `mousemask’
collect2: ld returned 1 exit status

Looks like you need ncurses. I don’t know why though… any SDL
developer want to enlighten me? :slight_smile:

– JoshOn 1/20/06, Bu Bacoo wrote:

Is it possible to linky agains libSDL when using uclibc? I have a chroot
environment with uclibc (gentoo based) and I have compiled libsdl with
standard USE flags ( I also tested -X, because I’d like to run just agains
fbcon, but no luck)

Any ideas?

Joshua Oreman wrote:>On 1/20/06, Bu Bacoo wrote:

Is it possible to linky agains libSDL when using uclibc? I have a chroot
environment with uclibc (gentoo based) and I have compiled libsdl with
standard USE flags ( I also tested -X, because I’d like to run just agains
fbcon, but no luck)

Any ideas?

Looks like you need ncurses. I don’t know why though… any SDL
developer want to enlighten me? :slight_smile:

SDL by itself doesn’t use ncurses

Stephane

this is because aalib doesnt build properly in a uClibc env … i’ll fix this
up in portage
-mikeOn Friday 20 January 2006 11:33, Bu Bacoo wrote:

Is it possible to linky agains libSDL when using uclibc? I have a chroot
environment with uclibc (gentoo based) and I have compiled libsdl with
standard USE flags ( I also tested -X, because I’d like to run just agains
fbcon, but no luck)

Any ideas?