Giter VIP home page Giter VIP logo

Comments (8)

urmyfaith avatar urmyfaith commented on June 12, 2024

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.

opengl-tutorial avatar opengl-tutorial commented on June 12, 2024

from ogl.

urmyfaith avatar urmyfaith commented on June 12, 2024

@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.

from ogl.

opengl-tutorial avatar opengl-tutorial commented on June 12, 2024

from ogl.

urmyfaith avatar urmyfaith commented on June 12, 2024

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.

paddycode avatar paddycode commented on June 12, 2024

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.

paddycode avatar paddycode commented on June 12, 2024

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.

Calvin1602 avatar Calvin1602 commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.