-
Notifications
You must be signed in to change notification settings - Fork 11
Cannot make #31
Comments
Thanks for your report. It looks like you're using GCC, but, unfortunately, I never tested this repo with compilers except for Xcode's built-in Clang. |
GCC support is discussed in #49. |
Thanks for the followup. This will probably seem like a dumb question, but if I wanted to try the "Xcode's built-in Clang" method, how would I go about that? Is it simply a matter of using a different path for cmake and make? The only compiling I do is for MacPorts and Homebrew these days, so I don't know a thing about Xcode. |
@Darklocq nothing dumb about it! Both CMake and Make should be compiler-agnostic, actually. I'm not entirely sure about the mechanism CMake uses to find compilers, although I'd suggest that it simply tries whatever is in $ cmake -DCMAKE_C_COMPILER=$(xcrun --find clang) -DCMAKE_CXX_COMPILER=$(xcrun --find clang++) .... Please make sure $ sudo xcode-select --switch /Application/Xcode.app # or whatever your Xcode path is Actually, having Xcode command line tools could be enough (and since you use Homebrew, I assume you have them installed), unfortunately I can't verify it because I have Xcode everywhere due to being an iOS app developer. |
Thanks for the hand-holding. I will give this a try (though almost a year down the road, I don't exactly recall why I was so hot to compile my own copy; I'm sure it'll come back to me eventually). |
FYI I've edited the |
Using MacOS 10.12.3.
Error mess:
Tried it with the
sandbox-exec
version of the commands, same issue. Googled around a bit and found a similar report about compiling MySQL hereThe followup there about using
cmake .. -DCMAKE_CXX_COMPILER=g++ -DCMAKE_CC_COMPILER=gcc
instead (and I do havegcc
andg++
installed) did not work. I tried justmake
again after doing that, got the same seemingly bogus error thatThe C compiler "/Developer/usr/bin/cc" is not able to compile a simple test program.
Dunno if one must do something different withmake
after doing these special things withcmake
. When I manually try to run thesimple test
compile, with/opt/local/bin/gmake "cmTC_e9be6/fast"
, I'm told:gmake: *** No rule to make target 'cmTC_e9be6/fast'. Stop.
So, at this point I can't get the deps to compile much less the game app. I generally do not have compile problems like this, and regularly use MacPorts, Homebrew, and even occasionally Fink to install what I want (whichever has the most current version of something). Admittedly, I generally do not compile stuff from scratch off GitHub, but only using those managers.
The text was updated successfully, but these errors were encountered: