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

opencl branch windows build CMake fails with pre-built dependencies #5378

Closed
vpa1977 opened this issue Mar 9, 2017 · 5 comments
Closed

opencl branch windows build CMake fails with pre-built dependencies #5378

vpa1977 opened this issue Mar 9, 2017 · 5 comments

Comments

@vpa1977
Copy link

vpa1977 commented Mar 9, 2017

Issue summary

The Windows branch uses pre-built dependencies that are downloaded into
${CMAKE_CURRENT_BINARY_DIR}/libraries.
This causes problem for CMake as INTERFACE_INCLUDE_DIRECTORIES for protobuf is being set inside the build directory

Steps to reproduce

Update to the latest opencl branch and run build_win.cmd:

-- ******************* Caffe Configuration Summary *******************
-- General:
-- Version : 1.0.0-rc5
-- Git : unknown
-- System : Windows
-- C++ compiler : C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe
-- Release CXX flags : /MD /O2 /Ob2 /DNDEBUG /FS /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MP /FS
-- Debug CXX flags : /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 /FS /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MP /FS
-- Build type : Release

-- BUILD_SHARED_LIBS : 0
-- BUILD_python : 1
-- BUILD_matlab : 0
-- BUILD_docs :
-- CPU_ONLY : 0
-- USE_OPENCV : ON
-- USE_FFT : OFF
-- USE_LEVELDB : ON
-- USE_LMDB : ON
-- USE_NCCL : 0
-- ALLOW_LMDB_NOLOCK : OFF
-- USE_HDF5 : ON

-- Dependencies:
-- BLAS : Yes (Open)
-- Boost : Yes (ver. 1.61)
-- glog : Yes
-- gflags : Yes
-- protobuf : Yes (ver. 3.1.0)
-- lmdb : Yes (ver. 0.9.70)
-- LevelDB : Yes (ver. 1.18)
-- Snappy : Yes (ver. 1.1.1)
-- OpenCV : Yes (ver. 3.1.0)
-- CUDA : No

-- Python:
-- Interpreter : C:/apps/anaconda3/python.exe (ver. 3.5.2)
-- Libraries : C:/apps/anaconda3/libs/python35.lib (ver 3.5.2)
-- NumPy : C:/apps/anaconda3/lib/site-packages/numpy/core/include (ver 1.11.3)

-- Install:
-- Install path : /THE/Path/to/caffe-opencl/scripts/build/install

-- Configuring done
CMake Error in src/caffe/CMakeLists.txt:
Target "proto" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"/THE/Path/to/caffe-opencl/scripts/build/libraries/include"
which is prefixed in the build directory.
CMake Error in src/caffe/CMakeLists.txt:
Target "proto" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"/THE/Path/to/caffe-opencl/scripts/build/libraries/include"
which is prefixed in the build directory.Target "proto"
INTERFACE_INCLUDE_DIRECTORIES property contains path:
"/THE/Path/to//caffe-opencl/scripts/build/libraries/include"
which is prefixed in the source directory.
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
USE_CUDNN
USE_INDEX64
-- Build files have been written to: /THE/Path/to/caffe-opencl/scripts/build
ERROR: Configure failed

Your system configuration

Operating system: Win 8.1
Compiler: VS 2015
CUDA version (if applicable):N/A
CUDNN version (if applicable):N/A
BLAS: cblas (pre-built dependencies)
Python or MATLAB version (for pycaffe and matcaffe respectively):

The workaround is to disable USE_PREBUILT_DEPENDENCIES after they were downloaded, move libraries outside the build tree and update affected path variables.

@naibaf7
Copy link
Member

naibaf7 commented Mar 9, 2017

Thanks, I will check this issue today.

@naibaf7 naibaf7 added the bug label Mar 9, 2017
@naibaf7
Copy link
Member

naibaf7 commented Mar 9, 2017

Should work now.

@naibaf7 naibaf7 self-assigned this Mar 9, 2017
@vpa1977
Copy link
Author

vpa1977 commented Mar 10, 2017

Thanks, it builds now

@vpa1977 vpa1977 closed this as completed Mar 10, 2017
willyd added a commit to willyd/caffe that referenced this issue Mar 17, 2017
Fixed issue related to prebuilt dependencies being downloaded in build
directory. As reported in BVLC#5378.
willyd added a commit to willyd/caffe that referenced this issue Mar 17, 2017
Fixed issue related to prebuilt dependencies being downloaded in build
directory. As reported in BVLC#5378.
@alialaobali
Copy link

hi i have seem error

-- Build files have been written to: C:/Users/ali alaobali/Downloads/caffe/caffe/build
ERROR: Configure failed
operation sys windows 10 64-bit
python 3.5
cuda 8.0
vs 2015

@alialaobali
Copy link

cuda 9.1

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

No branches or pull requests

3 participants