Unfortunately the master branch of Caffe has a really large value for LMDB_MAP_SIZE in src/caffe/util/db.cpp, which confuses the 32-bit ARM processor on the Jetson, eventually leading to Caffe tests failing with errors like MDB_MAP_FULL: Environment mapsize limit reached. Caffe GitHub issue #1861 has some discussion about this and maybe it will be fixed eventually, but for the moment if you manually adjust the value from 1099511627776 to 536870912, you’ll be able to run all the Caffe tests successfully.
Now the tests run successfully, but when I add the line:
build/tools/caffe time --model=models/bvlc_alexnet/deploy.prototxt --gpu=0
I get the following error message:
ubuntu@tegra-ubuntu:~/caffe$ build/tools/caffe time --model=models/bvlc_alexnet/deploy.prototxt --gpu=0
build/tools/caffe: error while loading shared libraries: libcaffe.so: cannot open shared object file: No such file or directory
I get an error right after I invoke the “make -j 4 all” command, When I get to the “make -j 4 all” step, I get:
CXX .build_release/src/caffe/proto/caffe.pb.cc
CXX src/caffe/common.cpp
CXX src/caffe/layers/deconv_layer.cpp
CXX src/caffe/layers/dropout_layer.cpp
Then I get a bunch of compile errors, about 300 or so lines of them, that have a lot to do with the ./include/caffe/ directory. Any advice? Thanks!
Hi I am trying to isntall caffe following the instructions in two days to a demo using the latest Jetpack 3.2
make all runs and completes but make test crashes out with
make test
LD .build_release/src/caffe/test/test_net.o
.build_release/lib/libcaffe-nv.so: undefined reference to cv::imread(cv::String const&, int)' .build_release/lib/libcaffe-nv.so: undefined reference to cv::imencode(cv::String const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator >&, std::vector<int, std::allocator > const&)’
.build_release/lib/libcaffe-nv.so: undefined reference to `cv::imdecode(cv::_InputArray const&, int)’
I can’t find imencode anywhere on my machine and suspect there is something missing from the Makefile.
Hi I am trying to isntall caffe following the instructions in two days to a demo using the latest Jetpack 3.2
make all runs and completes but make test crashes out with
make test
LD .build_release/src/caffe/test/test_net.o
.build_release/lib/libcaffe-nv.so: undefined reference to cv::imread(cv::String const&, int)' .build_release/lib/libcaffe-nv.so: undefined reference to cv::imencode(cv::String const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator >&, std::vector<int, std::allocator > const&)’
.build_release/lib/libcaffe-nv.so: undefined reference to `cv::imdecode(cv::_InputArray const&, int)’
I can’t find imencode anywhere on my machine and suspect there is something missing from the Makefile.
These are functions from opencv. Not sure, but I think these are in libopencv_imgproc.so.
If you have installed a custom version of opencv, you may have to change /usr/lib/pkgconfig/opencv.pc to be a link to your custom install version of opencv.pc.
You may have to find which version(s) of opencv are installed on your jetson (I suppose you are building natively on jetson. If you are cross-compiling, it may be different).
You may try first to locate any opencv lib such as: