aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: error when try to compile wxMac  (Read 2467 times)

neosnake

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
error when try to compile wxMac
« 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?
Logged

lionel77

  • Provider of Mac builds, Forum Mod
  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 1107
  • Mac OS X 10.4 (Power Mac G5)
Re: error when try to compile wxMac
« Reply #1 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.

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 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. :)
Logged
Current aMule CVS builds for OS X can be found here.

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: error when try to compile wxMac
« Reply #2 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.
Logged

neosnake

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
Re: error when try to compile wxMac
« Reply #3 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.
« Last Edit: January 27, 2006, 04:25:29 AM by neosnake »
Logged