Hello!
I receive a lot of errors when I try to compile my c++ program. I am on a Ubuntu 12.04 machine, this machine is a server that I control.
In order I had:
downloaded the source code of GLFW from official site, then followed the instruction
cd <glfw-root-dir>
mkdir build
cd build
cmake ..
after this in the "build" folder I launched the command
make
in the folder build/src I found the libglfw3.a and in the glfw folder root the /include folder.
I copied all the glfw folder into my project src/ folder, and also copied libglfw3.a in src/lib folder. In this folder I had also libGLEW.a used to my project too.
I created this Makefile for my project:
#variables
MYINC=-I/isis/AlfonsoOricchio/RayTracing/src/glfw/include -I/isis/AlfonsoOricchio/RayTracing/src/glew/include -I/isis/AlfonsoOricchio/RayTracing/src
MYCUDAINC=-I/usr/local/cuda-5.5/include/
MYLIB=-L/isis/AlfonsoOricchio/RayTracing/src/lib -L/usr/local/cuda-5.5/lib64/
MYCMD=-lcudart -lglfw3 -lGLEW -lGL
NVCC=/usr/local/cuda-5.5/bin/nvcc
all: myexe
myexe: render.o controls.o objloader.o shader.o Ray.o
g++ render.o controls.o objloader.o shader.o Ray.o $(MYLIB) $(MYCMD) -o RayTracing
Ray.o: Ray.cpp
g++ -c $(MYINC) $(MYCUDAINC) Ray.cpp
controls.o: controls.cpp
g++ -c $(MYINC) controls.cpp
objloader.o: objloader.cpp
g++ -c $(MYINC) objloader.cpp
shader.o: shader.cpp
g++ -c $(MYINC) shader.cpp
render.o:
$(NVCC) -c -arch=sm_20 render.cu
clean:
rm -rf *o RayTracing
But when I run the make, the "myexe" call give me this errors:
g++ render.o controls.o objloader.o shader.o Ray.o -L/isis/AlfonsoOricchio/RayTracing/src/lib -L/usr/local/cuda-5.5/lib64/ -lcudart -lglfw3 -lGLEW -lGL -o RayTracing
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_gamma.c.o):x11_gamma.c:function _glfwInitGammaRamp: error: undefined reference to 'XRRGetScreenResources'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_gamma.c.o):x11_gamma.c:function _glfwInitGammaRamp: error: undefined reference to 'XRRGetCrtcGammaSize'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_gamma.c.o):x11_gamma.c:function _glfwInitGammaRamp: error: undefined reference to 'XRRFreeScreenResources'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_gamma.c.o):x11_gamma.c:function _glfwPlatformGetGammaRamp: error: undefined reference to 'XRRGetCrtcGammaSize'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_gamma.c.o):x11_gamma.c:function _glfwPlatformGetGammaRamp: error: undefined reference to 'XRRGetCrtcGamma'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_gamma.c.o):x11_gamma.c:function _glfwPlatformGetGammaRamp: error: undefined reference to 'XRRFreeGamma'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_gamma.c.o):x11_gamma.c:function _glfwPlatformGetGammaRamp: error: undefined reference to 'XF86VidModeGetGammaRampSize'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_gamma.c.o):x11_gamma.c:function _glfwPlatformGetGammaRamp: error: undefined reference to 'XF86VidModeGetGammaRamp'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_gamma.c.o):x11_gamma.c:function _glfwPlatformSetGammaRamp: error: undefined reference to 'XRRAllocGamma'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_gamma.c.o):x11_gamma.c:function _glfwPlatformSetGammaRamp: error: undefined reference to 'XRRSetCrtcGamma'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_gamma.c.o):x11_gamma.c:function _glfwPlatformSetGammaRamp: error: undefined reference to 'XRRFreeGamma'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_gamma.c.o):x11_gamma.c:function _glfwPlatformSetGammaRamp: error: undefined reference to 'XF86VidModeSetGammaRamp'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function translateKey: error: undefined reference to 'XkbKeycodeToKeysym'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function translateKey: error: undefined reference to 'XkbKeycodeToKeysym'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function updateKeyCodeLUT: error: undefined reference to 'XkbGetKeyboard'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function updateKeyCodeLUT: error: undefined reference to 'XkbFreeKeyboard'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function getSupportedAtom: error: undefined reference to 'XInternAtom'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function detectEWMH: error: undefined reference to 'XInternAtom'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function detectEWMH: error: undefined reference to 'XInternAtom'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function detectEWMH: error: undefined reference to 'XFree'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function detectEWMH: error: undefined reference to 'XFree'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function detectEWMH: error: undefined reference to 'XFree'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function detectEWMH: error: undefined reference to 'XFree'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function initExtensions: error: undefined reference to 'XInternAtom'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function initExtensions: error: undefined reference to 'XF86VidModeQueryExtension'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function initExtensions: error: undefined reference to 'XRRQueryExtension'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function initExtensions: error: undefined reference to 'XRRQueryVersion'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function initExtensions: error: undefined reference to 'XQueryExtension'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function initExtensions: error: undefined reference to 'XIQueryVersion'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function initExtensions: error: undefined reference to 'XkbQueryExtension'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function initExtensions: error: undefined reference to 'XkbSetDetectableAutoRepeat'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function createNULLCursor: error: undefined reference to 'XCreatePixmap'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function createNULLCursor: error: undefined reference to 'XCreateGC'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function createNULLCursor: error: undefined reference to 'XFillRectangle'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function createNULLCursor: error: undefined reference to 'XCreatePixmapCursor'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function createNULLCursor: error: undefined reference to 'XFreePixmap'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function createNULLCursor: error: undefined reference to 'XFreeGC'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function terminateDisplay: error: undefined reference to 'XCloseDisplay'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function _glfwGrabXErrorHandler: error: undefined reference to 'XSetErrorHandler'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function _glfwReleaseXErrorHandler: error: undefined reference to 'XSync'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function _glfwReleaseXErrorHandler: error: undefined reference to 'XSetErrorHandler'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function _glfwInputXError: error: undefined reference to 'XGetErrorText'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function _glfwPlatformInit: error: undefined reference to 'XInitThreads'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function _glfwPlatformInit: error: undefined reference to 'XOpenDisplay'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function _glfwPlatformInit: error: undefined reference to 'XrmUniqueQuark'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_init.c.o):x11_init.c:function _glfwPlatformTerminate: error: undefined reference to 'XFreeCursor'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_monitor.c.o):x11_monitor.c:function _glfwSetVideoMode: error: undefined reference to 'XRRGetScreenResources'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_monitor.c.o):x11_monitor.c:function _glfwSetVideoMode: error: undefined reference to 'XRRGetCrtcInfo'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_monitor.c.o):x11_monitor.c:function _glfwSetVideoMode: error: undefined reference to 'XRRGetOutputInfo'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_monitor.c.o):x11_monitor.c:function _glfwSetVideoMode: error: undefined reference to 'XRRSetCrtcConfig'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_monitor.c.o):x11_monitor.c:function _glfwSetVideoMode: error: undefined reference to 'XRRFreeOutputInfo'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_monitor.c.o):x11_monitor.c:function _glfwSetVideoMode: error: undefined reference to 'XRRFreeCrtcInfo'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_monitor.c.o):x11_monitor.c:function _glfwSetVideoMode: error: undefined reference to 'XRRFreeScreenResources'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_monitor.c.o):x11_monitor.c:function _glfwRestoreVideoMode: error: undefined reference to 'XRRGetScreenResources'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_monitor.c.o):x11_monitor.c:function _glfwRestoreVideoMode: error: undefined reference to 'XRRGetCrtcInfo'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_monitor.c.o):x11_monitor.c:function _glfwRestoreVideoMode: error: undefined reference to 'XRRSetCrtcConfig'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_monitor.c.o):x11_monitor.c:function _glfwRestoreVideoMode: error: undefined reference to 'XRRFreeCrtcInfo'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_monitor.c.o):x11_monitor.c:function _glfwRestoreVideoMode: error: undefined reference to 'XRRFreeScreenResources'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_monitor.c.o):x11_monitor.c:function _glfwPlatformGetMonitors: error: undefined reference to 'XRRGetScreenResources'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_monitor.c.o):x11_monitor.c:function _glfwPlatformGetMonitors: error: undefined reference to 'XRRGetOutputPrimary'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_monitor.c.o):x11_monitor.c:function _glfwPlatformGetMonitors: error: undefined reference to 'XRRGetCrtcInfo'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_monitor.c.o):x11_monitor.c:function _glfwPlatformGetMonitors: error: undefined reference to 'XRRFreeCrtcInfo'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_monitor.c.o):x11_monitor.c:function _glfwPlatformGetMonitors: error: undefined reference to 'XRRGetOutputInfo'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_monitor.c.o):x11_monitor.c:function _glfwPlatformGetMonitors: error: undefined reference to 'XRRFreeOutputInfo'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_monitor.c.o):x11_monitor.c:function _glfwPlatformGetMonitors: error: undefined reference to 'XRRFreeCrtcInfo'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_monitor.c.o):x11_monitor.c:function _glfwPlatformGetMonitors: error: undefined reference to 'XRRFreeOutputInfo'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_monitor.c.o):x11_monitor.c:function _glfwPlatformGetMonitors: error: undefined reference to 'XRRFreeScreenResources'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_monitor.c.o):x11_monitor.c:function _glfwPlatformGetMonitorPos: error: undefined reference to 'XRRGetCrtcInfo'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_monitor.c.o):x11_monitor.c:function _glfwPlatformGetVideoModes: error: undefined reference to 'XRRGetOutputInfo'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_monitor.c.o):x11_monitor.c:function _glfwPlatformGetVideoModes: error: undefined reference to 'XRRFreeOutputInfo'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_time.c.o):x11_time.c:function getRawTime: error: undefined reference to 'clock_gettime'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_time.c.o):x11_time.c:function _glfwInitTimer: error: undefined reference to 'clock_gettime'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function translateChar: error: undefined reference to 'XLookupString'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function createWindow: error: undefined reference to 'XCreateColormap'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function createWindow: error: undefined reference to 'XCreateWindow'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function createWindow: error: undefined reference to 'XChangeProperty'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function createWindow: error: undefined reference to 'XSaveContext'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function createWindow: error: undefined reference to 'XChangeWindowAttributes'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function createWindow: error: undefined reference to 'XSetWMProtocols'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function createWindow: error: undefined reference to 'XChangeProperty'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function createWindow: error: undefined reference to 'XAllocWMHints'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function createWindow: error: undefined reference to 'XSetWMHints'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function createWindow: error: undefined reference to 'XAllocSizeHints'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function createWindow: error: undefined reference to 'XSetWMNormalHints'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function createWindow: error: undefined reference to 'XAllocClassHint'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function createWindow: error: undefined reference to 'XSetClassHint'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function createWindow: error: undefined reference to 'XISelectEvents'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function createWindow: error: undefined reference to 'XRRSelectInput'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function hideCursor: error: undefined reference to 'XUngrabPointer'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function hideCursor: error: undefined reference to 'XDefineCursor'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function captureCursor: error: undefined reference to 'XGrabPointer'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function showCursor: error: undefined reference to 'XUngrabPointer'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function showCursor: error: undefined reference to 'XUndefineCursor'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function enterFullscreenMode: error: undefined reference to 'XGetScreenSaver'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function enterFullscreenMode: error: undefined reference to 'XSetScreenSaver'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function enterFullscreenMode: error: undefined reference to 'XChangeProperty'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function enterFullscreenMode: error: undefined reference to 'XSendEvent'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function enterFullscreenMode: error: undefined reference to 'XSendEvent'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function enterFullscreenMode: error: undefined reference to 'XRaiseWindow'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function enterFullscreenMode: error: undefined reference to 'XSetInputFocus'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function enterFullscreenMode: error: undefined reference to 'XMoveWindow'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function enterFullscreenMode: error: undefined reference to 'XResizeWindow'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function leaveFullscreenMode: error: undefined reference to 'XSetScreenSaver'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function leaveFullscreenMode: error: undefined reference to 'XChangeProperty'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function leaveFullscreenMode: error: undefined reference to 'XSendEvent'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function processEvent: error: undefined reference to 'XSendEvent'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function processEvent: error: undefined reference to 'XGetEventData'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function processEvent: error: undefined reference to 'XFreeEventData'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function processEvent: error: undefined reference to 'XRRUpdateConfiguration'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function _glfwFindWindowByHandle: error: undefined reference to 'XFindContext'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function _glfwGetWindowProperty: error: undefined reference to 'XGetWindowProperty'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function _glfwPlatformDestroyWindow: error: undefined reference to 'XGetSelectionOwner'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function _glfwPlatformDestroyWindow: error: undefined reference to 'XDeleteContext'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function _glfwPlatformDestroyWindow: error: undefined reference to 'XUnmapWindow'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function _glfwPlatformDestroyWindow: error: undefined reference to 'XDestroyWindow'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function _glfwPlatformDestroyWindow: error: undefined reference to 'XFreeColormap'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function _glfwPlatformSetWindowTitle: error: undefined reference to 'Xutf8SetWMProperties'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function _glfwPlatformGetWindowPos: error: undefined reference to 'XTranslateCoordinates'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function _glfwPlatformGetWindowPos: error: undefined reference to 'XTranslateCoordinates'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function _glfwPlatformSetWindowPos: error: undefined reference to 'XMoveWindow'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function _glfwPlatformSetWindowPos: error: undefined reference to 'XFlush'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function _glfwPlatformGetWindowSize: error: undefined reference to 'XGetWindowAttributes'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function _glfwPlatformSetWindowSize: error: undefined reference to 'XResizeWindow'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function _glfwPlatformSetWindowSize: error: undefined reference to 'XAllocSizeHints'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function _glfwPlatformSetWindowSize: error: undefined reference to 'XSetWMNormalHints'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function _glfwPlatformSetWindowSize: error: undefined reference to 'XResizeWindow'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function _glfwPlatformSetWindowSize: error: undefined reference to 'XFlush'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function _glfwPlatformIconifyWindow: error: undefined reference to 'XIconifyWindow'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function _glfwPlatformRestoreWindow: error: undefined reference to 'XMapWindow'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function _glfwPlatformShowWindow: error: undefined reference to 'XMapRaised'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function _glfwPlatformShowWindow: error: undefined reference to 'XFlush'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function _glfwPlatformHideWindow: error: undefined reference to 'XUnmapWindow'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function _glfwPlatformHideWindow: error: undefined reference to 'XFlush'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function _glfwPlatformPollEvents: error: undefined reference to 'XPending'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function _glfwPlatformPollEvents: error: undefined reference to 'XNextEvent'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function _glfwPlatformWaitEvents: error: undefined reference to 'XPending'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_window.c.o):x11_window.c:function _glfwPlatformSetCursorPos: error: undefined reference to 'XWarpPointer'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(glx_context.c.o):glx_context.c:function _glfwInitContextAPI: error: undefined reference to 'pthread_key_create'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(glx_context.c.o):glx_context.c:function _glfwTerminateContextAPI: error: undefined reference to 'pthread_key_delete'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(glx_context.c.o):glx_context.c:function _glfwPlatformMakeContextCurrent: error: undefined reference to 'pthread_setspecific'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(glx_context.c.o):glx_context.c:function _glfwPlatformGetCurrentContext: error: undefined reference to 'pthread_getspecific'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_clipboard.c.o):x11_clipboard.c:function _glfwPushSelectionToManager: error: undefined reference to 'XConvertSelection'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_clipboard.c.o):x11_clipboard.c:function _glfwPushSelectionToManager: error: undefined reference to 'XCheckIfEvent'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_clipboard.c.o):x11_clipboard.c:function _glfwPlatformSetClipboardString: error: undefined reference to 'XSetSelectionOwner'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_clipboard.c.o):x11_clipboard.c:function _glfwPlatformSetClipboardString: error: undefined reference to 'XGetSelectionOwner'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_clipboard.c.o):x11_clipboard.c:function _glfwPlatformGetClipboardString: error: undefined reference to 'XGetSelectionOwner'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_clipboard.c.o):x11_clipboard.c:function _glfwPlatformGetClipboardString: error: undefined reference to 'XConvertSelection'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_clipboard.c.o):x11_clipboard.c:function _glfwPlatformGetClipboardString: error: undefined reference to 'XCheckTypedEvent'
/isis/AlfonsoOricchio/RayTracing/src/lib/libglfw3.a(x11_clipboard.c.o):x11_clipboard.c:function _glfwPlatformGetClipboardString: error: undefined reference to 'XDeleteProperty'
collect2: ld returned 1 exit status
What Can I do?