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 code


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 have a collection of c++ and header files for a linux game (death from the deep) that I want to compile. Ive had a fiddle with Xcode and Darwin ports and Im not quite sure how to do it. The main source code is contained in one folder, with a subfolder called 'Mac' containg a header and c++ file with names referring to SDL.

I tried ./configure but that didnt do anything (no file named configure :S)

I assume I can use xcode (maybe gcc?) to do this, but im not quite sure how. Do I need to compile the contents of the folder 'mac' at the same time as the rest of the code ?

Thank you for any help
QUOTE Thanks
CyberAlien

 
Member Since: Jun 08, 2007
Posts: 20
CyberAlien is on a distinguished road
Mac Specs: iMac 20, C2D 2.16 GHz, 3Gb, 250Gb

CyberAlien is offline
Check if Makefile is there. If it is, then just run "make" to compile application, then "so make install" to install it.

CyberAlien.
Happy Mac owner since June 2007.
QUOTE Thanks
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
Dont have a makefile.
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
gcc is what you need - I have compiled and built lots of Linux programs to run on my Mac over the last year. Sounds like you have a very non standard set of software there though, with no configure file and no Makefile. I am not sure that this forum is going to be able to help too much. Make sure you have gcc and X11 installed, and after that, you are going to have to slog your way through the process of getting it compiled just like you would on Linux if it didn't have a configure and Makefile.

BTW, can you compile and run this successfully on a Linux box? That might be a really good place to start! Once you have the kinks worked out there, getting it to work on a Mac should be easier.

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
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 havent tried to do it on al inux box yet. I redownloaded the OSX client and it seemed to work after a bit, thank you though. I will keep these comments in mind for the future
QUOTE Thanks
gunny

 
Member Since: Jun 16, 2007
Posts: 6
gunny is on a distinguished road

gunny is offline
Quote:
Originally Posted by metalsam View Post
I havent tried to do it on al inux box yet. I redownloaded the OSX client and it seemed to work after a bit, thank you though. I will keep these comments in mind for the future
Are you sure that you didn't download a binary? The lack of configure/make is _very_ strange.
QUOTE Thanks

Post Reply New Thread Subscribe


« Anyone sucessfully use CPAN on OSX Server? | php won't send to email? »
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
Best Linux on Mac? Best Way to Install? markw10 Running Windows (or anything else) on your Mac 9 12-24-2011 12:13 AM
What is your opinion on the future of Linux and the Mac? RickR Schweb's Lounge 17 05-09-2008 06:47 AM
compiling linux apps to run on mac metalsam OS X - Development and Darwin 2 04-08-2007 01:24 PM
XP, Vista, Ubuntu and then back home Kenotic Switcher Hangout 20 03-02-2007 02:29 AM
Switching soon with a Mac Mini from Linux and Windows walkerj Switcher Hangout 7 02-14-2005 03:23 PM

All times are GMT -4. The time now is 03:00 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?