Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 417

Exporting a built directory

$
0
0
I'm trying to make `Caffe` into a ROS package (one that just builds the DLL), and I have a problem where an intermediate header file gets built into `build/.../caffe/include/caffe/proto/caffe.pb.h`, but packages that link to `caffe` fail with errors about being unable to find `caffe/proto/caffe.pb.h`. For `caffe` I use the supplied `CMakeLists.txt` with the addition of: find_package(catkin REQUIRED) catkin_package(INCLUDE_DIR include) I see the header file being correctly built in the `build` tree. For my project that includes `caffe` I have: find_package(catkin REQUIRED COMPONENTS ... caffe) catkin_package(CATKIN_DEPENDS ... caffe) include_directories(caffe/include ${catkin_INCLUDE_DIRS}) If I print out `${catkin_INCLUDE_DIRS}` I can see `src/.../caffe/include/caffe/proto/caffe.pb.h`, so how do I get `build` included also? I see that two of my `.msg`-only packages correctly reference `build`, but I cannot see what needs to be set to get `caffe`'s `build` directory included.

Viewing all articles
Browse latest Browse all 417

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>