Hi,
I am trying to use Skia static library in my system. The problem is it
depends on libglvnd.
14:06:45: Starting: "/usr/bin/cmake" --build . --target all
[1/1 7.3/sec] Linking CXX executable Chpp
FAILED: Chpp
: && /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 && :
/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
clang-3.9: error: linker command failed with exit code 1 (use -v to
see invocation)
ninja: build stopped: subcommand failed.
14:06:45: The process "/usr/bin/cmake" exited with code 1.
Error while building/deploying project Chpp (kit: Desktop)
When executing step "CMake Build".
I did check the GLX package comes with fedora :
[navid@workstation skia]$ readelf -s /usr/lib64/libGL.so.1 | grep
glXGetCurrentContext
664: 0000000000041460 19 FUNC GLOBAL DEFAULT 11 glXGetCurrentContext
[navid@workstation skia]$
It seems it does provide this function. But there is something wrong with it.
Although I fixed my problem with compiling libglvnd from upstream and
installing it myself. But I think it would be great if somebody more
familiar with these libraries can look at this problem and fix if
there is something wrong with this package in fedora.
best wishes,
-navid