For me the only reasonable explanation is that cmake gets the path it searches for libraries in from the compiler itself. I compiled the llvm project in my user directory and pointing to the clang and lld executables in the cmake preset.įor me it is quite confusing that this issue is happening during the cmake configuration process. See also "/home/oste_ar/Development/private/raviscpp/build/CMakeFiles/CMakeOutput.log". Configuring incomplete, errors occurred! build/_deps/glfw-src/CMakeLists.txt:208 (find_package) usr/share/cmake-3.18/Modules/FindX11.cmake:414 (find_package_handle_standard_args) usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE) Could NOT find X11 (missing: X11_X11_LIB) CMake Error at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message): Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) Executing command: /usr/bin/cmake -DCMAKE_C_COMPILER=/home/oste_ar/tools/llvm-project/build/bin/clang -DCMAKE_CXX_COMPILER=/home/oste_ar/tools/llvm-project/build/bin/clang++ -DCMAKE_C_LINK_EXECUTABLE=/home/oste_ar/tools/llvm-project/build/bin/ld.lld -DCMAKE_CXX_LINK_EXECUTABLE=/home/oste_ar/tools/llvm-project/build/bin/ld.lld -H/home/oste_ar/Development/private/raviscpp -B/home/oste_ar/Development/private/raviscpp/build -G "Unix Makefiles" When I switch to clang I get an error during the cmake configuration process: ![]() ![]() When I compile glfw with the gcc preset I have no problems at all. ![]() "CMAKE_CXX_COMPILER": "/bin/x86_64-linux-gnu-g++-11"Īs you can see I have two presets. "CMAKE_CXX_LINK_EXECUTABLE": "/home/oste_ar/tools/llvm-project/build/bin/ld.lld" "CMAKE_C_LINK_EXECUTABLE": "/home/oste_ar/tools/llvm-project/build/bin/ld.lld", "CMAKE_CXX_COMPILER": "/home/oste_ar/tools/llvm-project/build/bin/clang++", "CMAKE_C_COMPILER": "/home/oste_ar/tools/llvm-project/build/bin/clang", "description": "Using compilers: C = /home/oste_ar/tools/llvm-project/build/bin/clang, CXX = /home/oste_ar/tools/llvm-project/build/bin/clang", Librust-x11-dev - X11 library bindings for Rust - Rust source code Librust-cairo-sys-rs+x11-dev - FFI bindings to libcairo - feature "x11" Libnx-x11-dev - nxagent's libNX_X11 client-part library (development headers) Libghc-x11-dev - Haskell X11 binding for GHC ![]() Libxkbcommon-x11-dev - library to create keymaps with the XKB X11 protocol - development files Libx11-dev - X11 client-side library (development headers) See also "/mnt/c/Users/wangsc/Downloads/glfw/glfw-3.3.4/build/CMakeFiles/CMakeOutput.log". usr/share/cmake-3.16/Modules/FindX11.cmake:366 (find_package_handle_standard_args) usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE) ĬMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):Ĭould NOT find X11 (missing: X11_X11_LIB) Libx11-dev is already the newest version (2:1.6.9-2ubuntu1.2).Ġ upgraded, 0 newly installed, 0 to remove and 0 not cmake.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |