Results 1 to 3 of 3
  1. #1

    Member Since
    Jan 14, 2007
    1.67ghz powerbook G4, 1GB RAM, 100GB HD.
    compiling linux apps to run on mac
    I downloaded a linux app today (
    with the source code. I'm under the impression that I can compile it under mac OSX 10.4.8 and then run it.

    How do I go about this? I took a look in Xcode, but I didnt know what sort of project I should choose (command line C++? Cocoa ?). All I need to do is compile the code.


  2. #2

    cazabam's Avatar
    Member Since
    Jun 06, 2006
    MacBook 2.0GHz White, 512MB RAM, 60GB HDD
    Looking at it, you should just go into the galaxyhack/src directory in Terminal and type 'make'. Of course, this depends on having all the libraries listed on the requirements page installed somewhere it can find then, which could be more problematic. I used Fink to get them.

    In general, building stuff in XCode is very different from building linux apps the traditional linux way. Linux, BSD and the other free unixes don't have the same package and library structure as OS X so, while it is possible to create the project to build in XCode, it requires you to understand SDL for OS X's packaging.

  3. #3

    mac57's Avatar
    Member Since
    Apr 29, 2006
    St. Somewhere
    iMac 27" 3.4 GHz, 256 GB SSD, 2 TB HDD, 8 GB RAM
    Although I haven't built GalaxyHack, I have built a number of linux apps successfuly on my Mac. First of all, make sure you have GNU C++ installed (it is available on your Mac OS X Install DVDs). This will give you the full tool chain and many libraries needed to do this sort of thing. Next, make sure you install Apple X11 (also available on same DVDs). This gives you the graphics environment.

    With this in place, you should just be able to do the usual [./configure, make, make install] routine.

    The fly in the ointment will be if it depends on libraries for Gnome, KDE or something else you don't yet have. You may be in "dependency ****" ... don't know this application so I can't say. The stuff I built was all dependant only on curses, which is installed by default, so I was OK.
    My Macs: iMac 27" 3.4 GHz, Mac Pro 3.2 GHz, PowerMac G5 Quad 2.5 GHz, G4 Cube with 1.2 GHz Upgrade
    My iStuff: 64GB iPhone 5, 64GB iPad4, 30GB iPod Video, 16GB iPod Touch
    My OS': Mac OS X Lion, Mac OS X Snow Leopard, Mac OS X Tiger, Mac OS 9.2.2, openSUSE 10.3
    I was on the Mac-Forums honor roll for September 2007

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Run Linux directly on a Mac
    By dcs.79c in forum OS X - Operating System
    Replies: 63
    Last Post: 12-14-2014, 12:58 AM
  2. Why do people run Linux on their Mac?
    By macuser1232 in forum Running Windows (or anything else) on your Mac
    Replies: 85
    Last Post: 07-18-2012, 09:04 PM
  3. compiling Linux app for OS X
    By johnny_canuck in forum OS X - Development and Darwin
    Replies: 7
    Last Post: 04-27-2009, 01:21 PM
  4. Compiling linux code
    By metalsam in forum OS X - Development and Darwin
    Replies: 5
    Last Post: 07-14-2007, 08:04 AM
  5. Running Linux apps on my Mac or Linux itself
    By Nightblade in forum OS X - Development and Darwin
    Replies: 2
    Last Post: 05-24-2004, 01:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts