Skip to content
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

Visual studio 2019 CMake errors #47

Open
OllyJ918 opened this issue Nov 3, 2020 · 0 comments
Open

Visual studio 2019 CMake errors #47

OllyJ918 opened this issue Nov 3, 2020 · 0 comments

Comments

@OllyJ918
Copy link

OllyJ918 commented Nov 3, 2020

I'm doing the following:

File->Open->CMake then opening the file CMakeLists.txt

I get this output from CMake:

1> The toolchain file has changed (CMAKE_TOOLCHAIN_FILE).
1> Command line: "cmd.exe" /c ""c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\commonextensions\microsoft\cmake\CMake\bin\cmake.exe"  -G "Ninja"  -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="C:\dev\Vulkan-experimental-openxr\out\install\x64-Debug (default)" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe"  -DCMAKE_MAKE_PROGRAM="c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\commonextensions\microsoft\cmake\Ninja\ninja.exe" "C:\dev\Vulkan-experimental-openxr" 2>&1"
1> Working directory: C:\dev\Vulkan-experimental-openxr\out\build\x64-Debug (default)
1> [CMake] -- EZVCPKG v0.1 starting up
1> [CMake] 	Website: https://github.com/jherico/ezvcpkg
1> [CMake] -- EZVCPKG_BASEDIR envrionment variable not found and basedir not set, using default /.ezvcpkg
1> [CMake] -- EZVCPKG initializing
1> [CMake] 	commit:     06809940ac1dc02fedfa9f2d54ec03287d6c42d3
1> [CMake] 	repository: https://github.com/jherico/vcpkg.git
1> [CMake] 	local dir:  /.ezvcpkg/06809940ac1dc02fedfa9f2d54ec03287d6c42d3
1> [CMake] -- EZVCPKG Building/Verifying packages assimp;basisu;fmt;imgui;glad;glfw3;gli;glm;openxr-loader;vulkan
1> [CMake] CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:136 (message):
1> [CMake]     Command failed: "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cmake.exe" --build . --config Debug --target install -- -v
1> [CMake]     Working Directory: C:/.ezvcpkg/06809940ac1dc02fedfa9f2d54ec03287d6c42d3/buildtrees/basisu/x64-windows-dbg
1> [CMake]     See logs for more information:
1> [CMake]       C:\.ezvcpkg\06809940ac1dc02fedfa9f2d54ec03287d6c42d3\buildtrees\basisu\install-x64-windows-dbg-out.log
1> [CMake] 
1> [CMake] Call Stack (most recent call first):
1> [CMake]   scripts/cmake/vcpkg_build_cmake.cmake:96 (vcpkg_execute_build_process)
1> [CMake]   scripts/cmake/vcpkg_install_cmake.cmake:24 (vcpkg_build_cmake)
1> [CMake]   ports/basisu/portfile.cmake:18 (vcpkg_install_cmake)
1> [CMake]   scripts/ports.cmake:94 (include)
1> [CMake] -- EZVCPKG done
1> [CMake] -- The C compiler identification is MSVC 19.27.29112.0
1> [CMake] -- The CXX compiler identification is MSVC 19.27.29112.0
1> [CMake] -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe
1> [CMake] -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe - works
1> [CMake] -- Detecting C compiler ABI info
1> [CMake] -- Detecting C compiler ABI info - done
1> [CMake] -- Detecting C compile features
1> [CMake] -- Detecting C compile features - done
1> [CMake] -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe
1> [CMake] -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe - works
1> [CMake] -- Detecting CXX compiler ABI info
1> [CMake] -- Detecting CXX compiler ABI info - done
1> [CMake] -- Detecting CXX compile features
1> [CMake] -- Detecting CXX compile features - done
1> [CMake] -- Performing Test _cpp_latest_flag_supported
1> [CMake] -- Performing Test _cpp_latest_flag_supported - Success
1> [CMake] -- Looking for pthread.h
1> [CMake] -- Looking for pthread.h - not found
1> [CMake] -- Found Threads: TRUE  
1> [CMake] CMake Error at /.ezvcpkg/06809940ac1dc02fedfa9f2d54ec03287d6c42d3/scripts/buildsystems/vcpkg.cmake:263 (_find_package):
1> [CMake]   Could not find a package configuration file provided by "glfw3" with any of
1> [CMake]   the following names:
1> [CMake] 
1> [CMake]     glfw3Config.cmake
1> [CMake]     glfw3-config.cmake
1> [CMake] 
1> [CMake]   Add the installation prefix of "glfw3" to CMAKE_PREFIX_PATH or set
1> [CMake]   "glfw3_DIR" to a directory containing one of the above files.  If "glfw3"
1> [CMake]   provides a separate development package or SDK, be sure it has been
1> [CMake]   installed.
1> [CMake] Call Stack (most recent call first):
1> [CMake]   cmake/macros/TargetGLFW3.cmake:9 (find_package)
1> [CMake]   base/CMakeLists.txt:30 (target_glfw3)
1> [CMake] -- Configuring incomplete, errors occurred!
1> [CMake] See also "C:/dev/Vulkan-experimental-openxr/out/build/x64-Debug (default)/CMakeFiles/CMakeOutput.log".
1> [CMake] See also "C:/dev/Vulkan-experimental-openxr/out/build/x64-Debug (default)/CMakeFiles/CMakeError.log".
1> 'cmd.exe' '/c ""c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\commonextensions\microsoft\cmake\CMake\bin\cmake.exe"  -G "Ninja"  -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="C:\dev\Vulkan-experimental-openxr\out\install\x64-Debug (default)" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe"  -DCMAKE_MAKE_PROGRAM="c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\commonextensions\microsoft\cmake\Ninja\ninja.exe" "C:\dev\Vulkan-experimental-openxr" 2>&1"' execution failed with error: ''cmd.exe' '/c ""c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\commonextensions\microsoft\cmake\CMake\bin\cmake.exe"  -G "Ninja"  -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="C:\dev\Vulkan-experimental-openxr\out\install\x64-Debug (default)" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe"  -DCMAKE_MAKE_PROGRAM="c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\commonextensions\microsoft\cmake\Ninja\ninja.exe" "C:\dev\Vulkan-experimental-openxr" 2>&1"' returned with exit code: 1'.

I think its either due to this: EZVCPKG_BASEDIR envrionment variable not found and basedir not set, using default /.ezvcpkg

or GLFW not being found, even though the packages: PACKAGES assimp basisu fmt imgui glad glfw3 gli glm openxr-loader vulkan

include glfw.

Any help would be greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant