I have trouble when using arm-linux- tool to compile SDL.
I configure SDL using microwindow and I follow the README.NanoX.
My building steps:
./configure --disable-video-x11 --disable-video-fbcon
–enable-video-nanox
–with-nanox-pixel-type=[rgb/0888/888/565/555/332/pal]
–host=arm-linux --enable-audio --disable-esd
(I add the last line because my platfrom is arm-arch and there are some
error with esd audio option…)
then
make clean; make; make install
I copy libSDL* to the place where my cross-compiler can find them
Fianlly, I try to build a test in SDL/test/,
cd /SDL/test
arm-linux-gcc -I…/include testalpha.c -lSDL -lm -lpthread
But fail…
here are the error message.
/toolchain/bin/…/lib/gcc-lib/arm-linux/3.2.1/…/…/…/…/arm-linux/bin/ld:
skipping incompatible
/toolchain/bin/…/lib/gcc-lib/arm-linux/3.2.1/…/…/…/libSDL.so when
searching for -lSDL
It skip my SDL library…?!
I can sure cross-tools are correct because I can use them building SDL with
framebuffer(but not microwindow…), and SDL-test files works on my platform
successfully.And microwindow demo works too.
Would any one have ideas to this problem?
Thank you for any help.
(I add the last line because my platfrom is arm-arch and there are some
error with esd audio option…)
then
make clean; make; make install
I copy libSDL* to the place where my cross-compiler can find them
Fianlly, I try to build a test in SDL/test/,
cd /SDL/test
arm-linux-gcc -I…/include testalpha.c -lSDL -lm -lpthread
But fail…
here are the error message.
/toolchain/bin/…/lib/gcc-lib/arm-linux/3.2.1/…/…/…/…/arm-linux/bin/ld:
skipping incompatible
/toolchain/bin/…/lib/gcc-lib/arm-linux/3.2.1/…/…/…/libSDL.so when
searching for -lSDL
It skip my SDL library…?!
Yes, because the SDL library it points to is not an arm version, it
seems (“skipping incompatible” just means that).
here are the error message.
/toolchain/bin/…/lib/gcc-lib/arm-linux/3.2.1/…/…/…/…/arm-linux/bin/ld:
skipping incompatible
/toolchain/bin/…/lib/gcc-lib/arm-linux/3.2.1/…/…/…/libSDL.so when
searching for -lSDL
It skip my SDL library…?!
Yes, because the SDL library it points to is not an arm version, it
seems (“skipping incompatible” just means that).
Stephane
Thank you! And sorry for my stupid question… . I found there are some problem with my cross-tool ld… And now it can build SDL.
But I have another problem now… Is there any way to use SDL with “static” microwin?
When I builded a SDL testing file (testalpha.c), the many error messages appeared… It looks like missing dynamic link in libSDL* file .
In some libSDL* files, some NX-functions(functions of microwin) can’t be found…
If I use dynamic microwin, I can build testing file sucessfully.
Dynamic microwin have some problems on my platform . I have used static microwin lib and it can work normally.
my building steps:
cd /SDL/test
arm-linux-gcc -I…/include testalpha.c -lnano-X -lSDL -lm -lpthread
~~~~~~~ add this for microwin
The a.out can be created but can’t be run on my platform (maybe problems of dynamic microwindow lib ).
I run testing file, but just a blank screen shown