You are not logged in.
Pages: 1
Hello, I am new Arch Linux user, and currently I am trying to use VS Code together with CMake and Vulkan to do my C++ university work, but when I build my folder I encounter the following problems..
[main] Building folder: framework
[main] Configuring folder: framework
[proc] Executing command: /var/lib/snapd/snap/bin/cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/x86_64-pc-linux-gnu-gcc-11.1.0 -H/home/alex/ECG/framework -B/home/alex/ECG/framework/build -G "Unix Makefiles"
[cmake] Not searching for unused variables given on the command line.
[cmake] -- GCC detected, adding compile flags
[cmake] -- GCC detected, adding compile flags
[cmake] -- Could NOT find GLM (missing: GLM_INCLUDE_DIR)
[cmake] -- GLM not found, including submodule explizitly
[cmake] CMake Error at TGA/CMakeLists.txt:37 (add_subdirectory):
[cmake] The source directory
[cmake]
[cmake] /home/alex/ECG/framework/TGA/external/glm
[cmake]
[cmake] does not contain a CMakeLists.txt file.
[cmake]
[cmake]
[cmake] -- Could NOT find GLFW (missing: GLFW_INCLUDE_DIR GLFW_LIBRARY)
[cmake] -- GLFW could not be found with normal lookup, try PkgConfig instead
[cmake] -- Checking for one of the modules 'glfw3'
[cmake] -- GLFW could not be found, building libraries
[cmake] CMake Error at TGA/CMakeLists.txt:57 (add_subdirectory):
[cmake] The source directory
[cmake]
[cmake] /home/alex/ECG/framework/TGA/external/glfw
[cmake]
[cmake] does not contain a CMakeLists.txt file.
[cmake]
[cmake]
[cmake] -- Configuring incomplete, errors occurred!
[cmake] See also "/home/alex/ECG/framework/build/CMakeFiles/CMakeOutput.log".
[cmake] See also "/home/alex/ECG/framework/build/CMakeFiles/CMakeError.log".
Any help will be very appreciated. Thank you ![]()
Offline
What commands are you using to configure and build? Typically I do something like the following:
mkdir build && cd build
cmake ..
make
sudo make installAs an aside, does your university work have a requirement forcing you to build VS Code from source? A binary already exists in the repos (called code), and the relevant Arch wiki page lists several additional AUR offerings. If one of those does what you need then I would highly encourage going that route for ease of upgrades and uninstallations.
Finally, if you do need to build from source, another thing to verify is that you have all dependencies installed. Sometimes (to me, always) cmake error messages can be a bit cryptic, so I can't tell what if anything is missing in terms of dependencies. But a place you can start is to go through the dependencies listed on the arch package page for code and make sure everything's installed.
Offline
Pages: 1