build error with an message "which is prefixed in the build directory"

1,014 views
Skip to first unread message

ichi kaz

unread,
Feb 27, 2017, 5:29:20 AM2/27/17
to Greentea Users
Hello.

I have tried to install latest release of OpenCL branch of caffe in my Windows 10 PC,
but I got an error message such as 
"CMake Error in src/caffe/CMakeLists.txt:
  Target "proto" INTERFACE_INCLUDE_DIRECTORIES property contains path:
   /path/to/caffe-opencl/scripts/build/libraries/include
  which is prefixed in the build directory.Target "proto"  "
and I failed installing OpenCL caffe with Greentea backend.

Does anyone have ideas to solve it?

My compilation environment is below:
Compiler:MSVC14
BuildTool:Ninja
OpenCL Backend:Intel OpenCL SDK
With Greentea : ON
ViennaCL-Version: Latest


and configuration summary and error message I got are below:

ここにコードを入力...-- ******************* 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



Thanks in advance.

ichi kaz

unread,
Apr 11, 2017, 9:44:38 PM4/11/17
to Greentea Users
after updating caffe/opencl branch libraries in March,
I have successfully compiled libraries.

thanks.
Reply all
Reply to author
Forward
0 new messages