-
Notifications
You must be signed in to change notification settings - Fork 18.5k
/usr/bin/ld: cannot find -lproto when opencl branch building #5629
Copy link
Copy link
Closed
Description
I'm trying to build opencl branch with
that document like this cmake setting.
$ cmake .. -DUSE_GREENTEA=ON -DUSE_CUDA=OFF -DViennaCL_INCLUDE_DIR=$HOME/local/include -DOPENCL_LIBRARIES=/opt/intel/opencl/libOpenCL.so -DOPENCL_INCLUDE_DIRS=/opt/intel/opencl/include -DCNAJE_BUILD_TYPE=Release
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- system
-- thread
-- filesystem
-- chrono
-- date_time
-- atomic
-- Found gflags (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libgflags.so)
-- Found glog (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so)
-- Found PROTOBUF Compiler: /usr/local/bin/protoc
-- Found lmdb (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/liblmdb.so)
-- Found LevelDB (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libleveldb.so)
-- Found Snappy (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libsnappy.so)
-- -- CUDA is disabled. Building without it...
-- Found ViennaCL include: /home/delta/local/include
-- Found OpenCL include: /opt/intel/opencl/include;/usr/include
-- OpenCV found (/usr/share/OpenCV)
-- Found OpenBLAS libraries: /usr/lib/libopenblas.so
-- Found OpenBLAS include: /usr/include
-- NumPy ver. 1.11.0 found (include: /usr/lib/python2.7/dist-packages/numpy/core/include)
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- python
-- Detected Doxygen OUTPUT_DIRECTORY: ./doxygen/
--
-- ******************* Caffe Configuration Summary *******************
-- General:
-- Version : 1.0.0
-- Git : 1.0-1028-g0f19d3e
-- System : Linux
-- C++ compiler : /usr/bin/c++
-- Release CXX flags : -O3 -DNDEBUG -fPIC -Wall -std=c++11 -DCMAKE_BUILD -Wno-sign-compare -Wno-uninitialized
-- Debug CXX flags : -g -fPIC -Wall -std=c++11 -DCMAKE_BUILD -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_FFT : OFF
-- USE_LEVELDB : ON
-- USE_LMDB : ON
-- USE_NCCL : OFF
-- ALLOW_LMDB_NOLOCK : OFF
-- USE_HDF5 : ON
--
-- Dependencies:
-- BLAS : Yes (open)
-- Boost : Yes (ver. 1.58)
-- glog : Yes
-- gflags : Yes
-- protobuf : Yes (ver. 3.0.0)
-- lmdb : Yes (ver. 0.9.17)
-- LevelDB : Yes (ver. 1.18)
-- Snappy : Yes (ver. 1.1.3)
-- OpenCV : Yes (ver. 2.4.9.1)
-- CUDA : No
--
-- Python:
-- Interpreter : /usr/bin/python2.7 (ver. 2.7.12)
-- Libraries : /usr/lib/x86_64-linux-gnu/libpython2.7.so (ver 2.7.12)
-- NumPy : /usr/lib/python2.7/dist-packages/numpy/core/include (ver 1.11.0)
--
-- Documentaion:
-- Doxygen : /usr/bin/doxygen (1.8.11)
-- config_file : /home/delta/git/caffe/.Doxyfile
--
-- Install:
-- Install path : /home/delta/git/caffe/build/install
--
-- Configuring done
CMake Warning (dev) in src/caffe/CMakeLists.txt:
Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link
interface. Run "cmake --help-policy CMP0022" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Target "caffe" has an INTERFACE_LINK_LIBRARIES property which differs from
its LINK_INTERFACE_LIBRARIES properties.
INTERFACE_LINK_LIBRARIES:
caffeproto;/usr/lib/x86_64-linux-gnu/libboost_system.so;/usr/lib/x86_64-linux-gnu/libboost_thread.so;/usr/lib/x86_64-linux-gnu/libboost_filesystem.so;/usr/lib/x86_64-linux-gnu/libboost_chrono.so;/usr/lib/x86_64-linux-gnu/libboost_date_time.so;/usr/lib/x86_64-linux-gnu/libboost_atomic.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/usr/lib/x86_64-linux-gnu/libglog.so;/usr/lib/x86_64-linux-gnu/libgflags.so;$<$<NOT:$<CONFIG:DEBUG>>:/usr/local/lib/libprotobuf.so>;$<$<CONFIG:DEBUG>:/usr/local/lib/libprotobuf.so>;-lpthread;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5_hl.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5_hl.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5_hl.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5_hl.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5_hl.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5_hl.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5_hl.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5_hl.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so;/usr/lib/x86_64-linux-gnu/liblmdb.so;/usr/lib/x86_64-linux-gnu/libleveldb.so;/opt/intel/opencl/libOpenCL.so;opencv_core;opencv_highgui;opencv_imgproc;/usr/lib/libopenblas.so;/usr/lib/x86_64-linux-gnu/libboost_python.so
LINK_INTERFACE_LIBRARIES:
caffeproto;/usr/lib/x86_64-linux-gnu/libboost_system.so;/usr/lib/x86_64-linux-gnu/libboost_thread.so;/usr/lib/x86_64-linux-gnu/libboost_filesystem.so;/usr/lib/x86_64-linux-gnu/libboost_chrono.so;/usr/lib/x86_64-linux-gnu/libboost_date_time.so;/usr/lib/x86_64-linux-gnu/libboost_atomic.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/usr/lib/x86_64-linux-gnu/libglog.so;/usr/lib/x86_64-linux-gnu/libgflags.so;/usr/local/lib/libprotobuf.so;-lpthread;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5_hl.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5_hl.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5_hl.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5_hl.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5_hl.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5_hl.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5_hl.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5_hl.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libhdf5.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/home/delta/.pyenv/versions/anaconda3-4.3.0/lib/libz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so;/usr/lib/x86_64-linux-gnu/liblmdb.so;/usr/lib/x86_64-linux-gnu/libleveldb.so;/opt/intel/opencl/libOpenCL.so;opencv_core;opencv_highgui;opencv_imgproc;/usr/lib/libopenblas.so;/usr/lib/x86_64-linux-gnu/libboost_python.so
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to: /home/delta/git/caffe/buildand make it but i get /usr/bin/ld: cannot find -lproto error
$ make -j4
...
[ 88%] Linking CXX executable net_speed_benchmark
[ 88%] Linking CXX executable finetune_net
/usr/bin/ld: -lproto が見つかりません
collect2: error: ld returned 1 exit status
tools/CMakeFiles/net_speed_benchmark.dir/build.make:130: ターゲット 'tools/net_speed_benchmark' のレシピで失敗しました
make[2]: *** [tools/net_speed_benchmark] エラー 1
CMakeFiles/Makefile2:543: ターゲット 'tools/CMakeFiles/net_speed_benchmark.dir/all' のレシピで失敗しました
make[1]: *** [tools/CMakeFiles/net_speed_benchmark.dir/all] エラー 2
make[1]: *** 未完了のジョブを待っています....
[ 88%] Linking CXX executable upgrade_net_proto_binary
/usr/bin/ld: -lproto が見つかりません
collect2: error: ld returned 1 exit status
tools/CMakeFiles/finetune_net.dir/build.make:130: ターゲット 'tools/finetune_net' のレシピで失敗しました
make[2]: *** [tools/finetune_net] エラー 1
CMakeFiles/Makefile2:505: ターゲット 'tools/CMakeFiles/finetune_net.dir/all' のレシピで失敗しました
make[1]: *** [tools/CMakeFiles/finetune_net.dir/all] エラー 2
/usr/bin/ld: -lproto が見つかりません
collect2: error: ld returned 1 exit status
tools/CMakeFiles/upgrade_net_proto_binary.dir/build.make:130: ターゲット 'tools/upgrade_net_proto_binary' のレシピで失敗しました
make[2]: *** [tools/upgrade_net_proto_binary] エラー 1
CMakeFiles/Makefile2:581: ターゲット 'tools/CMakeFiles/upgrade_net_proto_binary.dir/all' のレシピで失敗しました
make[1]: *** [tools/CMakeFiles/upgrade_net_proto_binary.dir/all] エラー 2
[ 88%] Linking CXX executable caffe
/usr/bin/ld: -lproto が見つかりません
collect2: error: ld returned 1 exit status
tools/CMakeFiles/caffe.bin.dir/build.make:130: ターゲット 'tools/caffe' のレシピで失敗しました
make[2]: *** [tools/caffe] エラー 1
CMakeFiles/Makefile2:467: ターゲット 'tools/CMakeFiles/caffe.bin.dir/all' のレシピで失敗しました
make[1]: *** [tools/CMakeFiles/caffe.bin.dir/all] エラー 2
Makefile:127: ターゲット 'all' のレシピで失敗しました
make: *** [all] エラー 2Operating system: ubuntu 14.04
Compiler: gcc 5.4.0
CUDA version (if applicable):
CUDNN version (if applicable):
BLAS: open
Python or MATLAB version (for pycaffe and matcaffe respectively): anaconda3-4.3.0
Reactions are currently unavailable