• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to compile for linux x86_64 using XCode ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to compile for linux x86_64 using XCode ?


  • Subject: Re: How to compile for linux x86_64 using XCode ?
  • From: Peter O'Gorman <email@hidden>
  • Date: Mon, 02 Feb 2009 11:19:49 -0600

Botta Vincent wrote:
> Hello,
>
> I'm trying to compile a C++ code for the x86_64 architecture under XCode
> but it doesn't work. ARCHS is set to "x86_64" and
> VALID_ARCHS too. Once a upload the built file and try to run it, it
> gives me this message : cannot execute binary file.

You need to create a cross-compiler, the cocotron project has some
information on doing this:
http://www.cocotron.org/Tools/Platform_Interface
http://www.cocotron.org/Tools/InstallCDT

If you don't wish to use that you can try with crosstool:
http://www.kegel.com/crosstool/

I have not tried either, though I'd guess that the cocotron method is
the easiest. I can tell you from experience that building a cross
compiler "by hand" is not usually a simple task.

Peter
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >How to compile for linux x86_64 using XCode ? (From: Botta Vincent <email@hidden>)

  • Prev by Date: Re: How to compile for linux x86_64 using XCode ?
  • Next by Date: Header in hmap problems...
  • Previous by thread: Re: How to compile for linux x86_64 using XCode ?
  • Next by thread: Header in hmap problems...
  • Index(es):
    • Date
    • Thread