Trouble when cross-compiling SDL with MicroWindow

Hi,

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.

b8944028 wrote:

Hi,

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…?!

Yes, because the SDL library it points to is not an arm version, it
seems (“skipping incompatible” just means that).

Stephane

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

Nano-X & a.out

Thannk you for any suggestion.

have you managed to have sdl worked on nano-x thanks.

Nano-X is no longer supported, and I don’t know anyone offhand who has
it working.On Wed, Jan 27, 2010 at 5:44 PM, VBM wrote:

have you managed to have sdl worked on nano-x thanks.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC