aMule Forum

English => Multiplatform => Mac OSX => Topic started by: neosnake on January 26, 2006, 02:24:19 AM

Title: error when try to compile wxMac
Post by: neosnake on January 26, 2006, 02:24:19 AM
When I try to compile wxMac-2.6.2 on my machine at the first step to configure:

../configure --disable-systray --disable-gtk --with-wx-config=/Users/neosnake/Desktop/makeamule/wxMac-2.6.2/wx-config

I got these error :

saving argument cache configarg.cache
checking for toolkit... mac
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.

It says C compiler can't create executables ,how can i solve this problem?Where can i see "C compiler default output file name" is defined?
Title: Re: error when try to compile wxMac
Post by: lionel77 on January 26, 2006, 08:17:46 AM
How weird -- looks like you posted the same problem a bit more than a year ago when you were trying to compile aMule on Debian (http://forum.amule.org/thread.php?postid=19307).

Just to make sure we're on the same page: based on what you posted a few days ago I am assuming that you are trying to compile aMule on a x86 machine, is that correct?

You are writing that you are trying to compile wxMac 2.6.2. As I wrote in the other thread, I would actually go with the most recent CVS code because that should be more advanced in terms of x86 compatibility than 2.6.2. Instructions for downloading the CVS code are also on the HoTo compile on Mac (http://www.amule.org/wiki/index.php/HowTo_compile_on_Mac) page.

Another thing, you are writing that you are trying to compile wxMac, yet the configure statement you provided is one for compiling aMule. For compiling wx, you would call "../configure --disable-shared --enable-unicode" from within the build directory within the wxWidgets folder.

I'm not about the error message you got but maybe you won't get it again if the above two points into consideration. Also, make sure that you are using the most recent developer tools from the Apple web page.

Good luck. :)
Title: Re: error when try to compile wxMac
Post by: ken on January 27, 2006, 01:49:28 AM
Everything lionel77 said is correct, but especially "make sure that you are using the most recent developer tools from the Apple web page".  In fact, it seems you haven't installed any developer tools.  You don't have a compiler.
Title: Re: error when try to compile wxMac
Post by: neosnake on January 27, 2006, 03:15:16 AM
Thanks !I installed Xcode2.2 before configure. there is something wrong with the c compiler.This weird "checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details."  error seems that my gcc is not correctly installed.In my wxWidget config.log file there is a line:

gcc: installation problem, cannot exec `cc1': No such file or directory

Maybe after I fix the gcc problem this will also be solved. :)

The relevant portion of the log file is :
gcc: installation problem, cannot exec `cc1': No such file or directory
configure:11363: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "wxWidgets"
| #define PACKAGE_TARNAME "wxwidgets"
| #define PACKAGE_VERSION "2.7.0"
| #define PACKAGE_STRING "wxWidgets 2.7.0"
| #define PACKAGE_BUGREPORT "wx-dev@lists.wxwidgets.org"
| #define __BSD__ 1
| #define __DARWIN__ 1
| #define TARGET_CARBON 1
| #define __UNIX__ 1
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:11402: error: C compiler cannot create executables
See `config.log' for more details.