Results 1 to 6 of 6
  1. #1
    Compiling linux code

    Member Since
    Jan 14, 2007
    Posts
    101
    Specs:
    1.67ghz powerbook G4, 1GB RAM, 100GB HD.
    Compiling linux code
    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

  2. #2
    Compiling linux code

    Member Since
    Jun 08, 2007
    Posts
    20
    Specs:
    iMac 20, C2D 2.16 GHz, 3Gb, 250Gb
    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.

  3. #3
    Compiling linux code

    Member Since
    Jan 14, 2007
    Posts
    101
    Specs:
    1.67ghz powerbook G4, 1GB RAM, 100GB HD.
    Dont have a makefile.

  4. #4
    Compiling linux code
    mac57's Avatar
    Member Since
    Apr 29, 2006
    Location
    St. Somewhere
    Posts
    4,560
    Specs:
    iMac 27" 3.4 GHz, 256 GB SSD, 2 TB HDD, 8 GB RAM
    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

  5. #5
    Compiling linux code

    Member Since
    Jan 14, 2007
    Posts
    101
    Specs:
    1.67ghz powerbook G4, 1GB RAM, 100GB HD.
    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

  6. #6
    Compiling linux code

    Member Since
    Jun 16, 2007
    Posts
    6
    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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. 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
  2. Compiling code?
    By transparent in forum Running Windows (or anything else) on your Mac
    Replies: 1
    Last Post: 12-12-2007, 01:48 AM
  3. compiling linux apps to run on mac
    By metalsam in forum OS X - Development and Darwin
    Replies: 2
    Last Post: 04-08-2007, 12:24 PM
  4. Replies: 4
    Last Post: 03-20-2005, 05:17 PM
  5. Replies: 3
    Last Post: 07-02-2004, 09:13 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
  •