GTK+ 2.0 之后,重新安装opencv就出现这个问题,真的要疯了,许多人都未层出现过这个问题,百度了很久找到一个解决法子:https://stackoverflow.com/questions/35498773/error-building-opencv3-1-with-cuda-on-ubuntu-15-10

问题:

CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_arithm_func.cu.o:在函数‘testing::internal::TypeParameterizedTest<SqrtTest, testing::internal::TemplateSel<SqrtTest_GpuMat_Test>, testing::internal::Types1<float> >::Register(char const*, testing::internal::CodeLocation, char const*, char const*, int)’中:
tmpxft_0000292c_00000000-4_test_arithm_func.compute_61.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI8SqrtTestNS0_11TemplateSelI20SqrtTest_GpuMat_TestEENS0_6Types1IfEEE8RegisterEPKcNS0_12CodeLocationESA_SA_i[_ZN7testing8internal21TypeParameterizedTestI8SqrtTestNS0_11TemplateSelI20SqrtTest_GpuMat_TestEENS0_6Types1IfEEE8RegisterEPKcNS0_12CodeLocationESA_SA_i]+0x1f8):对‘testing::Message::GetString() const’未定义的引用
。。。。后面就是一堆未引用,最后是

modules/cudev/test/CMakeFiles/opencv_test_cudev.dir/build.make:5549: recipe for target 'bin/opencv_test_cudev' failed

make[2]: *** [bin/opencv_test_cudev] Error 1
CMakeFiles/Makefile2:1264: recipe for target 'modules/cudev/test/CMakeFiles/opencv_test_cudev.dir/all' failed
make[1]: *** [modules/cudev/test/CMakeFiles/opencv_test_cudev.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2


从faster r-cnn到yolo,安装opencv的时候出现RT 的问题,这个问题在之前是咩有的,之前一次安装成功,现在安装了

GTK+ 2.0

之后,重新安装opencv就出现这个问题,真的要疯了,许多人都未层出现过这个问题,百度了很久找到一个解决法子:https://stackoverflow.com/questions/35498773/error-building-opencv3-1-with-cuda-on-ubuntu-15-10

就是在cmake 添加   -DBUILD_TESTS=OFF  这么一句就好了,就是不进行测试了。

好吧,原因我暂时还不知道,但是这样以后确实没有错误了!!!

阿弥陀佛,深度学习,爱你不容易!!!

猜你喜欢

转载自blog.csdn.net/qq_33202928/article/details/80079485