On Sat, 2017-05-20 at 14:09 +0430, navid Rahimi wrote: > Hi, > > I am trying to use Skia static library in my system. The problem is > it depends on libglvnd. That's not the problem, I don't think. > : && /usr/bin/clang++ -rdynamic CMakeFiles/Chpp.dir/src/main.cpp.o -o > Chpp -L/home/navid/development/Chpp/lib > -Wl,-rpath,/home/navid/development/Chpp/lib:/usr/local/lib -lz -lglog > -lcryptopp /usr/local/lib/libre2.so -lprotobuf -lpthread -lfontconfig > -lfreetype -lpng -lz -ljpeg -lwebp -lwayland-client -lwayland-server > -lwayland-egl -lwayland-cursor -lGLEW -lvulkan ../lib/libskia.a -ldl > -lglog -lcryptopp /usr/local/lib/libre2.so -lprotobuf -lpthread > -lfontconfig -lfreetype -lpng -ljpeg -lwebp -lwayland-client > -lwayland-server -lwayland-egl -lwayland-cursor -lGLEW -lvulkan > ../lib/libskia.a -ldl && : -lGLEW here means skia is trying to get the GL symbols from the GLEW wrapper library. But GLEW doesn't wrap all GLX symbols, so if the application calls one of the ones it doesn't wrap, it needs to also link with -lGL. > /usr/bin/ld: ../lib/libskia.a(gpu.GrGLCreateNativeInterface_glx.o): > undefined reference to symbol 'glXGetCurrentContext' > > /usr/local/lib/libGL.so.1: error adding symbols: DSO missing from > command line This is the linker telling you that skia should also have said -lGL. > Although I fixed my problem with compiling libglvnd from upstream and > installing it myself. I don't understand how this would have fixed anything. Can you elaborate? - ajax _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx