Gentoo Archives: gentoo-embedded

From: Jakub Ladman <ladmanj@×××××.cz>
To: gentoo-embedded@l.g.o
Subject: [gentoo-embedded] SDL library usage
Date: Thu, 22 Jun 2006 08:03:06
Message-Id: 200606221001.24096.ladmanj@volny.cz
1 Greetings
2
3 My friend has recomended me SDL library for graphical output of my SuperH4
4 embedded system with framebuffer device.
5
6 After succesfull cross emerge the media-libs/libsdl library, i am trying to
7 crosscompile any demo, but everythings fails.
8
9 Do you have tip to a crosscompilable test software for graphics via sdl?
10
11 Here is output of running Makefile, where i have manually changed gcc compiler
12 to sh4-pc-linux-uclibc.
13
14 ladmanj@trotl ~/src/fire_sh $ make
15 sh4-pc-linux-uclibc-gcc -DPACKAGE=\"fire\" -DVERSION=\"1.0\" -I. -I. -g -O2 -I/usr/include/SDL -D_REENTRANT -c
16 fire.c
17 sh4-pc-linux-uclibc-gcc -g -O2 -I/usr/include/SDL -D_REENTRANT -o fire
18 fire.o -lSDL -lpthread
19 /usr/lib/gcc/sh4-pc-linux-uclibc/3.4.6/../../../../sh4-pc-linux-uclibc/bin/ld:
20 cannot find -lSDL
21 collect2: ld returned 1 exit status
22 make: *** [fire] Error 1
23 ladmanj@trotl ~/src/fire_sh $
24
25
26 It seems, like the cross compiler does not know the native library.
27
28
29 Thanks for your help
30 Best regards
31 Jakub Ladman
32 --
33 gentoo-embedded@g.o mailing list

Replies

Subject Author
Re: [gentoo-embedded] SDL library usage Ned Ludd <solar@g.o>
Re: [gentoo-embedded] SDL library usage Mike Frysinger <vapier@g.o>