I met an error when I run make command in bulid file of my project
It shows
//usr/local/lib/libglfw3.a(x11_init.c.o): In function `initExtensions' :
x11_init.c:(.text+0x196c): undefined reference to symbol`XF86VidModeQueryExtension'
//usr/local/lib/libglfw3.a(x11_monitor.c.o): In function `_glfwPlatformGetGammaRamp' :
x11_monitor.c:(.text+0x1219): undefined reference to symbol`XF86VidModeGetGammaRampSize'
x11_monitor.c:(.text+0x127c): undefined reference to symbol`XF86VidModeGetGammaRamp'
//usr/local/lib/libglfw3.a(x11_monitor.c.o): In function `_glfwPlatformSetGammaRamp' :
x11_monitor.c:(.text+0x13ee): undefined reference to symbol`XF86VidModeSetGammaRamp'
collect2: error: ld returned 1 exit status
CMakeFiles/main.dir/build.make:188: recipe for target 'main' failed
make[2]: *** [main] Error 1
CMakeFiles/Makefile2:141: recipe for target 'CMakeFiles/main.dir/all' failed
make[1]: *** [CMakeFiles/main.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
I have no idea where is wrong, I searched the error and it says maybe I need libXxf86vm, but I did have it on my PC
New contributor
時雨_Saber is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.