|
problem in configuring wxwidgets
hi
i want install msw in linux for cross compiling i use vectore linux i downloaded mingw tarballs and compile and install them under the instructions in the wxwiki for the cross compiling under linux
i downloaded wxwidgets for all and wxmsw (2.7.1) tarballs i uncommpressed them and in the wxwidgets-2.7.1 folder i use this command :
./configure --prefix=/usr/local/i386-mingw32 --host=i386-mingw32 --target=i386-mingw32 --with-msw --enable-unicode
but configure faced with error
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
I saw configlog and i (guess) found cause:
/usr/local/lib/gcc/i386-mingw32/3.4.2/../../../../i386-mingw32/bin/ld: cannot find -luser32
collect2: ld returned 1 exit status
please help thanks
i attach config.log for if you want mor details
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by wxWidgets configure 2.7.1, which was
generated by GNU Autoconf 2.60. Invocation command line was
$ ./configure --prefix=/usr/local/i386-mingw32 --host=i386-mingw32 --target=i386-mingw32 --with-msw --enable-unicode
## --------- ##
## Platform. ##
## --------- ##
hostname = vector.linux.vnet
uname -m = i586
uname -r = 2.4.29
uname -s = Linux
uname -v = #23 Thu Jan 20 17:16:46 PST 2005
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i586
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /opt/bin
PATH: /usr/local/games
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /opt/java/bin
PATH: /opt/java/jre/bin
PATH: /opt/xfce4/bin
PATH: /usr/X11R6/bin
PATH: /opt/xfce4/bin
PATH: /usr/X11R6/bin
PATH: /opt/xfce4/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2354: checking build system type
configure:2372: result: i586-pc-linux-gnu
configure:2394: checking host system type
configure:2409: result: i386-pc-mingw32
configure:2431: checking target system type
configure:2446: result: i386-pc-mingw32
configure:3312: checking for --enable-gui
configure:3344: result: yes
configure:3353: checking for --enable-monolithic
configure:3388: result: no
configure:3394: checking for --enable-plugins
...........
configure:12346: result: msw
configure:12512: checking for i386-mingw32-gcc
configure:12528: found /usr/local/bin/i386-mingw32-gcc
configure:12539: result: i386-mingw32-gcc
configure:12817: checking for C compiler version
configure:12824: i386-mingw32-gcc --version >&5
i386-mingw32-gcc (GCC) 3.4.2 (mingw-special)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:12827: $? = 0
configure:12834: i386-mingw32-gcc -v >&5
Reading specs from /usr/local/lib/gcc/i386-mingw32/3.4.2/specs
Configured with: ./configure --prefix=/usr/local --target=i386-mingw32
Thread model: single
gcc version 3.4.2 (mingw-special)
configure:12837: $? = 0
configure:12844: i386-mingw32-gcc -V >&5
i386-mingw32-gcc: `-V' option must have argument
configure:12847: $? = 1
configure:12870: checking for C compiler default output file name
configure:12897: i386-mingw32-gcc conftest.c >&5
/usr/local/lib/gcc/i386-mingw32/3.4.2/../../../../i386-mingw32/bin/ld: cannot find -luser32
collect2: ld returned 1 exit status
configure:12900: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "wxWidgets"
| #define PACKAGE_TARNAME "wxwidgets"
| #define PACKAGE_VERSION "2.7.1"
| #define PACKAGE_STRING "wxWidgets 2.7.1"
| #define PACKAGE_BUGREPORT "wx-dev@lists.wxwidgets.org"
| #define __WIN32__ 1
| #define __WIN95__ 1
..........
if this sections not enough for finding problem say and i will post commplet config.log
with great thanks
|