After I run make in build-arm folder I get Scanning dependencies of target glfw [ 1%] Building C object src/CMakeFiles/glfw.dir/context.c.o In file included from /glfw-3.4/src/platform.h:81, from /glfw-3.4/src/internal.h:325, from /glfw-3.4/src/context.c:28: /glfw-3.4/src/x11_platform.h:32:10: fatal error: X11/Xlib.h: No such file or directory #include <X11/Xlib.h>
Is it possible that the sysroot don’t have X11 installed?
First I would check that you can build GLFW normally for your Linux x86_64 system and then try a cross compile, making sure to read the CMake cross compile instructions carefully. I have no experience myself with this so probably can’t help any further.