New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

compiling linux apps to run on mac


Post Reply New Thread Subscribe

 
Thread Tools
metalsam

 
Member Since: Jan 14, 2007
Posts: 101
metalsam is on a distinguished road
Mac Specs: 1.67ghz powerbook G4, 1GB RAM, 100GB HD.

metalsam is offline
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.

Thanks
QUOTE Thanks
cazabam

 
cazabam's Avatar
 
Member Since: Jun 06, 2006
Posts: 1,153
cazabam is a glorious beacon of lightcazabam is a glorious beacon of lightcazabam is a glorious beacon of lightcazabam is a glorious beacon of lightcazabam is a glorious beacon of lightcazabam is a glorious beacon of light
Mac Specs: MacBook 2.0GHz White, 512MB RAM, 60GB HDD

cazabam is offline
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.
QUOTE Thanks
mac57

 
mac57's Avatar
 
Member Since: Apr 29, 2006
Location: St. Somewhere
Posts: 4,560
mac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant future
Mac Specs: iMac 27" 3.4 GHz, 256 GB SSD, 2 TB HDD, 8 GB RAM

mac57 is offline
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
QUOTE Thanks

Post Reply New Thread Subscribe


« Flex Builder 2 | Cocoa question »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Switcher Article in Today's Times studio34 Switcher Hangout 9 08-11-2006 03:10 PM
Linux install on "OldWorld" mac. jhelm007 Running Windows (or anything else) on your Mac 2 12-07-2005 09:11 PM
will the fastest mac mini run final cut pro, dvd stuido pro, cs2, etc.. itbejack Apple Desktops 3 08-18-2005 12:54 PM
OSX apps on PPC linux? MadSkillzMan Switcher Hangout 6 06-07-2005 04:20 AM
Mac Users Get More ISP Choices schweb Apple Rumors and Reports 1 03-06-2003 10:57 AM

All times are GMT -4. The time now is 09:42 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?