paragui-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paragui-users] 1.0.4 cross compilation fail


From: TheDD
Subject: [paragui-users] 1.0.4 cross compilation fail
Date: Mon, 2 Aug 2004 18:36:24 +0200

Hello,

today i've downloaded paragui-1.0.4.

I'm under a cross compilation environment:
* build = GNU/Linux
* host = Windows
* target = Windows

When i run:

$ cross-configure.sh ../paragui-1.0.4/configure \
     --prefix=/usr/local/cross-win32 &> configure.log

Some things are correctly detected:
checking host system type... i686-pc-mingw32msvc
checking target system type... i686-pc-mingw32msvc

But some are not:
checking whether the C compiler (gcc  ) is a cross-compiler... no

checking for sdl-config... /usr/local/cross-win32/bin/sdl-config
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: 
/usr/local/cross-win32/bin/sdl-config

$ /usr/local/cross-win32/bin/sdl-config --version
1.2.7

and in config.log:
configure:6516: gcc -o conftest -g -O2 -Wall 
-I/usr/local/cross-win32/include/SDL 
 -Dmain=SDL_main   conftest.c  -L/usr/local/cross-win32/lib -lmingw32 -lSDLmain 
 -lSDL -mwindows 1>&5
/usr/bin/ld: cannot find -lmingw32
collect2: ld returned 1 exit status
configure: failed program was:
...
configure:6565: gcc -o conftest -g -O2 -Wall 
-I/usr/local/cross-win32/include/SDL 
 -Dmain=SDL_main   conftest.c  -L/usr/local/cross-win32/lib -lmingw32 -lSDLmain 
 -lSDL -mwindows 1>&5
/usr/bin/ld: cannot find -lmingw32
collect2: ld returned 1 exit status
configure: failed program was:


configure shouldn't use gcc but i686-pc-mingw32msvc-gcc.

There was a change in the cross compilation semantic of autoconf from
2.13 to 2.5. I believe the errors comes from here because SDL compile
well that way.

Passing CC=/usr/local/cross-win32/bin/i686-pc-mingw32msvc-gcc don't
make the trick.

So i tried to put short name version of cross tools in the path:

$ cross-configure.sh ../paragui-1.0.4/configure \
     --prefix=/usr/local/cross-win32 \
     --enable-internalexpat --enable-internalphysfs
...
$ make
...
make[4]: Entering directory `/var/samba_public/paragui-1.0.4-build/src/physfs'
make[4]: *** No rule to make target `zlib114/libz.la', needed by 
`libphysfs.la'.  Stop.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]