cv::imshow() error with opencv 3.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

cv::imshow() error with opencv 3.

Chao
 Hi Mathieu,

I modified the main.cpp in RGBDMapping example by adding cv::imshow(data.imageRaw()). I compiled rtabmap with opencv3.4.2 and it can pass the compilation. However, during run-time there is error:

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

So I am wondering that is rtabmap built on gtk+2 (as my opencv3 is compiled with gtk+ 3)? When compiling with opencv 2.4.8 the run-time error doesn't appear, but I want to use some other modules featured in opencv3 only.

Is there any solution to solve the problem?

Thanks,
Chao
Reply | Threaded
Open this post in threaded view
|

Re: cv::imshow() error with opencv 3.

Chao
Solved with recompiling opencv3 WITH_GTK_2_X