Comments (8)
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 .
from ogl.
from ogl.
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.
from ogl.
from ogl.
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
from ogl.
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".
from ogl.
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.
from ogl.
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.
from ogl.
Related Issues (20)
- Domain expired HOT 3
- Tutorial 05: trying my own .bmp files turns out black HOT 3
- Tutorial 05: Texture incomplete on cube HOT 3
- Playground background wrong color in documentation
- 3D Model Keyboard Mouse Controller
- error when compiling Bullet
- Tutorial 4: Output looks nothing like what I have. HOT 3
- [Info] Tutorial 08 GTKMM glArea with shaders loaded from obj file HOT 3
- is this glm::translate call correct? HOT 1
- Quick question about the sign in TestRayOBBIntersection function
- Cannot execute project18 HOT 1
- Tutorial 4 projection issues HOT 1
- glreadpixels picking up wrong color
- why lRayEnd_NDC's z setted to 0 in misc05_picking_custom example
- Memory leak in Particle demo.
- Some comments on the Picking with an OpenGL Hack article
- Skybox please HOT 2
- Licensing: Request to make a fork HOT 7
- Can't compile due to the lack of glplatform.h HOT 2
- Tutorial 13: Orthogonalization applet link down
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ogl.