You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/usr/local/include/opencv2/core/mat.hpp:367: undefined reference to cv::Mat::deallocate()' CMakeFiles/example6.dir/src/example6.cpp.o: In functioncv::Mat::release()':
/usr/local/include/opencv2/core/mat.hpp:367: undefined reference to cv::Mat::deallocate()' CMakeFiles/example6.dir/src/example6.cpp.o: In function~Mat':
/usr/local/include/opencv2/core/mat.hpp:278: undefined reference to cv::fastFree(void*)' CMakeFiles/example6.dir/src/example6.cpp.o: In functioncv::Mat::release()':
/usr/local/include/opencv2/core/mat.hpp:367: undefined reference to cv::Mat::deallocate()' CMakeFiles/example6.dir/src/example6.cpp.o: In functioncv::Mat::~Mat()':
/usr/local/include/opencv2/core/mat.hpp:278: undefined reference to cv::fastFree(void*)' CMakeFiles/example6.dir/src/example6.cpp.o: In function~Mat':
/usr/local/include/opencv2/core/mat.hpp:278: undefined reference to cv::fastFree(void*)' /usr/local/include/opencv2/core/mat.hpp:367: undefined reference tocv::Mat::deallocate()'
/usr/local/include/opencv2/core/mat.hpp:278: undefined reference to cv::fastFree(void*)' /usr/local/include/opencv2/core/mat.hpp:367: undefined reference tocv::Mat::deallocate()'
CMakeFiles/example6.dir/src/example6.cpp.o: In function main': /home/raoul/dev/rosbook/chapter3_tutorials/src/example6.cpp:19: undefined reference tocv::VideoCapture::VideoCapture(int)'
/home/dev/rosbook/chapter3_tutorials/src/example6.cpp:20: undefined reference to
/home/dev/rosbook/chapter3_tutorials/src/example6.cpp:19: undefined reference to `cv::VideoCapture::~VideoCapture()'
I am using Opencv 2.9?
The text was updated successfully, but these errors were encountered:
ghost
changed the title
I have been getting this error in Example 6
How do i solve this undefined reference?
Jun 14, 2015
I think you need to add a find_library for OpenCV and then add target_link_libraries for each executable affected, linking against ${OpenCV_LIBRARIES}.
Something like that should work. However, with rosbuild this usually doesn't happen. Which branch are you using? master?
/usr/local/include/opencv2/core/mat.hpp:367: undefined reference to
cv::Mat::deallocate()' CMakeFiles/example6.dir/src/example6.cpp.o: In function
cv::Mat::release()':/usr/local/include/opencv2/core/mat.hpp:367: undefined reference to
cv::Mat::deallocate()' CMakeFiles/example6.dir/src/example6.cpp.o: In function
~Mat':/usr/local/include/opencv2/core/mat.hpp:278: undefined reference to
cv::fastFree(void*)' CMakeFiles/example6.dir/src/example6.cpp.o: In function
cv::Mat::release()':/usr/local/include/opencv2/core/mat.hpp:367: undefined reference to
cv::Mat::deallocate()' CMakeFiles/example6.dir/src/example6.cpp.o: In function
cv::Mat::~Mat()':/usr/local/include/opencv2/core/mat.hpp:278: undefined reference to
cv::fastFree(void*)' CMakeFiles/example6.dir/src/example6.cpp.o: In function
~Mat':/usr/local/include/opencv2/core/mat.hpp:278: undefined reference to
cv::fastFree(void*)' /usr/local/include/opencv2/core/mat.hpp:367: undefined reference to
cv::Mat::deallocate()'/usr/local/include/opencv2/core/mat.hpp:278: undefined reference to
cv::fastFree(void*)' /usr/local/include/opencv2/core/mat.hpp:367: undefined reference to
cv::Mat::deallocate()'CMakeFiles/example6.dir/src/example6.cpp.o: In function
main': /home/raoul/dev/rosbook/chapter3_tutorials/src/example6.cpp:19: undefined reference to
cv::VideoCapture::VideoCapture(int)'/home/dev/rosbook/chapter3_tutorials/src/example6.cpp:20: undefined reference to
/home/dev/rosbook/chapter3_tutorials/src/example6.cpp:19: undefined reference to `cv::VideoCapture::~VideoCapture()'
I am using Opencv 2.9?
The text was updated successfully, but these errors were encountered: