I got WebRTC native package by following this https://webrtc.org/native-code/development/ and depot_tools at C:\depot_tools location. Then wanted to try this https://github.com/aisouard/libwebrtc to make development process easier but while following steps for windows at cmake -G "Visual Studio 14 2015 Win64" step i get error
CMake Error at C:/Program Files/CMake/share/cmake-3.12/Modules/FindPackageHandle
StandardArgs.cmake:137 (message):
Could NOT find Git (missing: GIT_EXECUTABLE)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.
cmake:378 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.12/Modules/FindGit.cmake:83 (find_package
_handle_standard_args)
CMakeLists.txt:11 (find_package)
I would appreciate any help.
Related
I'm trying to build 3d party application using CMake 3.17.5.
I have boost installed by vcpkg (on Windows). I checked I have boost-python installed by vcpkg.
I got the following error in CMake GUI:
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
Could NOT find Boost (missing: python) (found version "1.75.0")
Call Stack (most recent call first):
C:/Program Files (x86)/CMake/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files (x86)/CMake/share/cmake-3.17/Modules/FindBoost.cmake:2166 (find_package_handle_standard_args)
cmake/modules/FindUSDMonolithic.cmake:71 (find_package)
cmake/defaults/Packages.cmake:34 (find_package)
CMakeLists.txt:11 (include)
I tried setting CMAKE_TOOLCHAIN_FILE to vcpkg.cmake but it didn't hepled.
NOTE: CMake DOES find boost after I set Boost_INCLUDE_DIR to vcpkg/installed/x64-windows/include/ but it still have this weird error. Without setting this variable CMake can not find boost at all and error is different
You should find Python first:
find_package(Python3 REQUIRED COMPONENTS Development)
target_include_directories(MyTarget SYSTEM PRIVATE ${Python3_INCLUDE_DIRS})
find_package(Boost REQUIRED COMPONENTS python${Python3_VERSION_MAJOR}${Python3_VERSION_MINOR})
target_link_libraries(MyTarget PRIVATE Boost::python${Python3_VERSION_MAJOR}${Python3_VERSION_MINOR})
I want to set up a debugger for Visual Studio Code so I tried to build LLVM environment so as to have LLDB on my computer. But the build fails with following output:
CMake Warning at cmake/modules/GetHostTriple.cmake:28 (message):
unable to determine host target triple
Call Stack (most recent call first):
cmake/config-ix.cmake:401 (get_host_triple)
CMakeLists.txt:670 (include)
CMake Error at cmake/config-ix.cmake:409 (string):
string sub-command REGEX, mode MATCH needs at least 5 arguments total to
command.
Call Stack (most recent call first):
CMakeLists.txt:670 (include)
CMake Error at cmake/config-ix.cmake:453 (message):
Unknown architecture host
Call Stack (most recent call first):
CMakeLists.txt:670 (include)
I use clang v11.0.1, CMake v3.18.0-rc4, and Ninja v1.10.2.
I had same problem and fixed by adding this line manually as build option:
-DLLVM_HOST_TRIPLE=x86_64
Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19041.
Configuring vorbis 1.3.7
CMake Error at C:/Program Files/CMake/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:218 (message):
Could NOT find Ogg (missing: OGG_LIBRARY OGG_INCLUDE_DIR)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:577 (_FPHSA_FAILURE_MESSAGE)
cmake/FindOgg.cmake:73 (find_package_handle_standard_args)
CMakeLists.txt:65 (find_package)
I ran a cmake command and got the following error:
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake/Modules/FindFreetype.cmake:156 (find_package_handle_standard_args)
CMakeLists.txt:125 (find_package)
This thread says that I need to specify the .so file corresponding to FREETYPE_LIBRARY and the path to FREETYPE_INCLUDE_DIRS.
My question is how do I know if I have FREETYPE_LIBRARY installed and how to get these paths ?
My OS is Fedora release 28 (Twenty Eight).
I'm trying to load a project into CLion (using Windows 10 and Cygwin). When CLion processes the CMakeLists.txt file, the following errors are generated
C:\Users\doobop\.CLion2017.2\system\cygwin_cmake\bin\cmake.exe -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /cygdrive/m/stream
CMake Error at /cygdrive/c/Users/doobop/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeDetermineSystem.cmake:180 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:12 (project)
-- The C compiler identification is GNU 5.4.0
CMake Error at /cygdrive/c/Users/doobop/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeDetermineCCompiler.cmake:175 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:12 (project)
-- The CXX compiler identification is GNU 5.4.0
CMake Error at /cygdrive/c/Users/doobop/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeDetermineCXXCompiler.cmake:170 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:12 (project)
CMake Error at /cygdrive/c/Users/doobop/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeDetermineRCCompiler.cmake:55 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
/cygdrive/c/Users/doobop/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Platform/CYGWIN-GNU.cmake:50 (enable_language)
/cygdrive/c/Users/doobop/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Platform/CYGWIN-GNU-C.cmake:2 (__cygwin_compiler_gnu)
/cygdrive/c/Users/doobop/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeCInformation.cmake:48 (include)
CMakeLists.txt:12 (project)
What is at line 12?
project( SWP )
Why would the project assignment cause all these errors?