I've looked at the wiki system at
http://wiki.wxwidgets.org/wiki.pl?Cross-Compiling_Under_Linux
and tried to follow it to get everything set up.
Setting up gcc and binutils doesn't seem to be a
problem when I use SDL's install script at
http://www.libsdl.org/extras/win32/cross/
BTW... The note on the wiki page that it installs an
2.95 of gcc is incorrect. The version it downloads is
3.2.3 which is a bit older.
I downloaded the wxAll-2.5.2.tar.gz file from the
download links.
After trying to configure using the suggested command
./configure --prefix=/usr/local/i386-mingw32
--host=i386-mingw32 --build=i386-mingw32
--target=i386-mingw32 --with-msw
I get the error
--------------
configure: error: please set CFLAGS to contain the
location of windows.h
I do a find / -name 'windows.h' and get the results
------
/usr/src/redhat/BUILD/wine-20040505/include/windows.h
/usr/local/i386-mingw32/w32api-2.5/include/windows.h
/usr/local/i386-mingw32/include/windows.h
/usr/local/cross-tools/i386-mingw32msvc/include/windows.h
The most appropiate one seems to be either
/usr/local/i386-mingw32/w32api-2.5/include/windows.h
/usr/local/i386-mingw32/include/windows.h
Choosing either I get the following error with the
command
./configure --prefix=/usr/local/i386-mingw32
--build=i386-mingw32 --target=i386-mingw32 --with-msw
CFLAGS=usr/local/i386-mingw32/include/windows.h
which produces the error
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
Looking through config.log I find
----
configure:10492: gcc
/usr/local/i386-mingw32/include/windows.h conftest.c
>&5
gcc: compilation of header file requested
and also
configure:10534: error: C compiler cannot create
executables
I've also attached the configure.log
I'm not quite sure what to do at this point.
Has anyone else used these configure options or
different ones? Does anyone have any suggestions for
me to try?
I can use KDE to build a wxWindows2.4.2 program for
GTK
But I can't get any further on compiling
wxWidgets2.5.2
Thanks for your help and time
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/