添加符号时出错:命令行中缺少 DSO

添加符号时出错:命令行中缺少 DSO

我是 Ubuntu 的新手。我想编译一个使用的项目opencv ,但它出现以下错误:

cmake . && make
/usr/bin/ld: CMakeFiles/ground_estimation.dir/projectdir/src/stereo_matching/OpenCvStereo.cpp.o: undefined reference to symbol '_ZN2cv3gpu6GpuMatC1ERKNS_3MatE'
/usr/local/lib/libopencv_core.so.2.4: error adding symbols: DSO missing from command collect2: error: ld returned 1 exit status
make[2]: *** [ground_estimation] Error 1
make[1]: *** [CMakeFiles/ground_estimation.dir/all] Error 2
make: *** [all] Error 2

我也用过这个命令,cmake . && make -lopencv_core但是没有解决。(Ubuntu 14.04 64位,OpenCV 2.4.9)

相关内容