thien94 / orb_slam3_ros_wrapper

A ROS wrapper for ORB-SLAM3. Focus on portability and flexibility.
176 stars 79 forks source link

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

Closed ToshikiNakamura0412 closed 1 year ago

ToshikiNakamura0412 commented 1 year ago

When I run "roslaunch orb_slam3_ros_wrapper euroc_monoimu.launch", this error occurs: スクリーンショット 2022-10-28 14 22 46

The above error occurs when map viewer is started. (Map viewer is not displayed.) Do you know what's the problem with this?

I can run UZ-SLAMLab/ORB_SLAM3 v1.0-release. (EuRoC Examples and ROS Examples)

Environment

thien94 commented 1 year ago

Hi, perhaps one of the libraries uses gtk 2.0 instead of 3.0 which creates an incompatibility issue (the error) https://github.com/raulmur/ORB_SLAM2/issues/404 https://github.com/raulmur/ORB_SLAM2/issues/325.

ToshikiNakamura0412 commented 1 year ago

I did the following

But, same error occurs.

スクリーンショット 2022-10-28 15 11 02スクリーンショット 2022-10-28 15 11 44

thien94 commented 1 year ago

Most likely it is the same issue as https://github.com/thien94/orb_slam3_ros_wrapper/issues/16. Can you try following the same steps to install OpenCV 4.4.0?

ToshikiNakamura0412 commented 1 year ago

I also installed according to Mauhing/ORB_SLAM3/README.md. I changed the cmake options when building OpenCV as #16. Then I recompiled ORB-SLAM3 and ros wrapper. The issue was solved. Thank you very much for your advice.