ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Installation from sources: Fail to Built Image_View (Fedora 29)

asked 2018-12-19 05:36:30 -0500

yyvus gravatar image

Hi,

I am currently trying to build ros from sources on Fedora 29. I run throught the previous issue already commented on Answers.

My new issue is that the package image_view does not find the include repository of the gtk package:

==> Processing catkin package: 'image_view'
==> Building with env: '/PATH/ros_catkin_ws/install_isolated/env.sh'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/PATH/ros_catkin_ws/build_isolated/image_view'
==> make -j4 -l4 in '/PATH/ros_catkin_ws/build_isolated/image_view'
[  5%] Built target image_view_gencfg
[ 17%] Built target disparity_view
[ 41%] Built target image_saver
[ 41%] Built target video_recorder
[ 47%] Building CXX object CMakeFiles/stereo_view.dir/src/nodes/stereo_view.cpp.o
[ 52%] Building CXX object CMakeFiles/image_view.dir/src/nodelets/image_nodelet.cpp.o
[ 58%] Building CXX object CMakeFiles/image_view.dir/src/nodelets/disparity_nodelet.cpp.o
[ 70%] Built target extract_images
[ 82%] Built target image_view_exe
/PATH/ros_catkin_ws/src/image_pipeline/image_view/src/nodelets/disparity_nodelet.cpp:42:10: fatal error: gtk/gtk.h: No such file or directory
 #include <gtk/gtk.h>
          ^~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/image_view.dir/build.make:76: CMakeFiles/image_view.dir/src/nodelets/disparity_nodelet.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/PATH/ros_catkin_ws/src/image_pipeline/image_view/src/nodelets/image_nodelet.cpp:46:10: fatal error: gtk/gtk.h: No such file or directory
 #include <gtk/gtk.h>
          ^~~~~~~~~~~
compilation terminated.

I did install the gtk2, gtk3 and gtk+ package using dnf:

$ ls /usr/include/gtk*
/usr/include/gtk-1.2:
gdk  gtk

/usr/include/gtk-2.0:
gdk  gtk

/usr/include/gtk-3.0:
gdk  gtk  unix-print

/usr/include/gtk-unix-print-2.0:
gtk

I guess cmake does not find the repository, or is missing a FindGTK.cmake? How could I help him find it?

edit retag flag offensive close merge delete

Comments

Do you actually have the gtk.h file in a gtk sub directory of your include path?

gvdhoorn gravatar image gvdhoorn  ( 2018-12-19 05:43:38 -0500 )edit

Yes they are installed (for the gtk-3.0: /usr/include/gtk-3.0/gtk/gtk.h)

yyvus gravatar image yyvus  ( 2018-12-19 07:06:18 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-12-20 10:00:55 -0500

yyvus gravatar image

I restarted from scratch and it finally found the sources files of gtk. (might have been a cache issue...?)

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-12-19 05:36:30 -0500

Seen: 431 times

Last updated: Dec 20 '18