Dear all,
when I was running the cv2
with JetPack v4.4
on AGX, I got this error.
Gtk-ERROR **: 12:02:01.858: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported
When I used this command:
pkg-config --libs gtk+-2.0
or pkg-config --libs gtk+-3.0
Output :
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
or
Package gtk+-3.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-3.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-3.0' found
I searched it. (Reference: pkg-config not finding gtk±3.0)
Command:
dpkg -l libgtk* | grep -e '^i' | grep -e 'libgtk-*[0-9]'
Output:
zsh: no matches found: libgtk*
Hence, I installed these libraries.
sudo apt-get install libwebkit2gtk-4.0-dev libgtk-3-dev libglib2.0-dev autogen autoconf libtool m4 automake pkg-config libtool intltool-debian
So I can find something…
Command:
pkg-config --libs gtk+-3.0
Outuput:
-lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
But I still get the same error. Cannot fix it.
Someone suggested that we can downgrade the opencv version to fix it.
The JetPack v4.4 default opencv version is 4.1.1
.
However, this opencv version can work on my pc (linux).
As I have another Jetson device (TX2) which was installed by 3.2.0
with JetPack v4.3
and it can work my script without any error.
So I wonder is it better to downgrade the opencv version on AGX device? or any other method to fix this bug?
Thank you.
Environment
TensorRT Version : 7.1 with Jetpack 4.4
GPU Type : (Jetson AGX Xavier)
Nvidia Driver Version : Jetpack 4.4
CUDA Version : 10.2
CUDNN Version : 8.0
Operating System + Version : Jetpack 4.4 (Costimized Ubuntu 18.04)
Python Version (if applicable) : 3.6
PyTorch Version (if applicable) : 1.5.0
cmake version : 3.13.0
opencv version : 4.1.1