学习笔记7.11

来源:互联网 发布:java使用命令行参数 编辑:程序博客网 时间:2024/06/11 08:26

咸鱼的一天.

本想在linux下跑matlab, 想先下bcloud方便下载安装文件,但报错failed to get bdstoken ,查了一下贴吧有人说bcloud已经不在维护了? ╮(╯_╰)╭放弃


opencv3.2.0安装非常缓慢 , Building NVCC (Device)部分耗时很久, 安装过程异常缓慢, 貌似是涉及cuda的部分都很慢, 折腾了好几次, 最后成功的一次等了四个小时....= =

主要参考 http://blog.csdn.net/xxy0118/article/details/73176617 感觉按照这个来就没什么问题

之前遇到

/usr/local/cuda/include/thrust/detail/reference.inl(127):error: no default constructor exists for class"thrust::detail::execute_with_allocator<cv::cuda::device::ThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>"detectedduring: instantiation of "void thrust::reference<Element, Pointer, Derived>::assign_from(OtherPointer) [with Element=float2, Pointer=thrust::pointer<float2, thrust::detail::execute_with_allocator<cv::cuda::device::ThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>,thrust::use_default, thrust::use_default>,Derived=thrust::use_default, OtherPointer=const float2 *]"  (65): here4 errors detected in the compilation of "/tmp/tmpxft_00003fb9_00000000-17_gftt.compute_60.cpp1.ii".CMake Error at cuda_compile_generated_gftt.cu.o.cmake:264 (message):Errorgenerating file  /home/chengxiang/workspace/opencv/build/modules/cudaimgproc/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_gftt.cu.omodules/cudaimgproc/CMakeFiles/opencv_cudaimgproc.dir/build.make:3603:recipe for target\'modules/cudaimgproc/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gftt.cu.o' failed make[2]: ***[modules/cudaimgproc/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gftt.cu.o] Error 1CMakeFiles/Makefile2:4419:recipe for target 'modules/cudaimgproc/CMakeFiles/opencv_cudaimgproc.dir/all' failedmake[1]: ***[modules/cudaimgproc/CMakeFiles/opencv_cudaimgproc.dir/all] Error 2Makefile:160: recipe for target 'all' failed


的错误


怀疑按照http://blog.csdn.net/o1_1o/article/details/52596265改动了之后导致了上面的错误


sudo apt-get install libthrust-dev 

好了




安装caffe也是参考之前的博客,比较顺利, 遇到的其余错误有:

1.

CXX src/caffe/solver.cpp
AR -o .build_release/lib/libcaffe.a
LD -o .build_release/lib/libcaffe.so.1.0.0-rc3
/usr/bin/ld: cannot find -lhdf5_hl
/usr/bin/ld: cannot find -lhdf5
collect2: error: ld returned 1 exit status
Makefile:566: recipe for target '.build_release/lib/libcaffe.so.1.0.0-rc3' failed

make: *** [.build_release/lib/libcaffe.so.1.0.0-rc3] Error 1


参考

http://blog.csdn.net/oyjxer/article/details/51824254

http://www.cnblogs.com/z-books/p/4171195.html

解决问题


2.文中未指出的如果import caffe失败应如何解决: 参考 http://blog.csdn.net/u010417185/article/details/53559107





原创粉丝点击