Closed urmyfaith closed 7 years ago
as the Makefile
said, I should not compile the code by command-line tool cmake
.
$cat Makefile
all:
@echo "Please READ Tutorial 1 and don't build the tutorials yourself ! Use CMake instead. If you have a problem, read the FAQ"
I am really follow the steps in Tutorial 1, macOS part.
The result is that I can NOT get the workspace I need by using CMake. It's really frustrating .
Does CMake crashes when simply starting the GUI, or when you are generating the project ? The crash looks GUI-related... Can you try launching CMake from the command line ? Something like : cmake -G XCode ..
@opengl-tutorial
crashed configure the project.
This is the full command?
cmake -G XCode
seems crashed by not specify the build dir.
➜ ogl-OpenGL-tutorial_0015_21 cmake -G Xcode
-- The C compiler identification is AppleClang 8.0.0.8000042
-- The CXX compiler identification is AppleClang 8.0.0.8000042
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/OpenGL.framework
CMake Error at CMakeLists.txt:9 (message):
Please select another Build Directory ! (and give it a clever name, like
bin_Visual2012_64bits/)
-- Configuring incomplete, errors occurred!
See also "/Users/zx/Desktop/OpenGL/ogl-OpenGL-tutorial_0015_21/CMakeFiles/CMakeOutput.log".
the log file (/Users/zx/Desktop/OpenGL/ogl-OpenGL-tutorial_0015_21/CMakeFiles/CMakeOutput.log
) is too long to paste here.
thanks for your help.
Maybe CMake3.7.2 can not run this project on macOS10.12 with Xcode7.3/Xcode8.2 ?
I am not sure.
This is not a crash, just an error. The command line is supposed to be : cmake -G XCode ./path/to/source/directory ( so probably .. )
On Fri, Jan 20, 2017 at 12:10 PM, zx notifications@github.com wrote:
@opengl-tutorial https://github.com/opengl-tutorial
crashed configure the project.
This is the full command?
cmake -G XCode
seems crashed by not specify the build dir.
➜ ogl-OpenGL-tutorial_0015_21 cmake -G Xcode -- The C compiler identification is AppleClang 8.0.0.8000042 -- The CXX compiler identification is AppleClang 8.0.0.8000042 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/OpenGL.framework CMake Error at CMakeLists.txt:9 (message): Please select another Build Directory ! (and give it a clever name, like bin_Visual2012_64bits/)
-- Configuring incomplete, errors occurred! See also "/Users/zx/Desktop/OpenGL/ogl-OpenGL-tutorial_0015_21/CMakeFiles/CMakeOutput.log".
the log file (/Users/zx/Desktop/OpenGL/ogl-OpenGL-tutorial_0015_21/ CMakeFiles/CMakeOutput.log) is too long to paste here.
thanks for your help.
Maybe CMake3.7.2 can not run this project on macOS10.12 with Xcode7.3/Xcode8.2 ?
I am not sure.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/opengl-tutorials/ogl/issues/32#issuecomment-274047677, or mute the thread https://github.com/notifications/unsubscribe-auth/AMF0STFVZGlFRJRlgR-e0M3oqUoLU5nFks5rUJY4gaJpZM4LpEbP .
It seems look like cmake -G XCode ./path/to/source/directory
is not what we want.
➜ ogl-OpenGL-tutorial_0015_21 cmake -G Xcode ../
CMake Error: The source directory "/Users/zx/Desktop/OpenGL" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
➜ ogl-OpenGL-tutorial_0015_21 cmake -G Xcode .
CMake Error at CMakeLists.txt:9 (message):
Please select another Build Directory ! (and give it a clever name, like
bin_Visual2012_64bits/)
-- Configuring incomplete, errors occurred!
See also "/Users/zx/Desktop/OpenGL/ogl-OpenGL-tutorial_0015_21/CMakeFiles/CMakeOutput.log".
➜ ogl-OpenGL-tutorial_0015_21 pwd
/Users/zx/Desktop/OpenGL/ogl-OpenGL-tutorial_0015_21
Is this resolved? I have the same issue in linux: With this error mssg:
~/opengl/ogl-OpenGL-tutorial_0015_33/build $ cmake .. CMake Error at CMakeLists.txt:9 (message): Please select another Build Directory ! (and give it a clever name, like bin_Visual2012_64bits/)
-- Configuring incomplete, errors occurred! See also "/home/paddy/opengl/ogl-OpenGL-tutorial_0015_33/CMakeFiles/CMakeOutput.log".
I solved mine. I once did make in the source directory because I did not see the .. after the cmake command in the guide. After that cmake uses the cache and other files it created from that run on my subsequent correct run from a correct build directory. Deleting the files created by cmake from the previous attempt solved it.
Looks like a rare CMake GUI bug which can be worked around by using the command-line tool, so I'm closing this. For future people coming here :
cd path/to/tutorials_sources/ mkdir build cd build cmake -G Xcode .. Then open the generated project in XCode.
The first time,I am using macOS10.12,Xcode7.3.1,CMake3.7, CMake quit.
I am really follow the steps at
http://www.opengl-tutorial.org/beginners-tutorials/tutorial-1-opening-a-window/
Building on MacI have already checkout to tag
OpenGL-tutorial_0015_21
After a few times of CMake'quit.
I go to CMake's website ,and download the latest version,which is CMake3.7.2.
But still get the same result, CMake quit unexpectedly.
CMake quilt details