Closed komkomh closed 5 years ago
Maybe not documented here, but documented in upstream libui: https://github.com/andlabs/libui/blob/master/README.md#runtime-requirements Linux version requires GTK+ 3.10 or newer
If it is installed - what is output of pkg-config --libs gtk3
?
Hello
Thank you your quick response. I checked my gtk3 version.
pkg-config --modversion gtk+-3.0
3.22.30
pkg-config --libs gtk+-3.0
-lgtk-3 -lgdk-3 -latk-1.0 -lgio-2.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo-gobject -lpango-1.0 -lcairo -lgobject-2.0 -lglib-2.0
Ok, it's installed properly.
Well, now - where is it installed on CentOS?
If - I can guess - in /usr/lib64
- please try add it to library path, and rebuild:
--- a/libui/src/nativeInterop/cinterop/libui.def
+++ b/libui/src/nativeInterop/cinterop/libui.def
@@ -7,7 +7,7 @@ libraryPaths = build libui/build
linkerOpts.osx = -lobjc -framework Foundation -framework AppKit
-linkerOpts.linux = -L/usr/lib/x86_64-linux-gnu -L/usr/lib \
+linkerOpts.linux = -L/usr/lib/x86_64-linux-gnu -L/usr/lib64 -L/usr/lib \
-lgtk-3 -lgdk-3 -latk-1.0 -lgio-2.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 \
-lcairo-gobject -lpango-1.0 -lcairo -lgobject-2.0 -lglib-2.0 -lm -ldl
Thank you! I was able to solve the problem. I'm sorry for the basic questions.
So -L/usr/lib64
helped on CentOS?
If yes - I'll add it to next published version.
Yes, I found gtk3 in -L/usr/lib64
Hello. I tried to work hello-ktx sample according to README in this project. But it doesn't work and output this error.
My os version is CentOS Linux release 7.6.1810 (Core)
Please give me a hint. Thanks