-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building on OSX 10.10 #16
Comments
This issue seems to be related. |
I upgraded to 10.10 with brew and had problems with python. I removed brew and reinstalled it, as well as packages I regularly use. Perhaps you can try that. (I have not tried to build this yet, as I only started watching yesterday 😅 ) |
@kloplop321 I've reinstalled brew yesterday. Did not help. @mic-e I've tried to find fix in the issue specified, still the same stuff. |
Same issue for me. Tried a bunch of workarounds, trying to overwrite which version of python cmake uses with |
Install python3 via homebrew and then pass the following to the configure script. You may need to change the python version.
This is the whole command I use to configure right now. Compilation will fail due to this llvm bug. @Fr3akout is working on that after we discussed it in the irc channel. |
@svkurowski Yep, that worked perfectly. Thanks! |
The only thing left: openage v2.2-285-gf7268cc
install prefix | /usr/local CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Whats wrong? Thank you! |
Did you install |
@svkurowski Using the whole command does indeed work. |
@svkurowski OPUSFILE_INCLUDE_DIR |
Well, the corresponding lines in my command are:
Could you do ls /usr/local/Cellar/opusfile/0.6/include/
ls /usr/local/Cellar/sdl2_image/2.0.0_1/include/ and check if the header files are there? |
Ok, fixed. Configure now works, but the make fails. In my case: |
This got fixed in this pullrequest. The Python problem persists and will be discussed in #40 . |
This issue can be closed. |
hm actually i'd leave this open until the mac build really succeeds for all mac users that still have problems. |
You might have to add the |
This worked for me on 10.9.4.
|
configure is ok, but then make suffers. |
So was mine until I did configure like above. Had a number of linking issues because it wasn't finding libraries. |
gcc: error: unrecognized command line option '-stdlib=libc++' Are you building with gcc or clang? |
Looks like clang. I'm very rusty with my C/C++ and build tools. Too much java/python....
|
switched to clang: |
This should have been fixed in 1de94e4, make sure you are using the latest version. |
nice but.. |
Install fontconfig: brew install fontconfig On Thu, Oct 30, 2014 at 9:04 AM, Dmitry Alexandrov <[email protected]
|
errors like missing libstdc++ usually mean you're trying to use C compiler (gcc, clang) instead of C++ compiler (g++, clang++) |
OK! Build completed. |
Just for info, my config was kind of this: ./configure --flags="-stdlib=libc++ -I/usr/local/Cellar/fontconfig/2.11.1/include/ -I/usr/local/include/SDL2 -I/usr/local/Cellar/opus/1.1/include/opus -I/usr/local/Cellar/opusfile/0.6/include/opus -I/usr/local/Cellar/opus/1.1/include/opus" --ldflags="-stdlib=libc++ -lSDL2_Image -lSDL2main" --raw-cmake-args -DPYTHON_INCLUDE_DIR=/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4.2/include/python3.4/ -DPYTHON_LIBRARY=/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/libpython3.4m.dylib -DPython_FRAMEWORKS=/usr/local/Cellar/python3/3.4.2/Frameworks/Python.framework -DSDL2IMAGE_INCLUDE_DIRS=/usr/local/Cellar/sdl2_image/2.0.0_1/include -DSDL2IMAGE_LIBRARIES=/usr/local/Cellar/sdl2_image/2.0.0_1/lib/libSDL2_image-2.0.0.dylib |
from your configure script output:
I would look in there |
or simply
|
You run it by executing |
See SFTtech#40 Additionally CMake will find Python on OS X now. Fixes SFTtech#16
See SFTtech#40 Additionally CMake will find Python on OS X now. Fixes SFTtech#16
Just tried to build on Mac OS X 10.10 and always getting this:
CMake Error at /usr/local/Cellar/cmake/3.0.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:136 (message):
Could NOT find PythonLibs: Found unsuitable version "2.7.6", but required
is at least "3.3" (found
/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/libpython3.4.dylib)
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.0.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:341 (_FPHSA_FAILURE_MESSAGE)
/usr/local/Cellar/cmake/3.0.0/share/cmake/Modules/FindPythonLibs.cmake:276 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
cpp/CMakeLists.txt:74 (find_package)
The cmake from brew (3.0.2) didn't work. I've installed 3.0.0 from https://raw.githubusercontent.com/NikolausDemmel/homebrew-devel/master/cmake.rb (with some sha1 manipulation), still no results.
Will be thankful for any support, and will be glad to help with Mac testings.
The text was updated successfully, but these errors were encountered: