Installation from sources: Fail to Built Image_View (Fedora 29)
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?
Do you actually have the
gtk.h
file in agtk
sub directory of your include path?Yes they are installed (for the gtk-3.0: /usr/include/gtk-3.0/gtk/gtk.h)