project-navigation
Personal tools

Author Topic: Corrections to instructions for compiling Mac non-universal 2.4-dev  (Read 3615 times)

Offline dp

  • Rookie
  • ***
  • Posts: 38
    • View Profile
I compiled a non-universal version of 2.4-dev on my 10.7.2 system for the first time last night. I offer the following notes for the benefit of people who are inexperienced with UNIX/Darwin, compiling programs, etc. but are nonetheless brave enough to try following the "Non-universal binaries" instructions at http://ufoai.ninex.info/wiki/index.php/Compile_for_Mac .

1. In Step 2, the text that starts "Edit the SDL_config.h..." can be ignored. You won't find the files or folders it speaks of, and the relevant file has been corrected already. Just cut and paste the 3 "sudo port" etc. commands into Terminal, press Return, and all will be well.

2. Before starting the "Compilation" section, you'll need to edit your .profile. This is because UFOAI compilation needs some paths that are not taken care of for you by the MacPorts installation process.

If you don't know what I'm talking about: (a) Download TextWrangler (freeware) from http://www.barebones.com/products/textwrangler/download.html ; (b) Use its File > Open to navigate to your home folder and enable its "Show hidden files" option; and (c) Open the ".profile" file you should see now so you can edit it.

Toward the bottom, substitute this export command: export PATH=$PATH:/opt/local/bin:opt/local/sbin:opt/local

Save the file, quit Terminal, then relaunch Terminal to make the new PATH operative.

Now, the "make" commands should execute without errors. You should also be able to compile newer versions of UFOAI without editing .profile again, i.e., this is a one-time fix.

« Last Edit: January 20, 2012, 07:31:19 pm by dp »

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Corrections to instructions for compiling Mac non-universal 2.4-dev
« Reply #1 on: January 20, 2012, 08:00:52 pm »
... it's a wiki, please fix it there ;)

Offline dp

  • Rookie
  • ***
  • Posts: 38
    • View Profile
Re: Corrections to instructions for compiling Mac non-universal 2.4-dev
« Reply #2 on: January 21, 2012, 12:04:37 am »
Done.

Wow. I finally made a contribution to this project. I feel good!