-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
Comments
Thanks, I will check this issue today. |
Should work now. |
Thanks, it builds now |
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.
hi i have seem error -- Build files have been written to: C:/Users/ali alaobali/Downloads/caffe/caffe/build |
cuda 9.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: