That is a very odd layout. Are you not using the debian packages? You shouldn't compile into /opt/ros/.
For reference this is what the contents of the debian package is:
$ dpkg -L ros-hydro-navfn
/.
/opt
/opt/ros
/opt/ros/hydro
/opt/ros/hydro/lib
/opt/ros/hydro/lib/python2.7
/opt/ros/hydro/lib/python2.7/dist-packages
/opt/ros/hydro/lib/python2.7/dist-packages/navfn
/opt/ros/hydro/lib/python2.7/dist-packages/navfn/srv
/opt/ros/hydro/lib/python2.7/dist-packages/navfn/srv/_MakeNavPlan.py
/opt/ros/hydro/lib/python2.7/dist-packages/navfn/srv/_MakeNavPlan.pyc
/opt/ros/hydro/lib/python2.7/dist-packages/navfn/srv/__init__.pyc
/opt/ros/hydro/lib/python2.7/dist-packages/navfn/srv/_SetCostmap.pyc
/opt/ros/hydro/lib/python2.7/dist-packages/navfn/srv/__init__.py
/opt/ros/hydro/lib/python2.7/dist-packages/navfn/srv/_SetCostmap.py
/opt/ros/hydro/lib/python2.7/dist-packages/navfn/__init__.pyc
/opt/ros/hydro/lib/python2.7/dist-packages/navfn/__init__.py
/opt/ros/hydro/lib/libnavfn.so
/opt/ros/hydro/lib/pkgconfig
/opt/ros/hydro/lib/pkgconfig/navfn.pc
/opt/ros/hydro/lib/navfn
/opt/ros/hydro/lib/navfn/navfn_node
/opt/ros/hydro/share
/opt/ros/hydro/share/common-lisp
/opt/ros/hydro/share/common-lisp/ros
/opt/ros/hydro/share/common-lisp/ros/navfn
/opt/ros/hydro/share/common-lisp/ros/navfn/srv
/opt/ros/hydro/share/common-lisp/ros/navfn/srv/_package_SetCostmap.lisp
/opt/ros/hydro/share/common-lisp/ros/navfn/srv/MakeNavPlan.lisp
/opt/ros/hydro/share/common-lisp/ros/navfn/srv/_package_MakeNavPlan.lisp
/opt/ros/hydro/share/common-lisp/ros/navfn/srv/_package.lisp
/opt/ros/hydro/share/common-lisp/ros/navfn/srv/navfn-srv.asd
/opt/ros/hydro/share/common-lisp/ros/navfn/srv/SetCostmap.lisp
/opt/ros/hydro/share/navfn
/opt/ros/hydro/share/navfn/cmake
/opt/ros/hydro/share/navfn/cmake/navfnConfig-version.cmake
/opt/ros/hydro/share/navfn/cmake/navfnConfig.cmake
/opt/ros/hydro/share/navfn/cmake/navfn-msg-paths.cmake
/opt/ros/hydro/share/navfn/cmake/navfn-msg-extras.cmake
/opt/ros/hydro/share/navfn/package.xml
/opt/ros/hydro/share/navfn/bgp_plugin.xml
/opt/ros/hydro/share/navfn/srv
/opt/ros/hydro/share/navfn/srv/SetCostmap.srv
/opt/ros/hydro/share/navfn/srv/MakeNavPlan.srv
/opt/ros/hydro/include
/opt/ros/hydro/include/navfn
/opt/ros/hydro/include/navfn/MakeNavPlan.h
/opt/ros/hydro/include/navfn/MakeNavPlanResponse.h
/opt/ros/hydro/include/navfn/navfn
/opt/ros/hydro/include/navfn/navfn/read_pgm_costmap.h
/opt/ros/hydro/include/navfn/navfn/navfn.h
/opt/ros/hydro/include/navfn/navfn/navfn_ros.h
/opt/ros/hydro/include/navfn/navfn/potarr_point.h
/opt/ros/hydro/include/navfn/navfn/navwin.h
/opt/ros/hydro/include/navfn/MakeNavPlanRequest.h
/opt/ros/hydro/include/navfn/SetCostmapRequest.h
/opt/ros/hydro/include/navfn/SetCostmapResponse.h
/opt/ros/hydro/include/navfn/SetCostmap.h
/usr
/usr/share
/usr/share/doc
/usr/share/doc/ros-hydro-navfn
/usr/share/doc/ros-hydro-navfn/changelog.Debian.gz
Originally posted by tfoote with karma: 58457 on 2013-12-21
This answer was ACCEPTED on the original site
Post score: 1
Original comments
Comment by EddiEdward on 2013-12-21:
Thanks for your answer! My text might have sounded a bit confusing but your answer helped me! I didn't compile into opt/ros, my problem occurred when including a ros-header (navfn_ros.h). This header includes a file that doesn't exist.
Comment by EddiEdward on 2013-12-21:
I therefore conclude that it is a bug in the ros-navfn-package -> wrong header link. How should I report this?