error -- unsupported GNU version! gcc versions later than 5 are not supported! 修改为 #error -- unsupported GNU version! gcc versions later than 5 are not supported!,即添加了注释,使之无效
CXX/LD -o .build_release/tools/convert_imageset.bin .build_release/lib/libcaffe.so: undefined reference to cv::imread(cv::String const&,int)' .build_release/lib/libcaffe.so: undefined reference tocv::imencode(cv::String const&,std::vector >&,std::vector > const&)' .build_release/lib/libcaffe.so: undefined reference to `cv::imdecode(cv::_InputArray const&,int)' collect2: error: ld returned 1 exit status make: *** [.build_release/tools/convert_imageset.bin] Error 1
solution:
add "opencv_imgcodecs" in Makefile.(LIBRARIES += glog gflags protobuf leveldb snappy \ lmdb boost_system hdf5_hl hdf5 m \ opencv_core opencv_highgui opencv_imgproc opencv_imgcodecs) If you input "make all",the problem is the same again.But if you delete all the file in build(rm -rf ./build/*) before "make all"(I use make clean ),you will success.I just success
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
此时正确情况如下图所示:
编译matcaffe:
执行 make matcaffe -j4
显示MEX completed successfully,表示编译matcaffe成功,
执行make mattest -j4 即运行matcaffe的测试程序,结果如下图:
编译pycaffe
sudomake pycaffe -j4 sudomake distribute -j4
运行make pytest -j4进行测试,出现如下图:
(cd python
for req in $(cat requirements.txt); do sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple $req; done
###### if you pycaffe have porblem,you can use the command!############## )
cd ~/caffe ./data/mnist/get_mnist.sh ./examples/mnist/create_mnist.sh ./examples/mnist/train_lenet.sh
结果如下图,正确率为99.08%
八:faster-rcnn配置与测试:
mkdir ~/caffetest cd caffetest git clone --recursive https://github.com/rbgirshick/py-faster-rcnn.git //下载rcnn源码
cd py-faster-rcnn cd lib make cd ../caffe-fast-rcnn //用之前编译的caffe替换rcnn的Makefile.configsudocp ~/caffe/Makefile.config ./caffe-fastr-rcnn/
sudomake -j4 && make pycaffe cd ../
sudo ./data/script/fetch_faster_rcnn_models.sh
此过程中若出现cudnn错误,可以做如下方式进行解决:
cd caffe-fast-rcnn Git remote add caffe https://github.com/BVLC/caffe.git git fetch caffe //需要github账号git stash save git merge caffe/master
文章浏览阅读1.6w次,点赞4次,收藏23次。系统的许多日志文件都存储在 /var/log 目录中。你可以使用 ls /var/log 命令来列出可用的日志文件。/var/log/Xorg.0.log:包含 X 服务器的日志信息(图形界面)。打开DASH,搜索日志或者log,打开app,这个是/var/log的界面版。这将显示系统日志的末尾,并提供有关系统崩溃和错误的信息。/var/log/kern.log:包含内核日志信息。/var/log/dmesg:包含开机时的日志信息。/var/log/syslog:包含系统日志信息。_ubuntu查看系统日志