Build GLFW on Steamdeck

Good Morning, i have started to work on my steam deck with visual studio code and cmake.

Unfortunately my setup do not work, GLFW can not be found.

I have this CMake File:

cmake_minimum_required(VERSION 3.5)


# Set C++ standard



# Include GLFW headers


# Add executable

add_executable(test src/main.cpp)

# Link GLFW library to your executable

target_link_libraries(test ${CMAKE_SOURCE_DIR}/usr/lib/

My error is:

[main] Building folder: game_engine

[build] Starting build

[proc] Executing command: /usr/bin/cmake --build /home/deck/Programming/game_engine/build --config Debug --target all --

[build] ninja: error: '/home/deck/Programming/game_engine/usr/lib/', needed by 'test', missing and no known rule to make it

[proc] The command: /usr/bin/cmake --build /home/deck/Programming/game_engine/build --config Debug --target all -- exited with code: 1

[driver] Build completed: 00:00:00.029

[build] Build finished with exit code 1

At the moment i do not know why my project can not find the GWFL Libary, maybe someone of you can help me.

Thanks in advance.
Further Information:

he following files in usr/lib/cmake/glfw3 :


Also there are two header files in /usr/include/GLFW called:


Also i have this so’s:


Permission of usr/lib/
with following command: ls -l
lrwxrwxrwx 1 root root 12 Jul 23 2022 →

Permission is set to:
-rwxr-xr-x 1 root root 278200 Jul 23 2022 /usr/lib/
Permission of /usr/include/GLFW/glfw3.h:
-rw-r–r-- 1 root root 215860 Jul 23 2022 glfw3.h

Reinstalling with sudo pacman -S glfw-x11

I recommend you take a look at this GLFW-CMake-starter, though once you clone this I would update the GLFW subproject to the latest available code.

thank you for this git project, it builds, so something in wrong with my project. But i knew this before, i will dig further into it.

Thank you and have a nice day.