即使已安装,也无法链接到 gtk/gtk.h

即使已安装,也无法链接到 gtk/gtk.h

我正在尝试在 debian jessie 上构建 CEF (chromiumembedded)

##########
Linking CXX static library libcef_dll_wrapper.a
[ 81%] Built target libcef_dll_wrapper
[ 81%] Building CXX object cefclient/CMakeFiles/cefclient.dir/binding_test.cpp.o
In file included from /home/netbrain/tools/cef_binary_3.2171.1979_linux64/cefclient/binding_test.h:9:0,
                 from /home/netbrain/tools/cef_binary_3.2171.1979_linux64/cefclient/binding_test.cpp:5:
/home/netbrain/tools/cef_binary_3.2171.1979_linux64/cefclient/client_handler.h:21:21: fatal error: gtk/gtk.h: No such file or directory
 #include <gtk/gtk.h>
                     ^
compilation terminated.
cefclient/CMakeFiles/cefclient.dir/build.make:54: recipe for target 'cefclient/CMakeFiles/cefclient.dir/binding_test.cpp.o' failed
make[2]: *** [cefclient/CMakeFiles/cefclient.dir/binding_test.cpp.o] Error 1
CMakeFiles/Makefile2:125: recipe for target 'cefclient/CMakeFiles/cefclient.dir/all' failed
make[1]: *** [cefclient/CMakeFiles/cefclient.dir/all] Error 2
Makefile:78: recipe for target 'all' failed
make: *** [all] Error 2
##########

##########
find / | egrep ".*gtk/gtk.h$"
/usr/include/gtk-2.0/gtk/gtk.h
##########

##########
pkg-config --cflags gtk+-2.0
-pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 
##########

我不太熟悉从源代码构建,但据我所知,我真的看不出我的系统有什么问题以及为什么 CEF 不接受这个库。

关于如何进一步调试这个问题有什么想法吗?

答案1

我使用 Ubuntu 16.04 并得到同样的错误。我切换到忍者构建系统并且它可以工作。

相关内容