tegwyn@tegwyn:~$ cd $CAFFE_ROOT
tegwyn@tegwyn:~/caffe$ cd build
tegwyn@tegwyn:~/caffe/build$ cmake ..
CMake Warning (dev) at cmake/Misc.cmake:32 (set):
implicitly converting 'BOOLEAN' to 'STRING' type.
Call Stack (most recent call first):
CMakeLists.txt:24 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found Boost: /usr/include (found suitable version "1.65.1", minimum required is "1.46") found components: system thread filesystem chrono date_time atomic
-- Found gflags (include: /usr/include, library: /usr/lib/aarch64-linux-gnu/libgflags.so)
-- Found glog (include: /usr/include, library: /usr/lib/aarch64-linux-gnu/libglog.so)
-- Found PROTOBUF Compiler: /usr/local/bin/protoc
-- HDF5: Using hdf5 compiler wrapper to determine C configuration
-- HDF5: Using hdf5 compiler wrapper to determine CXX configuration
-- Found lmdb (include: /usr/include, library: /usr/lib/aarch64-linux-gnu/liblmdb.so)
-- Found LevelDB (include: /usr/include, library: /usr/lib/aarch64-linux-gnu/libleveldb.so)
-- Found Snappy (include: /usr/include, library: /usr/lib/aarch64-linux-gnu/libsnappy.so)
-- CUDA detected: 10.0
-- Found cuDNN: ver. 7.6.3 found (include: /usr/include, library: /usr/lib/aarch64-linux-gnu/libcudnn.so)
-- Added CUDA NVCC flags for: sm_72
-- OpenCV found (/usr/lib/aarch64-linux-gnu/cmake/opencv4)
-- Found Atlas (include: /usr/include/aarch64-linux-gnu, library: /usr/lib/aarch64-linux-gnu/libatlas.so)
-- NumPy ver. 1.13.3 found (include: /usr/lib/python2.7/dist-packages/numpy/core/include)
-- Found Boost: /usr/include (found suitable version "1.65.1", minimum required is "1.46") found components: python
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Could NOT find NCCL (missing: NCCL_INCLUDE_DIR NCCL_LIBRARY)
--
-- Caffe Configuration Summary
-- General:
-- Version : 0.15.14
-- Git : v0.15.14-16-g4b8d54d8
-- System : Linux
-- C++ compiler : /usr/bin/c++
-- Release CXX flags : -O3 -DNDEBUG -fPIC -Wall -Wno-sign-compare -Wno-uninitialized
-- Debug CXX flags : -g -fPIC -Wall -Wno-sign-compare -Wno-uninitialized
-- Build type : Release
--
-- BUILD_SHARED_LIBS : ON
-- BUILD_python : ON
-- BUILD_matlab : OFF
-- BUILD_docs : ON
-- CPU_ONLY : OFF
-- USE_OPENCV : ON
-- USE_LEVELDB : ON
-- USE_LMDB : ON
-- ALLOW_LMDB_NOLOCK : OFF
--
-- Dependencies:
-- BLAS : Yes (Atlas)
-- Boost : Yes (ver. 1.65)
-- glog : Yes
-- gflags : Yes
-- protobuf : Yes (ver. 3.2.0)
-- lmdb : Yes (ver. 0.9.21)
-- LevelDB : Yes (ver. 1.20)
-- Snappy : Yes (ver. ..)
-- OpenCV : Yes (ver. 4.1.1)
-- CUDA : Yes (ver. 10.0)
--
-- NVIDIA CUDA:
-- Target GPU(s) : Auto
-- GPU arch(s) : sm_72
-- cuDNN : Yes (ver. 7.6.3)
-- NCCL : Not found
--
-- Python:
-- Interpreter : /usr/bin/python2.7 (ver. 2.7.17)
-- Libraries : /usr/lib/aarch64-linux-gnu/libpython2.7.so (ver 2.7.17)
-- NumPy : /usr/lib/python2.7/dist-packages/numpy/core/include (ver 1.13.3)
--
-- Documentaion:
-- Doxygen : No
-- config_file :
--
-- Install:
-- Install path : /home/tegwyn/caffe/build/install
--
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tegwyn/caffe/build
tegwyn@tegwyn:~/caffe/build$ make -j"$(nproc)"
tegwyn@tegwyn:~/caffe/build$ make -j"$(nproc)"
[ 1%] Built target proto
Scanning dependencies of target caffe
[ 1%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/window_data_layer.cpp.o
[ 1%] Building CXX object src/caffe/CMakeFiles/caffe.dir/util/io.cpp.o
/home/tegwyn/caffe/src/caffe/util/io.cpp: In function ‘cv::Mat caffe::ReadImageToCVMat(const string&, int, int, bool)’:
/home/tegwyn/caffe/src/caffe/util/io.cpp:76:34: error: ‘CV_LOAD_IMAGE_COLOR’ was not declared in this scope
int cv_read_flag = (is_color ? CV_LOAD_IMAGE_COLOR :
^~~~~~~
/home/tegwyn/caffe/src/caffe/util/io.cpp:76:34: note: suggested alternative: ‘CV_IS_IMAGE_HDR’
int cv_read_flag = (is_color ? CV_LOAD_IMAGE_COLOR :
^~~~~~~
CV_IS_IMAGE_HDR
/home/tegwyn/caffe/src/caffe/util/io.cpp:77:5: error: ‘CV_LOAD_IMAGE_GRAYSCALE’ was not declared in this scope
CV_LOAD_IMAGE_GRAYSCALE);
^~~~~~~
/home/tegwyn/caffe/src/caffe/util/io.cpp: In function ‘cv::Mat caffe::DecodeDatumToCVMat(const caffe::Datum&, bool)’:
/home/tegwyn/caffe/src/caffe/util/io.cpp:182:34: error: ‘CV_LOAD_IMAGE_COLOR’ was not declared in this scope
int cv_read_flag = (is_color ? CV_LOAD_IMAGE_COLOR :
^~~~~~~
/home/tegwyn/caffe/src/caffe/util/io.cpp:182:34: note: suggested alternative: ‘CV_IS_IMAGE_HDR’
int cv_read_flag = (is_color ? CV_LOAD_IMAGE_COLOR :
^~~~~~~
CV_IS_IMAGE_HDR
/home/tegwyn/caffe/src/caffe/util/io.cpp:183:5: error: ‘CV_LOAD_IMAGE_GRAYSCALE’ was not declared in this scope
CV_LOAD_IMAGE_GRAYSCALE);
^~~~~~~
src/caffe/CMakeFiles/caffe.dir/build.make:38954: recipe for target 'src/caffe/CMakeFiles/caffe.dir/util/io.cpp.o' failed
make[2]: [src/caffe/CMakeFiles/caffe.dir/util/io.cpp.o] Error 1
make[2]: Waiting for unfinished jobs....
/home/tegwyn/caffe/src/caffe/layers/window_data_layer.cpp: In member function ‘virtual void caffe::WindowDataLayer::load_batch(caffe::Batch*)’:
/home/tegwyn/caffe/src/caffe/layers/window_data_layer.cpp:290:42: error: ‘CV_LOAD_IMAGE_COLOR’ was not declared in this scope
cv_img = cv::imread(image.first, CV_LOAD_IMAGE_COLOR);
^~~~~~~
/home/tegwyn/caffe/src/caffe/layers/window_data_layer.cpp:290:42: note: suggested alternative: ‘CV_IS_IMAGE_HDR’
cv_img = cv::imread(image.first, CV_LOAD_IMAGE_COLOR);
^~~~~~~
CV_IS_IMAGE_HDR
src/caffe/CMakeFiles/caffe.dir/build.make:38668: recipe for target 'src/caffe/CMakeFiles/caffe.dir/layers/window_data_layer.cpp.o' failed
make[2]: [src/caffe/CMakeFiles/caffe.dir/layers/window_data_layer.cpp.o] Error 1
CMakeFiles/Makefile2:381: recipe for target 'src/caffe/CMakeFiles/caffe.dir/all' failed
make[1]: [src/caffe/CMakeFiles/caffe.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
tegwyn@tegwyn:~/caffe/build$
Trying to build NVcaffe:
tegwyn@tegwyn:~$ cd $CAFFE_ROOT tegwyn@tegwyn:~/caffe$ cd build tegwyn@tegwyn:~/caffe/build$ cmake .. CMake Warning (dev) at cmake/Misc.cmake:32 (set): implicitly converting 'BOOLEAN' to 'STRING' type. Call Stack (most recent call first): CMakeLists.txt:24 (include) This warning is for project developers. Use -Wno-dev to suppress it.
-- Found Boost: /usr/include (found suitable version "1.65.1", minimum required is "1.46") found components: system thread filesystem chrono date_time atomic -- Found gflags (include: /usr/include, library: /usr/lib/aarch64-linux-gnu/libgflags.so) -- Found glog (include: /usr/include, library: /usr/lib/aarch64-linux-gnu/libglog.so) -- Found PROTOBUF Compiler: /usr/local/bin/protoc -- HDF5: Using hdf5 compiler wrapper to determine C configuration -- HDF5: Using hdf5 compiler wrapper to determine CXX configuration -- Found lmdb (include: /usr/include, library: /usr/lib/aarch64-linux-gnu/liblmdb.so) -- Found LevelDB (include: /usr/include, library: /usr/lib/aarch64-linux-gnu/libleveldb.so) -- Found Snappy (include: /usr/include, library: /usr/lib/aarch64-linux-gnu/libsnappy.so) -- CUDA detected: 10.0 -- Found cuDNN: ver. 7.6.3 found (include: /usr/include, library: /usr/lib/aarch64-linux-gnu/libcudnn.so) -- Added CUDA NVCC flags for: sm_72 -- OpenCV found (/usr/lib/aarch64-linux-gnu/cmake/opencv4) -- Found Atlas (include: /usr/include/aarch64-linux-gnu, library: /usr/lib/aarch64-linux-gnu/libatlas.so) -- NumPy ver. 1.13.3 found (include: /usr/lib/python2.7/dist-packages/numpy/core/include) -- Found Boost: /usr/include (found suitable version "1.65.1", minimum required is "1.46") found components: python -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- Could NOT find NCCL (missing: NCCL_INCLUDE_DIR NCCL_LIBRARY) -- -- Caffe Configuration Summary -- General: -- Version : 0.15.14 -- Git : v0.15.14-16-g4b8d54d8 -- System : Linux -- C++ compiler : /usr/bin/c++ -- Release CXX flags : -O3 -DNDEBUG -fPIC -Wall -Wno-sign-compare -Wno-uninitialized -- Debug CXX flags : -g -fPIC -Wall -Wno-sign-compare -Wno-uninitialized -- Build type : Release -- -- BUILD_SHARED_LIBS : ON -- BUILD_python : ON -- BUILD_matlab : OFF -- BUILD_docs : ON -- CPU_ONLY : OFF -- USE_OPENCV : ON -- USE_LEVELDB : ON -- USE_LMDB : ON -- ALLOW_LMDB_NOLOCK : OFF -- -- Dependencies: -- BLAS : Yes (Atlas) -- Boost : Yes (ver. 1.65) -- glog : Yes -- gflags : Yes -- protobuf : Yes (ver. 3.2.0) -- lmdb : Yes (ver. 0.9.21) -- LevelDB : Yes (ver. 1.20) -- Snappy : Yes (ver. ..) -- OpenCV : Yes (ver. 4.1.1) -- CUDA : Yes (ver. 10.0) -- -- NVIDIA CUDA: -- Target GPU(s) : Auto -- GPU arch(s) : sm_72 -- cuDNN : Yes (ver. 7.6.3) -- NCCL : Not found -- -- Python: -- Interpreter : /usr/bin/python2.7 (ver. 2.7.17) -- Libraries : /usr/lib/aarch64-linux-gnu/libpython2.7.so (ver 2.7.17) -- NumPy : /usr/lib/python2.7/dist-packages/numpy/core/include (ver 1.13.3) -- -- Documentaion: -- Doxygen : No -- config_file :::load_batch(caffe::Batch*)’:
/home/tegwyn/caffe/src/caffe/layers/window_data_layer.cpp:290:42: error: ‘CV_LOAD_IMAGE_COLOR’ was not declared in this scope
cv_img = cv::imread(image.first, CV_LOAD_IMAGE_COLOR);
^
-- -- Install: -- Install path : /home/tegwyn/caffe/build/install -- -- Configuring done -- Generating done -- Build files have been written to: /home/tegwyn/caffe/build tegwyn@tegwyn:~/caffe/build$ make -j"$(nproc)" tegwyn@tegwyn:~/caffe/build$ make -j"$(nproc)" [ 1%] Built target proto Scanning dependencies of target caffe [ 1%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/window_data_layer.cpp.o [ 1%] Building CXX object src/caffe/CMakeFiles/caffe.dir/util/io.cpp.o /home/tegwyn/caffe/src/caffe/util/io.cpp: In function ‘cv::Mat caffe::ReadImageToCVMat(const string&, int, int, bool)’: /home/tegwyn/caffe/src/caffe/util/io.cpp:76:34: error: ‘CV_LOAD_IMAGE_COLOR’ was not declared in this scope int cv_read_flag = (is_color ? CV_LOAD_IMAGE_COLOR : ^
~~~~~~ /home/tegwyn/caffe/src/caffe/util/io.cpp:76:34: note: suggested alternative: ‘CV_IS_IMAGE_HDR’ int cv_read_flag = (is_color ? CV_LOAD_IMAGE_COLOR : ^~~~~~~ CV_IS_IMAGE_HDR /home/tegwyn/caffe/src/caffe/util/io.cpp:77:5: error: ‘CV_LOAD_IMAGE_GRAYSCALE’ was not declared in this scope CV_LOAD_IMAGE_GRAYSCALE); ^~~~~~~ /home/tegwyn/caffe/src/caffe/util/io.cpp: In function ‘cv::Mat caffe::DecodeDatumToCVMat(const caffe::Datum&, bool)’: /home/tegwyn/caffe/src/caffe/util/io.cpp:182:34: error: ‘CV_LOAD_IMAGE_COLOR’ was not declared in this scope int cv_read_flag = (is_color ? CV_LOAD_IMAGE_COLOR : ^~~~~~~ /home/tegwyn/caffe/src/caffe/util/io.cpp:182:34: note: suggested alternative: ‘CV_IS_IMAGE_HDR’ int cv_read_flag = (is_color ? CV_LOAD_IMAGE_COLOR : ^~~~~~~ CV_IS_IMAGE_HDR /home/tegwyn/caffe/src/caffe/util/io.cpp:183:5: error: ‘CV_LOAD_IMAGE_GRAYSCALE’ was not declared in this scope CV_LOAD_IMAGE_GRAYSCALE); ^~~~~~~ src/caffe/CMakeFiles/caffe.dir/build.make:38954: recipe for target 'src/caffe/CMakeFiles/caffe.dir/util/io.cpp.o' failed make[2]: [src/caffe/CMakeFiles/caffe.dir/util/io.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... /home/tegwyn/caffe/src/caffe/layers/window_data_layer.cpp: In member function ‘virtual void caffe::WindowDataLayer~~~~~~ /home/tegwyn/caffe/src/caffe/layers/window_data_layer.cpp:290:42: note: suggested alternative: ‘CV_IS_IMAGE_HDR’ cv_img = cv::imread(image.first, CV_LOAD_IMAGE_COLOR); ^~~~~~~ CV_IS_IMAGE_HDR src/caffe/CMakeFiles/caffe.dir/build.make:38668: recipe for target 'src/caffe/CMakeFiles/caffe.dir/layers/window_data_layer.cpp.o' failed make[2]: [src/caffe/CMakeFiles/caffe.dir/layers/window_data_layer.cpp.o] Error 1 CMakeFiles/Makefile2:381: recipe for target 'src/caffe/CMakeFiles/caffe.dir/all' failed make[1]: [src/caffe/CMakeFiles/caffe.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2 tegwyn@tegwyn:~/caffe/build$