LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 11-30-2006, 03:49 AM   #1
ra2000
LQ Newbie
 
Registered: Nov 2006
Posts: 15

Rep: Reputation: 0
problem in configuring wxwidgets for cross compiling


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
 
Old 11-30-2006, 09:13 PM   #2
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,997

Rep: Reputation: 107Reputation: 107
First, try seeing if "Hello World" works properly to check if ./configure is lying or not. And you are using mingw, right? Not trying to cross-compile windows apps in linux, because I don't think that works at all.

Last edited by tuxdev; 11-30-2006 at 09:15 PM.
 
Old 12-04-2006, 09:32 AM   #3
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,434

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
Try passing LD_LIBRARY_PATH=usr/local/i386-mingw32/mingw32/lib before compiling.
Or specify the directory with --libdir=
You may need to adjust the path a little according to your installation.
Also you should put the directory where your mingw32 binaries are in your PATH *before* your regulat PATH.
Tuxdev, you CAN compile w32 binaries under linux if you have a little patience...
I haven't had succes with autoconf packages yet but have compiled other stuff.
You can get Slack-11-compatible packages for i386-mingw32 here:
http://distro.ibiblio.org/pub/linux/...e/MingW/3.4.5/

Last edited by gnashley; 12-04-2006 at 09:36 AM.
 
Old 12-07-2006, 03:22 PM   #4
ra2000
LQ Newbie
 
Registered: Nov 2006
Posts: 15

Original Poster
Rep: Reputation: 0
With great thanks gnashley I try it
What's your idea about crossgcc Can you compare it with mingw32
and if it is better Can you guide me about it
 
Old 12-08-2006, 02:18 AM   #5
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,434

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
Are you referring to a specific program called 'crossgcc'? crossgcc is a generic term for any version of gcc which is meant to compile binaries under one architecture for use on another. This includes minw32 and cygwin. cygwin is the other main one that I know of(for w32). However, binaries compiled with cygwin require a .dll to be installed in order to run. That's why mingw was developed as it produces binaries which run without any extra libs being installed.
 
Old 12-13-2006, 09:35 AM   #6
ra2000
LQ Newbie
 
Registered: Nov 2006
Posts: 15

Original Poster
Rep: Reputation: 0
I could install i586-mingw32 successfully with your guidance. When i try to
crosscompiling lincity(./configure --host=i586-mingw32) this error was appeared:your compiler has'nt zlib
Please install zlib . Whatwork must do
About Crossgcc my mean is: using gcc and additional lib for crosscompiling
I know recently whate is it.this project can compile truly almost for every
platform except win32(even can it for MSDOS) finding help for it was difficult
but i could find this page
http://vmlinux.org/crash/mirror/www....GCC/FAQ-1.html
.All thing i said my personal understanding from
this page .when i asked about this in my previous post i saw about it in
http://www.mingw.org/mingwfaq.shtml#faq-cross
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in configuring wxwidgets ra2000 Programming 1 11-30-2006 04:21 AM
Problem Compiling GCC as cross comp (mkdir issue) elyk1212 Linux - Desktop 3 10-01-2006 03:46 AM
LXer: Build Cross-Platform GUIs Using wxWidgets LXer Syndicated Linux News 0 09-23-2006 02:33 AM
LXer: Book Review: Cross platform GUI programming with wxWidgets LXer Syndicated Linux News 2 12-21-2005 12:52 PM
cross platform question GTK+vs.wxwidgets servnov Programming 4 01-09-2005 11:25 AM


All times are GMT -5. The time now is 02:48 PM.

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