Cannot compile on OS X 10.10.4 #408
Comments
|
Seems like an error somewhere in Mac OS's internal include files. |
|
Telling it to compile for "other" systems allows the compilation to go much further but it still finishes with an error. The compilation ends right after it complains about undefined symbols, but I'm not really sure what is the exact problem. Full log: https://gist.github.com/Schocker/eb1344247017e01da799 |
|
@Shocker That's because of this part not being executed if you force a diffrent system - https://github.com/colobot/colobot/blob/dev/src/CMakeLists.txt#L46-L50 |
|
Not at all, unfortunately. Compiling with system_macosx.cpp yields exactly the same error as it did before, changing it to system_other.cpp doesn't cause so many undefined symbols, but still errors out on it: Full log once again (it's not much different though): https://gist.github.com/Schocker/c25bbb438131415552ea |
|
You are only changing the file that is compiled, you also need to fix the code that uses it here: |
|
Thanks, it has helped a lot. The game now compiles successfully, same goes with .DMG creation. The app lacks an icon, though (but it has probably got to do with letting system_macosx.cpp go) and closes right after opening. Here's the log from Console.app right after launching the game: https://gist.github.com/Schocker/8dccf2775bc88c5cddfc |
|
Looks like some internal problem in SDL_VideoInit. I have no idea how to fix this. |
|
I think this problem is with SDL itself which in version 1.2 has not been updated to run on newest OS X, while SDL 2.0 is supposed to run fine. Maybe we should consider upgrading to newer SDL version. I also think that the instructions for compiling should be updated, as it is not necessary to use GCC 4.8 nor Mac Ports. On my virtual machine with OS X Mavericks, I used Clang from Command Line Developer Tools and Homebrew (http://brew.sh/). There is only one package for perl, which requires manual install, and otherwise it is as easy as executing "brew install ". |
|
@piotrdz If using Homebrew is an option, I'm all for it (especially if it also means less things to clutter up my poor SSD). |
|
I wrote a short description of compilation with Homebrew: https://gist.github.com/piotrdz/f1bfdab638caca1aa280 |
|
Okay, so we have some progress. The "make package" command starts erroring out on Full CPack log: https://gist.github.com/Schocker/7cfa8ea4d1ca91899d55 Is there any way to alter the chmods for those files while making the package? Sorry for being a total noob in that, but I have no experience in cmake or cpack whatsoever and consulting the documentation hasn't helped much, unfortunately. I've tried to do USE_SOURCE_PERMISSIONS, but it didn't change a thing (another thing is I had no idea where to add it). :/ |
|
@Schocker I had the same issue, and it went away when I switch to brew&clang instead of macport&gcc4.8 See the update guide written by @piotrdz : https://github.com/colobot/colobot/blob/master/INSTALL-MacOSX.md |
|
It should be known that @piotrdz's brew guide takes into account the package: po4a, which is not a valid homebrew package from my experience. |
|
po4a was replaced with Python 2.7+ and is no longer needed (at least in dev branch)). |
|
@vieux Actually, the problem happens when using Homebrew + Clang. And the guide you've linked to is apparently about installing Macports and GCC. I'll try to compile the game and create a package after the weekend, the connection I'm using right now is really slow. :/ |
|
@AlexSwensen You're right, po4a is not a homebrew package. I meant to write to install po4a from source. Edit2: Now I see that man page and desktop files are generated only on PLATFORM_GNU, that is Linux. So no po4a is needed on MacOSX. |
|
Alright, after going through a few public betas of El Capitan and installing wget (this turned out to be quite important when compiling the latest dev, since OS X does not include wget by default, thus #553), I am glad to report that I've finally managed to compile Colobot using Brew and Clang. Yayness! The game works pretty well, albeit with some graphical glitches. But those are not related to this issue, so I'm marking it as closed. |
I've tried to compile the game under OS X 10.10.1 on my MBA, according to this guide and while the makefile was successfully created, the make command fails.
Full log: https://gist.github.com/Schocker/a560af18a7c2330f1d63
GCC 4.8 from MacPorts, as the guide mentions, I only had to install PhysFS manually.
The text was updated successfully, but these errors were encountered: