Polytonic / Glitter

Dead Simple OpenGL
http://polytonic.github.io/Glitter/
2.48k stars 418 forks source link

Compile Failed #33

Closed Raphael2048 closed 7 years ago

Raphael2048 commented 7 years ago

I compile it on my mac and it says : CMake Error at /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:138 (message): Could NOT find Threads (missing: Threads_FOUND) Call Stack (most recent call first): /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/FindThreads.cmake:212 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) Glitter/Vendor/glfw/CMakeLists.txt:71 (find_package)

-- Configuring incomplete, errors occurred! See also "/Users/yakun/OpenGL/Glitter/Build/CMakeFiles/CMakeOutput.log". See also "/Users/yakun/OpenGL/Glitter/Build/CMakeFiles/CMakeError.log".

CMakeError.log: Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: Build flags: Id flags:

The output was: 1 xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: Build flags: Id flags:

The output was: 1 xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: Build flags: Id flags:

The output was: 1 xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: Build flags: Id flags:

The output was: 1 xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: Build flags: Id flags:

The output was: 1 xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: Build flags: Id flags:

The output was: 1 xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: Build flags: Id flags:

The output was: 1 xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: Build flags: Id flags:

The output was: 1 xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: Build flags: Id flags:

The output was: 1 xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: Build flags: Id flags:

The output was: 1 xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: Build flags: Id flags:

The output was: 1 xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: Build flags: Id flags:

The output was: 1 xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: Build flags: Id flags:

The output was: 1 xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: Build flags: Id flags:

The output was: 1 xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: /usr/lib/gcc Build flags: Id flags:

The output was: 1 xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler": Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /usr/lib/g++ Build flags: Id flags:

The output was: 1 xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler": Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: /usr/bin/gcc Build flags: Id flags:

The output was: 1 xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler": clang: error: no input files Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /usr/bin/g++ Build flags: Id flags:

The output was: 1 xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler": clang: error: no input files Determining if the C compiler works failed with the following output: Change Dir: /Users/yakun/OpenGL/Glitter/Build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/xcodebuild" "-project" "CMAKE_TRY_COMPILE.xcodeproj" "build" "-target" "cmTC_28f72" "-configuration" "Debug" xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler": clang: error: no input files Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler": clang: error: no input files Determining if the C compiler works failed with the following output:

Determining if the include file pthread.h exists failed with the following output:

Determining if the C compiler works failed with the following output:

Polytonic commented 7 years ago

It looks like you don't have Xcode or the Command Line Tools installed. Please either install the Command Line Tools (xcode-select --install) or install Xcode through the Mac App Store and run it to accept the license agreement.

Raphael2048 commented 7 years ago

I have installed Xcode, and when I run xcode-select -- install It says xcode-select: error: command line tools are already installed, use "Software Update" to install updates, Did i miss something ?

Polytonic commented 7 years ago

Is this a new Mac? Do you have Xcode installed? Did you run it to accept the license agreement?

For what it's worth, this doesn't look like a problem with Glitter; more something is wrong with your computer. Do you have trouble compiling anything else?

Polytonic commented 7 years ago

You may find this StackOverflow post helpful. 😄

Raphael2048 commented 7 years ago

It seems to be the question of cmake, I have clean the build folder and recompile it , it works now,Thanks a lot!