新增符號時出錯:命令列中缺少 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)

相關內容