The latest versions of FO are not compiling for me. It seems to have something to do with the math libraries...
'::acos' has not been declared, '::asin' has not been declared, etc.
Please see the attached for the errors.
[solved] 3511: not compiling on OS X
Moderator: Oberlus
[solved] 3511: not compiling on OS X
- Attachments
-
- XCode Errors.txt
- (16.92 KiB) Downloaded 162 times
Last edited by jsena on Sun Apr 25, 2010 4:57 am, edited 1 time in total.
- Geoff the Medio
- Programming, Design, Admin
- Posts: 13587
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
Re: 3511: not compiling on OS X
The XCode project hasn't been updated since several files were added and one file was removed recently. I can't fix this, but .Id could, or you can add the missing files yourself. If I remember correctly, Serialize.cpp has been removed, and several new cpp files with Serialize at the start of their names have been added. Math.cpp has also been added. All those files need to be added to the build for freeorion, freeorionca and freeoriond (the human client, AI client and server, in case they're called something different in the XCode project).
There is also a CMake setup file from which you should be able to generate some complete project files, but I don't think it's been tested on OSX.
There is also a CMake setup file from which you should be able to generate some complete project files, but I don't think it's been tested on OSX.
Re: 3511: not compiling on OS X
I tried adding the files to XCode (and I think I even did it correctly), but I still get the same kind of errors from cmath. Hopefully .ld can address the issue.
Re: 3511: not compiling on OS X
I just committed a new Xcode project that fixed this for me.
I think the issue was with the "Always Search User Paths" build setting. The default is on, it's now off.
I think the issue was with the "Always Search User Paths" build setting. The default is on, it's now off.
Re: 3511: not compiling on OS X
Works great, thanks.
Warning: Antarans in dimensional portal are closer than they appear.
Re: [solved] 3511: not compiling on OS X
Problem Solved. Thanks .ld!