![添加符号时出错:命令行中缺少 DSO](https://linux22.com/image/1047418/%E6%B7%BB%E5%8A%A0%E7%AC%A6%E5%8F%B7%E6%97%B6%E5%87%BA%E9%94%99%EF%BC%9A%E5%91%BD%E4%BB%A4%E8%A1%8C%E4%B8%AD%E7%BC%BA%E5%B0%91%20DSO.png)
我是 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)