Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake Error on Linux #28

Open
yueyihua opened this issue Dec 23, 2019 · 1 comment
Open

cmake Error on Linux #28

yueyihua opened this issue Dec 23, 2019 · 1 comment

Comments

@yueyihua
Copy link

[root@greenet build]# cmake -DBLAS=open ..
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /bin/cc
-- Check for working C compiler: /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: /bin/c++
-- Check for working CXX compiler: /bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) at cmake/Misc.cmake:32 (set):
implicitly converting 'BOOLEAN' to 'STRING' type.
Call Stack (most recent call first):
CMakeLists.txt:35 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Boost 1.54 found.
-- Found Boost components:
system;thread;filesystem
-- Found Threads: TRUE
-- Found OpenMP_C: -fopenmp (found version "3.1")
-- Found OpenMP_CXX: -fopenmp (found version "3.1")
-- Found OpenMP: TRUE (found version "3.1")
-- Found GFlags: /usr/include
-- Found gflags (include: /usr/include, library: /usr/lib64/libgflags.so)
-- Found Glog: /usr/include
-- Found glog (include: /usr/include, library: /usr/lib64/libglog.so)
-- Found Protobuf: /usr/local/lib/libprotobuf.so;-lpthread (found suitable version "3.8.0", minimum required is "3.0.0")
-- 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 HDF5: /usr/local/anaconda3/lib/libhdf5_cpp.so;/usr/local/anaconda3/lib/libhdf5.so;/usr/lib64/librt.so;/usr/lib64/libpthread.so;/usr/local/anaconda3/lib/libz.so;/usr/lib64/libdl.so;/usr/lib64/libm.so (found version "1.10.2") found components: HL
-- Found LMDB: /usr/include
-- Found lmdb (include: /usr/include, library: /usr/lib64/liblmdb.so)
-- Found LevelDB: /usr/include
-- Found LevelDB (include: /usr/include, library: /usr/lib64/libleveldb.so)
-- Found Snappy: /usr/include
-- Found Snappy (include: /usr/include, library: /usr/lib64/libsnappy.so)
-- -- CUDA is disabled. Building without it...
-- Found CUDA: /usr/local/cuda-10.1 (found suitable exact version "10.1")
-- OpenCV found (/usr/local/share/OpenCV)
-- Found OpenBLAS libraries: /usr/lib64/libopenblas.so
-- Found OpenBLAS include: /usr/include
CMake Error at src/caffe/CMakeLists.txt:21 (target_link_libraries):
The INTERFACE, PUBLIC or PRIVATE option must appear as the second argument,
just after the target name.

PUBLIC/usr/local/boost/includePUBLIC/usr/includePUBLIC/usr/includePUBLIC/usr/local/includePUBLIC/usr/local/anaconda3/includePUBLIC/usr/includePUBLIC/usr/includePRIVATE/usr/includePUBLIC/usr/local/include/usr/local/include/opencvPUBLIC/usr/include
-- Found Git: /bin/git (found version "1.8.3.1")

-- ******************* Caffe Configuration Summary *******************
-- General:
-- Version : 1.0.0
-- Git : unknown
-- System : Linux
-- C++ compiler : /bin/c++
-- Release CXX flags : -O2 -DNDEBUG -std=c++11 -fPIC -Wall -Wno-sign-compare -Wno-uninitialized
-- Debug CXX flags : -g -std=c++11 -fPIC -Wall -Wno-sign-compare -Wno-uninitialized
-- Build type : Release

-- BUILD_SHARED_LIBS : ON
-- BUILD_python : OFF
-- BUILD_matlab : OFF
-- BUILD_docs : OFF
-- CPU_ONLY : ON
-- USE_OPENCV : ON
-- USE_LEVELDB : ON
-- USE_LMDB : ON
-- USE_NCCL : OFF
-- ALLOW_LMDB_NOLOCK : ON

-- Dependencies:
-- BLAS : Yes (open)
-- Boost : Yes (ver. 1.71)
-- glog : Yes
-- gflags : Yes
-- protobuf : Yes (ver. 3.8.0)
-- lmdb : Yes (ver. 0.9.22)
-- LevelDB : Yes (ver. 1.12)
-- Snappy : Yes (ver. 1.1.0)
-- OpenCV : Yes (ver. 3.4.7)
-- CUDA : No

-- Install:
-- Install path : /home/yyh/test/License-Plate-Detect-Recognition-via-Deep-Neural-Networks-accuracy-up-to-99.9-master/build/install

CMake Error at cmake/ConfigGen.cmake:36 (export):
export given target "caffeproto" which is not built by this project.
Call Stack (most recent call first):
CMakeLists.txt:137 (caffe_generate_export_configs)

-- Configuring incomplete, errors occurred!

@asd775822566
Copy link

我遇到了同样的错误,请问你解决了吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants