Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


Closed Thread
  Search this Thread
Old 11-30-2006, 04:48 AM   #1
LQ Newbie
Registered: Nov 2006
Posts: 15

Rep: Reputation: 0
problem in configuring wxwidgets

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

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 __WIN32__ 1
| #define __WIN95__ 1

if this sections not enough for finding problem say and i will post commplet config.log
with great thanks
Old 11-30-2006, 05:21 AM   #2
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread should be closed because it is a duplicate of

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
wxwidgets book - very necessary saied Programming 4 10-31-2006 02:04 PM
wxWidgets kornerr Programming 2 10-13-2005 11:05 AM
Problems with wxWidgets DonBilbo Linux - Software 3 10-12-2005 10:21 AM
wxwidgets or gtk?? logicalfuzz Linux - Software 3 09-21-2005 01:43 PM
wxwidgets, anyone used it? acidjuice Programming 6 03-31-2005 04:28 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration