我正在尝试在these instructions之后在Raspberry Pi(Raspbian)上编译ROS(机器人操作系统)并且已经到了编译ROS的程度,这在使用undefined reference to 'header'
编译opencv时失败了:< / p>
[ 97%] Built target opencv_videostab
[ 98%] Built target opencv_haartraining_engine
Linking CXX executable ../../bin/opencv_createsamples
../../lib/libopencv_highgui.so.2.4.6: undefined reference to `header'
collect2: ld returned 1 exit status
make[2]: *** [bin/opencv_createsamples] Error 1
make[1]: *** [apps/haartraining/CMakeFiles/opencv_createsamples.dir/all] Error 2
make: *** [all] Error 2
<== Failed to process package 'opencv2':
Command '/home/ilagi/ros_catkin_ws/install_isolated/env.sh make -j1 -l1' returned non-zero exit status 2
我用谷歌搜索试图找出可能缺少的头文件,但遗憾的是没有到达任何地方。
我希望有人能够了解至少从这里开始的方向。
由于
答案 0 :(得分:1)
我想我会回答我自己的问题。我不确切知道哪个依赖项导致了这个特定的错误,但我根据http://ariandy1.wordpress.com/2013/02/13/raspberry-pi-rasbian-opencv/提供的指令重新编译了ffmpeg,现在我设法让ROS编译opencv。