Thread: Cross compiling

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    "xplicitlye" -> "explicitly" [Just thought I'd mentioned this because I couldn't figure it out at first.]

    I do suspect that gcc by default on openBSD will cross compile.
    Perhaps -- but to PPC? (You know -- Apple.)

    If you can't get it to work, you might be able to use an emulator such as VirtualBox to emulate the PPC system, and run GCC on that. I've never tried this, but it might work.

    Do you actually have access to a PPC system? If so, there are lots of ways you could do this, not to mention simply SSH'ing to the PPC machine (assuming the computers are networked) and compiling from there. At the least, you could copy the PPC machine's installation of GCC onto your FreeBSD one and use an emulator from there. (This is assuming that the PPC computer, if it even exists, has a compiler installed.)

    [edit] You want more specific instructions? Give more specific descriptions of what went wrong. Did you get an error from make? Did GCC build, but just not compile anything? Perhaps it built and works, but actually generates FreeBSD executables?

    There's lots of stuff around about this sort of thing. Keep looking.


    [/edit]
    Last edited by dwks; 07-02-2008 at 01:13 PM.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. cross compilation doubt
    By vlrk in forum Linux Programming
    Replies: 6
    Last Post: 04-16-2009, 01:02 PM
  2. all about cross compilation
    By munna_dude in forum Linux Programming
    Replies: 1
    Last Post: 08-27-2008, 04:15 AM
  3. Minimax, URGENT :(
    By Dark-MX0Z in forum C++ Programming
    Replies: 6
    Last Post: 11-14-2007, 06:29 AM
  4. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  5. Cross Compiling with Linux and Turbo C
    By ozgulker in forum Linux Programming
    Replies: 0
    Last Post: 11-18-2002, 03:07 PM