Comments (5)
That builds fine on the farm and is linked to camera_calibration_parsers properly. Can you please go into your build folder and give me the output of make VERBOSE=1
. Thx.
from image_common.
Thanks for the quick response.
I ran the make with verbose - as you suggested - and surprise-surprise it did run through fine!
I have restarted since I last tried and have installed lots of ROS dependecies before, so the only thing I can think of that some of those required a restart!?
In any way, it works now. Thanks for your help!
from image_common.
You are not going to believe it but I face the exact same issue again and now I'm not as lucky as last time, I cannot figure out which ROS dependency to install to get this work.
So as you requested the last time I ran make VERBOSE=1 and got the below output:
/usr/bin/cmake -H/home/ilagi/ros_catkin_ws/src/image_common/camera_info_manager -B/home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager/CMakeFiles /home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager'
make -f CMakeFiles/camera_info_manager.dir/build.make CMakeFiles/camera_info_manager.dir/depend
make[2]: Entering directory `/home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager'
cd /home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/ilagi/ros_catkin_ws/src/image_common/camera_info_manager /home/ilagi/ros_catkin_ws/src/image_common/camera_info_manager /home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager /home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager /home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager/CMakeFiles/camera_info_manager.dir/DependInfo.cmake --color=
make[2]: Leaving directory `/home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager'
make -f CMakeFiles/camera_info_manager.dir/build.make CMakeFiles/camera_info_manager.dir/build
make[2]: Entering directory `/home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager'
make[2]: Nothing to be done for `CMakeFiles/camera_info_manager.dir/build'.
make[2]: Leaving directory `/home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager'
/usr/bin/cmake -E cmake_progress_report /home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager/CMakeFiles 1
[ 33%] Built target camera_info_manager
make -f gtest/CMakeFiles/gtest.dir/build.make gtest/CMakeFiles/gtest.dir/depend
make[2]: Entering directory `/home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager'
cd /home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/ilagi/ros_catkin_ws/src/image_common/camera_info_manager /usr/src/gtest /home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager /home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager/gtest /home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager/gtest/CMakeFiles/gtest.dir/DependInfo.cmake --color=
make[2]: Leaving directory `/home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager'
make -f gtest/CMakeFiles/gtest.dir/build.make gtest/CMakeFiles/gtest.dir/build
make[2]: Entering directory `/home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager'
make[2]: Nothing to be done for `gtest/CMakeFiles/gtest.dir/build'.
make[2]: Leaving directory `/home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager'
/usr/bin/cmake -E cmake_progress_report /home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager/CMakeFiles 3
[ 66%] Built target gtest
make -f CMakeFiles/unit_test.dir/build.make CMakeFiles/unit_test.dir/depend
make[2]: Entering directory `/home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager'
cd /home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/ilagi/ros_catkin_ws/src/image_common/camera_info_manager /home/ilagi/ros_catkin_ws/src/image_common/camera_info_manager /home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager /home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager /home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager/CMakeFiles/unit_test.dir/DependInfo.cmake --color=
make[2]: Leaving directory `/home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager'
make -f CMakeFiles/unit_test.dir/build.make CMakeFiles/unit_test.dir/build
make[2]: Entering directory `/home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager'
Linking CXX executable /home/ilagi/ros_catkin_ws/devel_isolated/camera_info_manager/lib/camera_info_manager/unit_test
/usr/bin/cmake -E cmake_link_script CMakeFiles/unit_test.dir/link.txt --verbose=1
/usr/bin/c++ CMakeFiles/unit_test.dir/tests/unit_test.cpp.o -o /home/ilagi/ros_catkin_ws/devel_isolated/camera_info_manager/lib/camera_info_manager/unit_test -rdynamic /home/ilagi/ros_catkin_ws/devel_isolated/camera_info_manager/lib/libcamera_info_manager.so gtest/libgtest.so /home/ilagi/ros_catkin_ws/install_isolated/lib/libroscpp.so -lboost_signals -lboost_filesystem /home/ilagi/ros_catkin_ws/install_isolated/lib/librosconsole.so /home/ilagi/ros_catkin_ws/install_isolated/lib/librosconsole_log4cxx.so /home/ilagi/ros_catkin_ws/install_isolated/lib/librosconsole_backend_interface.so -llog4cxx -lboost_regex /home/ilagi/ros_catkin_ws/install_isolated/lib/libroscpp_serialization.so /home/ilagi/ros_catkin_ws/install_isolated/lib/librostime.so -lboost_date_time -lboost_system -lboost_thread -lpthread /home/ilagi/ros_catkin_ws/install_isolated/lib/libxmlrpcpp.so /home/ilagi/ros_catkin_ws/install_isolated/lib/libcpp_common.so /home/ilagi/ros_catkin_ws/install_isolated/lib/libconsole_bridge.so /home/ilagi/ros_catkin_ws/install_isolated/lib/libroslib.so -lpthread -Wl,-rpath,/home/ilagi/ros_catkin_ws/devel_isolated/camera_info_manager/lib:/home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager/gtest:/home/ilagi/ros_catkin_ws/install_isolated/lib
/home/ilagi/ros_catkin_ws/devel_isolated/camera_info_manager/lib/libcamera_info_manager.so: undefined reference to `camera_calibration_parsers::readCalibration(std::string const&, std::string&, sensor_msgs::CameraInfo_<std::allocator<void> >&)'
/home/ilagi/ros_catkin_ws/devel_isolated/camera_info_manager/lib/libcamera_info_manager.so: undefined reference to `camera_calibration_parsers::writeCalibration(std::string const&, std::string const&, sensor_msgs::CameraInfo_<std::allocator<void> > const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/ilagi/ros_catkin_ws/devel_isolated/camera_info_manager/lib/camera_info_manager/unit_test] Error 1
make[2]: Leaving directory `/home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager'
make[1]: *** [CMakeFiles/unit_test.dir/all] Error 2
make[1]: Leaving directory `/home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager'
make: *** [all] Error 2
from image_common.
Just managed to solve the issue after @jbinney asking me (http://answers.ros.org/question/139246/undefined-reference-when-compiling-camera_info_manager/?answer=139321#post-id-139321) to add message() to the cmakelists file. As soon as I have added that the compile did run through fine. It looks the issue was that the first time when I tried to compile camera_info_manager then some of the prerequisites were missing, so I went and installed them including camera_calibration_parsers and came back to re-try
catkin_make_isolated --pkg camera_info_manager --install
but the error was still there like camera_calibration_parsers wouldn't be installed. As soon as I modified the cmakelists file the compile did find it. So the issue simply was that the dependencies are not listing camera_calibration_parsers, so when it gets added you need to trigger the recreation of the make file. Blah.
from image_common.
cool ! glad to hear :)
from image_common.
Related Issues (20)
- How to deactivate those topics which are not needed? HOT 3
- [ROS2] error output when advertising publisher HOT 2
- Support Modern CMake practices HOT 2
- [Feature Request] Python bindings HOT 2
- fatal error: camera_info_manager/camera_info_manager.hpp: No such file or directory HOT 1
- New release for Rolling HOT 2
- Republishing multiple cameras has unexpected results HOT 6
- CameraInfoManager should register services inside node namespace
- image_transport::CameraPublisher does not support cv::Mat Type adapter
- Low message read rate on other device and excessive message size with tutorial publisher HOT 2
- disable_pub_plugins parameter commented out in ROS2 HOT 1
- Unable to leverage compressed image topics as expected, ROS2 Humble HOT 5
- Error will cmake
- image_transport publisher nodes should support subscriber specific compression config HOT 2
- Merge #276 broke downstream packages HOT 1
- Camera & info synchronization check timer wrong seconds value HOT 1
- No synchornization HOT 1
- undefined reference error after upgrading ros-rolling-image-transport
- yuv422_yuy2 incorrectly (de)compressed HOT 1
- image_transport tutorial resized_plugins Shared Object mismatch between resized_plugins.xml and CMakeLists.txt
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from image_common.