Closed andyhx closed 7 years ago
cmake info is like the following :
-- The C compiler identification is GNU 5.2.1
-- The CXX compiler identification is GNU 5.2.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- system
-- thread
-- filesystem
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found GFlags: /usr/include
-- Found gflags (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libgflags.so)
-- Found Glog: /usr/include
-- Found glog (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so)
-- Found PROTOBUF: /usr/local/lib/libprotobuf.so
-- Found PROTOBUF Compiler: /usr/local/bin/protoc
-- Found HDF5: /usr/lib/x86_64-linux-gnu/hdf5/serial/lib/libhdf5_hl.so;/usr/lib/x86_64-linux-
gnu/hdf5/serial/lib/libhdf5.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/usr/lib/x86_64-linux-
gnu/libz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so
-- Found LMDB: /usr/include
-- Found lmdb (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/liblmdb.so)
-- Found LevelDB: /usr/include
-- Found LevelDB (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libleveldb.so)
-- Found Snappy: /usr/include
-- Found Snappy (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libsnappy.so)
-- CUDA detected: 7.5
-- Found cuDNN: ver. 4.0.7 found (include: /usr/local/cuda/include, library: /usr/lib/libcudnn.so)
-- Added CUDA NVCC flags for: sm_52
-- OpenCV found (/usr/local/share/OpenCV)
-- Found Atlas: /usr/local/include
-- Found Atlas (include: /usr/local/include, library: /usr/lib/libatlas.so)
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.10", minimum required is "2.7")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.10", minimum
required is "2.7")
-- Found NumPy: /home/public/.local/lib/python2.7/site-packages/numpy/core/include (found suitable version
"1.12.1", minimum required is "1.7.1")
-- NumPy ver. 1.12.1 found (include: /home/public/.local/lib/python2.7/site-packages/numpy/core/include)
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- python
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Found Git: /usr/bin/git (found version "2.5.0")
--
-- ******************* Caffe Configuration Summary *******************
-- General:
-- Version : 1.0.0-rc3
-- Git : unknown
-- System : Linux
-- C++ compiler : /usr/bin/c++
-- Release CXX flags : -O3 -DNDEBUG -D_MWAITXINTRIN_H_INCLUDED -D_FORCE_INLINES -D__STRICT_ANSI__ -fPIC
-Wall -Wno-sign-compare -Wno-uninitialized
-- Debug CXX flags : -g -D_MWAITXINTRIN_H_INCLUDED -D_FORCE_INLINES -D__STRICT_ANSI__ -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.58)
-- glog : Yes
-- gflags : Yes
-- protobuf : Yes (ver. 2.6.1)
-- lmdb : Yes (ver. 0.9.15)
-- LevelDB : Yes (ver. 1.18)
-- Snappy : Yes (ver. 1.1.3)
-- OpenCV : Yes (ver. 3.0.0)
-- CUDA : Yes (ver. 7.5)
--
-- NVIDIA CUDA:
-- Target GPU(s) : Auto
-- GPU arch(s) : sm_52
-- cuDNN : Yes (ver. 4.0.7)
--
-- Python:
-- Interpreter : /usr/bin/python2.7 (ver. 2.7.10)
-- Libraries : /usr/lib/x86_64-linux-gnu/libpython2.7.so (ver 2.7.10)
-- NumPy : /home/public/.local/lib/python2.7/site-packages/numpy/core/include (ver 1.12.1)
--
-- Documentaion:
-- Doxygen : No
-- config_file :
--
-- Install:
-- Install path : /home/public/git/LDeep-Image-Analogy/build/install
--
-- Configuring done
CMake Warning at src/caffe/CMakeLists.txt:20 (add_library):
Cannot generate a safe runtime search path for target caffe because files
in some directories may conflict with libraries in implicit directories:
runtime library [libcudnn.so.4] in /usr/lib may be hidden by files in:
/usr/local/cuda/lib64
Some of these libraries may not be found correctly.
CMake Warning at src/caffe/test/CMakeLists.txt:29 (add_executable):
Cannot generate a safe runtime search path for target test.testbin because
files in some directories may conflict with libraries in implicit
directories:
runtime library [libcudnn.so.4] in /usr/lib may be hidden by files in:
/usr/local/cuda/lib64
Some of these libraries may not be found correctly.
CMake Warning at tools/CMakeLists.txt:14 (add_executable):
Cannot generate a safe runtime search path for target caffe.bin because
files in some directories may conflict with libraries in implicit
directories:
runtime library [libcudnn.so.4] in /usr/lib may be hidden by files in:
/usr/local/cuda/lib64
Some of these libraries may not be found correctly.
CMake Warning at tools/CMakeLists.txt:14 (add_executable):
Cannot generate a safe runtime search path for target compute_image_mean
because files in some directories may conflict with libraries in implicit
directories:
runtime library [libcudnn.so.4] in /usr/lib may be hidden by files in:
/usr/local/cuda/lib64
Some of these libraries may not be found correctly.
CMake Warning at tools/CMakeLists.txt:14 (add_executable):
Cannot generate a safe runtime search path for target convert_imageset
because files in some directories may conflict with libraries in implicit
directories:
runtime library [libcudnn.so.4] in /usr/lib may be hidden by files in:
/usr/local/cuda/lib64
Some of these libraries may not be found correctly.
CMake Warning at tools/CMakeLists.txt:14 (add_executable):
Cannot generate a safe runtime search path for target device_query because
files in some directories may conflict with libraries in implicit
directories:
runtime library [libcudnn.so.4] in /usr/lib may be hidden by files in:
/usr/local/cuda/lib64
Some of these libraries may not be found correctly.
CMake Warning at tools/CMakeLists.txt:14 (add_executable):
Cannot generate a safe runtime search path for target extract_features
because files in some directories may conflict with libraries in implicit
directories:
runtime library [libcudnn.so.4] in /usr/lib may be hidden by files in:
/usr/local/cuda/lib64
Some of these libraries may not be found correctly.
CMake Warning at tools/CMakeLists.txt:14 (add_executable):
Cannot generate a safe runtime search path for target finetune_net because
files in some directories may conflict with libraries in implicit
directories:
runtime library [libcudnn.so.4] in /usr/lib may be hidden by files in:
/usr/local/cuda/lib64
Some of these libraries may not be found correctly.
CMake Warning at tools/CMakeLists.txt:14 (add_executable):
Cannot generate a safe runtime search path for target net_speed_benchmark
because files in some directories may conflict with libraries in implicit
directories:
runtime library [libcudnn.so.4] in /usr/lib may be hidden by files in:
/usr/local/cuda/lib64
Some of these libraries may not be found correctly.
CMake Warning at tools/CMakeLists.txt:14 (add_executable):
Cannot generate a safe runtime search path for target test_net because
files in some directories may conflict with libraries in implicit
directories:
runtime library [libcudnn.so.4] in /usr/lib may be hidden by files in:
/usr/local/cuda/lib64
Some of these libraries may not be found correctly.
CMake Warning at tools/CMakeLists.txt:14 (add_executable):
Cannot generate a safe runtime search path for target train_net because
files in some directories may conflict with libraries in implicit
directories:
runtime library [libcudnn.so.4] in /usr/lib may be hidden by files in:
/usr/local/cuda/lib64
Some of these libraries may not be found correctly.
CMake Warning at tools/CMakeLists.txt:14 (add_executable):
Cannot generate a safe runtime search path for target
upgrade_net_proto_binary because files in some directories may conflict
with libraries in implicit directories:
runtime library [libcudnn.so.4] in /usr/lib may be hidden by files in:
/usr/local/cuda/lib64
Some of these libraries may not be found correctly.
CMake Warning at tools/CMakeLists.txt:14 (add_executable):
Cannot generate a safe runtime search path for target
upgrade_net_proto_text because files in some directories may conflict with
libraries in implicit directories:
runtime library [libcudnn.so.4] in /usr/lib may be hidden by files in:
/usr/local/cuda/lib64
Some of these libraries may not be found correctly.
CMake Warning at tools/CMakeLists.txt:14 (add_executable):
Cannot generate a safe runtime search path for target
upgrade_solver_proto_text because files in some directories may conflict
with libraries in implicit directories:
runtime library [libcudnn.so.4] in /usr/lib may be hidden by files in:
/usr/local/cuda/lib64
Some of these libraries may not be found correctly.
CMake Warning at examples/CMakeLists.txt:11 (add_executable):
Cannot generate a safe runtime search path for target classification
because files in some directories may conflict with libraries in implicit
directories:
runtime library [libcudnn.so.4] in /usr/lib may be hidden by files in:
/usr/local/cuda/lib64
Some of these libraries may not be found correctly.
CMake Warning at examples/CMakeLists.txt:11 (add_executable):
Cannot generate a safe runtime search path for target convert_cifar_data
because files in some directories may conflict with libraries in implicit
directories:
runtime library [libcudnn.so.4] in /usr/lib may be hidden by files in:
/usr/local/cuda/lib64
Some of these libraries may not be found correctly.
CMake Warning at examples/CMakeLists.txt:11 (add_executable):
Cannot generate a safe runtime search path for target convert_mnist_data
because files in some directories may conflict with libraries in implicit
directories:
runtime library [libcudnn.so.4] in /usr/lib may be hidden by files in:
/usr/local/cuda/lib64
Some of these libraries may not be found correctly.
CMake Warning at examples/CMakeLists.txt:11 (add_executable):
Cannot generate a safe runtime search path for target
convert_mnist_siamese_data because files in some directories may conflict
with libraries in implicit directories:
runtime library [libcudnn.so.4] in /usr/lib may be hidden by files in:
/usr/local/cuda/lib64
Some of these libraries may not be found correctly.
CMake Warning at python/CMakeLists.txt:9 (add_library):
Cannot generate a safe runtime search path for target pycaffe because files
in some directories may conflict with libraries in implicit directories:
runtime library [libcudnn.so.4] in /usr/lib may be hidden by files in:
/usr/local/cuda/lib64
Some of these libraries may not be found correctly.
-- Generating done
-- Build files have been written to: /home/public/git/LDeep-Image-Analogy/build
Hi, I haven't tested using cmake. I compiled caffe just using
make all
and it processed very smoothly. Have you tried make?
hi ,first of all,thanks for your great job ,I am trying to build your linux version Deep-Image-Analogy,I following your build scripts,but some errors come: Do u know what problem is ,I am using the cmake ,the cmake command is something like this:
cmake .. -DCUDA_NVCC_FLAGS=" -D_MWAITXINTRIN_H_INCLUDED -D_FORCE_INLINES -D__STRICT_ANSI__" -DCMAKE_CXX_FLAGS=' -D_MWAITXINTRIN_H_INCLUDED -D_FORCE_INLINES -D__STRICT_ANSI__'
[ 18%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile.dir/layers/cuda_compile_generated_recurrent_layer.cu.o /usr/include/c++/5/bits/stl_iterator_base_types.h(154): error: name followed by "::" must be a class or namespace name detected during: instantiation of class "std::__iterator_traits<_Iterator, void> [with _Iterator=int]" (163): here instantiation of class "std::iterator_traits<_Iterator> [with _Iterator=int]" /home/public/git/LDeep-Image-Analogy/src/caffe/layers/box_annotator_ohem_layer.cu(55): here
/usr/include/c++/5/bits/stl_iterator_base_types.h(155): error: name followed by "::" must be a class or namespace name detected during: instantiation of class "std::__iterator_traits<_Iterator, void> [with _Iterator=int]" (163): here instantiation of class "std::iterator_traits<_Iterator> [with _Iterator=int]" /home/public/git/LDeep-Image-Analogy/src/caffe/layers/box_annotator_ohem_layer.cu(55): here
/usr/include/c++/5/bits/stl_iterator_base_types.h(156): error: name followed by "::" must be a class or namespace name detected during: instantiation of class "std::__iterator_traits<_Iterator, void> [with _Iterator=int]" (163): here instantiation of class "std::iterator_traits<_Iterator> [with _Iterator=int]" /home/public/git/LDeep-Image-Analogy/src/caffe/layers/box_annotator_ohem_layer.cu(55): here
/usr/include/c++/5/bits/stl_iterator_base_types.h(157): error: name followed by "::" must be a class or namespace name