03-12-2007, 03:25 PM #1
compiling linux apps to run on mac
- Member Since
- Jan 14, 2007
- 1.67ghz powerbook G4, 1GB RAM, 100GB HD.
I downloaded a linux app today (http://galaxyhack.sourceforge.net/download.php)
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.
03-12-2007, 03:52 PM #2
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.
04-08-2007, 01:24 PM #3
- 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
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By dcs.79c in forum OS X - Operating SystemReplies: 63Last Post: 12-14-2014, 01:58 AM
By macuser1232 in forum Running Windows (or anything else) on your MacReplies: 85Last Post: 07-18-2012, 10:04 PM
By johnny_canuck in forum OS X - Development and DarwinReplies: 7Last Post: 04-27-2009, 02:21 PM
By metalsam in forum OS X - Development and DarwinReplies: 5Last Post: 07-14-2007, 09:04 AM
By Nightblade in forum OS X - Development and DarwinReplies: 2Last Post: 05-24-2004, 02:24 PM