project-navigation
Personal tools

Author Topic: Compiling 2.4 on Mac 10.6.8  (Read 3304 times)

Offline Naftali

  • Cannon Fodder
  • **
  • Posts: 6
    • View Profile
Compiling 2.4 on Mac 10.6.8
« on: August 28, 2012, 11:24:02 pm »
So I've been trying to figure out how to do this for a couple days now with no luck.  I haven't really compiled anything from source before, but I followed the instructions in the wiki with no luck so far.  Any help would be appreciated.

I started by installing Xcode (then restarting the computer) and MacPorts (10.6.8 comes with X11 so I skipped that), both of which went smoothly.  Installing the dependencies went similarly.  The next step, fetching UFO-AI, is when things get complicated and (maybe, I can't tell) start to go wrong.

I have tried at least 3 times to fetch the source, following the instructions at http://ufoai.org/wiki/index.php/Getting_the_source#Getting_the_code_source for the "easy way" with and without data_source, as well as the "hard way".  I've tried to make sure I update/run the correct config files but the document does not make it simple to figure out what needs to be done to end up with a copy that you can compile from without worrying about committing changes.  After everything I always follow the directions in http://ufoai.org/wiki/index.php/Compile_for_Mac#Step_3:_Compilation but I have yet to end up with an executable binary.  I also keep running into the following error, repeated ad infinitum for every file "make" acts on whenever I run it:
Code: [Select]
===> CXX [ufoslicer] src/shared/shared.cpp
cc1plus: warning: command line option "-Wmissing-declarations" is valid for C/ObjC but not for C++
Anybody have any suggestions as to what I'm doing wrong?  I'm getting very frustrated with the whole thing, and if I can't figure this out in the absence of usable Mac binaries for the last releases I'll probably stop following the project.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Compiling 2.4 on Mac 10.6.8
« Reply #1 on: August 29, 2012, 07:52:12 am »
that is no error, but a warning - it does not stop you from compiling.

praise apple for using a stoneage version of gcc - never versions can handle this.