Gtk-ERROR **: 14:39:47.000: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process

简介: Gtk-ERROR **: 14:39:47.000: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process

具体错误

Gtk-ERROR **: 14:39:47.000: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported

意思很明白,就是编译时,不能同时链接GTK 2.x与GTK3。这个时候直接链接GTK3即可。


如果不知道哪个是2,可以逐个删除测试。吾是去掉了以下链接通过:

" -lgobject-2.0 -lgtk-x11-2.0"
目录
相关文章
|
Linux Python
LINUX These critical programs are missing or too old: compiler python
LINUX These critical programs are missing or too old: compiler python
1155 0
LINUX These critical programs are missing or too old: compiler python
Qt5Error:msvc-version.conf loaded but QMAKE_MSC_VER ins‘t set
Qt5Error:msvc-version.conf loaded but QMAKE_MSC_VER ins‘t set
432 0
|
Python
_C.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN2at19UndefinedTensorImpl10_singletonE
_C.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN2at19UndefinedTensorImpl10_singletonE
812 0
x86_64-linux-gnu/libgdk-x11-2.0.so: error adding symbols: DSO missing from command line
x86_64-linux-gnu/libgdk-x11-2.0.so: error adding symbols: DSO missing from command line
251 0
解决办法:GTK+ 2.x symbols detected
解决办法:GTK+ 2.x symbols detected
372 0
gtk/gtk.h 没有那个文件或目录
gtk/gtk.h 没有那个文件或目录
198 0
|
计算机视觉
Qt 配置好OpenCV运行报错 The process was ended forcefully. exe Crashed.
Qt 配置好OpenCV运行报错 The process was ended forcefully. exe Crashed.
558 0
Qt 配置好OpenCV运行报错 The process was ended forcefully. exe Crashed.
Gtk-ERROR **: 14:39:47.000: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process
Gtk-ERROR **: 14:39:47.000: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process
420 0
|
C++ Windows
编译WINDOWS版SDL2:You should run hg revert SDL_config.h
编译WINDOWS版SDL2:You should run hg revert SDL_config.h
1125 0