Closed Masaokb closed 6 years ago
This line pretty much indicates that you might have two gflags installed in the system?
ERROR: flag 'flagfile' was defined more than once (in files '/Users/travis/miniconda3/conda-bld/gflags_1492186051154/work/gflags-2.2.0/src/gflags.cc' and '/tmp/gflags-20170711-37644-1a52f7v/gflags-2.2.1/src/gflags.cc').
If you are using conda, the recommended way of building Caffe2 is to use the script under conda/ - conda and system libraries usually have a bad interaction, so it may make sense to completely build it with conda. cc @ezyang who's the creator of the conda scripts.
I never tested the Caffe2 conda scripts on OS X, so I doubt they work (in fact, I gave them a try just now, and it didn't work.)
@pjh5 I think this is resolved now, correct? Closing.
I tried installing caffe2 by buidling it from sources with conda, but I'm getting the following error when trying to import from caffe2.python import core
Library not loaded: libopencv_highgui.3.3.dylib
WARNING:root:This caffe2 python run does not have GPU support. Will run in CPU only mode.
WARNING:root:Debug message: No module named caffe2_pybind11_state_gpu
CRITICAL:root:Cannot load caffe2.python. Error: dlopen(/Users/santteegt/anaconda/lib/python2.7/site-packages/caffe2/python/caffe2_pybind11_state.so, 10): Library not loaded: @rpath/libopencv_highgui.3.3.dylib
Referenced from: /Users/santteegt/anaconda/lib/python2.7/site-packages/caffe2/python/caffe2_pybind11_state.so
Reason: image not found
This is my conda configuration
platform : osx-64
conda version : 4.3.34
conda is private : False
conda-env version : 4.3.34
conda-build version : 1.21.3
python version : 2.7.13.final.0
requests version : 2.14.2
root environment : /Users/santteegt/anaconda (writable)
default environment : /Users/santteegt/anaconda
envs directories : /Users/santteegt/anaconda/envs
/Users/santteegt/.conda/envs
package cache : /Users/santteegt/anaconda/pkgs
/Users/santteegt/.conda/pkgs
channel URLs : https://conda.anaconda.org/auto/osx-64
https://conda.anaconda.org/auto/noarch
https://conda.anaconda.org/conda-forge/osx-64
https://conda.anaconda.org/conda-forge/noarch
https://conda.anaconda.org/anaconda-fusion/osx-64
https://conda.anaconda.org/anaconda-fusion/noarch
https://repo.continuum.io/pkgs/main/osx-64
https://repo.continuum.io/pkgs/main/noarch
https://repo.continuum.io/pkgs/free/osx-64
https://repo.continuum.io/pkgs/free/noarch
https://repo.continuum.io/pkgs/r/osx-64
https://repo.continuum.io/pkgs/r/noarch
https://repo.continuum.io/pkgs/pro/osx-64
https://repo.continuum.io/pkgs/pro/noarch
config file : /Users/santteegt/.condarc
netrc file : /Users/santteegt/.netrc
offline mode : False
user-agent : conda/4.3.34 requests/2.14.2 CPython/2.7.13 Darwin/17.4.0 OSX/10.13.3
UID:GID : 501:20
Conda Caffe2 version: caffe2: 0.8.dev-py27h71f975e_0
@santteegt do you still have the same opencv installation that you had when you built Caffe2? How did you install OpenCV (with pip? brew? conda?)? Can you uninstall and reinstall it?
HI @pjh5
I tried uninstalling opencv from pip, brew and conda, then uninstall caffe2 and rebuilt it again from sources using conda.
This is the initial log
Adding in variants from internal_defaults
INFO:conda_build.variants:Adding in variants from internal_defaults
Adding in variants from /Users/santteegt/GitRepositories/clones/caffe2/conda/no_cuda/conda_build_config.yaml
INFO:conda_build.variants:Adding in variants from /Users/santteegt/GitRepositories/clones/caffe2/conda/no_cuda/conda_build_config.yaml
/Users/santteegt/anaconda/lib/python2.7/site-packages/conda_build/environ.py:369: UserWarning: The environment variable 'CONDA_CMAKE_ARGS' is undefined.
UserWarning
Attempting to finalize metadata for caffe2
INFO:conda_build.metadata:Attempting to finalize metadata for caffe2
BUILD START: [u'caffe2-0.8.dev-py27h71f975e_0.tar.bz2']
The following NEW packages will be INSTALLED:
blas: 1.1-openblas conda-forge
bzip2: 1.0.6-1 conda-forge
ca-certificates: 2018.1.18-0 conda-forge
cairo: 1.14.6-5 conda-forge
certifi: 2018.1.18-py27_0 conda-forge
cmake: 3.10.0-4 conda-forge
curl: 7.55.1-0 conda-forge
expat: 2.2.5-0 conda-forge
ffmpeg: 3.2.4-3 conda-forge
fontconfig: 2.12.1-6 conda-forge
freetype: 2.7-2 conda-forge
future: 0.16.0-py27_0 conda-forge
gettext: 0.19.8.1-0 conda-forge
gflags: 2.2.1-0 conda-forge
giflib: 5.1.4-0 conda-forge
glib: 2.51.4-0 conda-forge
glog: 0.3.5-0 conda-forge
harfbuzz: 1.3.4-2 conda-forge
hdf5: 1.10.1-2 conda-forge
icu: 58.2-0 conda-forge
intel-openmp: 2018.0.0-h8158457_8
jasper: 1.900.1-4 conda-forge
jpeg: 9b-2 conda-forge
krb5: 1.14.2-0 conda-forge
libffi: 3.2.1-3 conda-forge
libgfortran: 3.0.0-0 conda-forge
libiconv: 1.15-0 conda-forge
libpng: 1.6.28-2 conda-forge
libssh2: 1.8.0-2 conda-forge
libtiff: 4.0.7-1 conda-forge
libuv: 1.11.0-0 conda-forge
libwebp: 0.5.2-7 conda-forge
libxml2: 2.9.7-0 conda-forge
lmdb: 0.9.21-0 conda-forge
mkl: 2018.0.1-hfbd8650_4
mkl-include: 2018.0.1-h8158457_4
ncurses: 5.9-10 conda-forge
numpy: 1.11.3-py27_blas_openblas_203 conda-forge [blas_openblas]
openblas: 0.2.20-7 conda-forge
opencv: 3.3.0-py27_blas_openblas_203 conda-forge [blas_openblas]
openssl: 1.0.2n-0 conda-forge
pcre: 8.39-0 conda-forge
pip: 9.0.1-py27_1 conda-forge
pixman: 0.34.0-1 conda-forge
protobuf: 3.4.1-py27_0 conda-forge
python: 2.7.14-4 conda-forge
readline: 7.0-0 conda-forge
rhash: 1.3.4-0 conda-forge
setuptools: 38.5.1-py27_0 conda-forge
six: 1.11.0-py27_1 conda-forge
sqlite: 3.20.1-2 conda-forge
tk: 8.6.7-0 conda-forge
wheel: 0.30.0-py27_2 conda-forge
x264: 20131217-3 conda-forge
xz: 5.2.3-0 conda-forge
zlib: 1.2.11-0 conda-forge
Copying /Users/santteegt/GitRepositories/clones/caffe2 to /Users/santteegt/anaconda/conda-bld/caffe2_1519308271785/work
source tree in: /Users/santteegt/anaconda/conda-bld/caffe2_1519308271785/work
+ echo 'Installing caffe2 to /Users/santteegt/anaconda/conda-bld/caffe2_1519308271785/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p'
Installing caffe2 to /Users/santteegt/anaconda/conda-bld/caffe2_1519308271785/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p
++ python ./scripts/get_python_cmake_flags.py
+ PYTHON_ARGS='-DPYTHON_INCLUDE_DIR=/Users/santteegt/anaconda/conda-bld/caffe2_1519308271785/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/include/python2.7 '
+ CMAKE_ARGS=()
+ CMAKE_ARGS+=("-DUSE_LEVELDB=OFF")
+ CMAKE_ARGS+=("-DBLAS=MKL")
+ CMAKE_ARGS+=("-DUSE_CUDA=OFF")
+ CMAKE_ARGS+=("-DUSE_NCCL=OFF")
+ CMAKE_ARGS+=("-DCMAKE_INSTALL_PREFIX=$PREFIX")
+ CMAKE_ARGS+=("-DCMAKE_PREFIX_PATH=$PREFIX")
+ mkdir -p build
+ cd build
+ cmake -DUSE_LEVELDB=OFF -DBLAS=MKL -DUSE_CUDA=OFF -DUSE_NCCL=OFF -DCMAKE_INSTALL_PREFIX=/Users/santteegt/anaconda/conda-bld/caffe2_1519308271785/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p -DCMAKE_PREFIX_PATH=/Users/santteegt/anaconda/conda-bld/caffe2_1519308271785/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p -DPYTHON_INCLUDE_DIR=/Users/santteegt/anaconda/conda-bld/caffe2_1519308271785/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/include/python2.7 ..
-- The CXX compiler identification is AppleClang 9.0.0.9000039
-- The C compiler identification is AppleClang 9.0.0.9000039
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test CAFFE2_LONG_IS_INT32_OR_64
-- Performing Test CAFFE2_LONG_IS_INT32_OR_64 - Failed
-- Need to define long as a separate typeid.
-- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING
-- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING - Failed
-- Turning off deprecation warning due to glog.
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS - Success
-- Current compiler supports avx2 extention. Will build perfkernels.
-- Build type not set - defaulting to Release
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Found Protobuf: /Users/santteegt/anaconda/conda-bld/caffe2_1519308271785/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/libprotobuf.dylib (found version "3.4.0")
-- Found Git: /usr/bin/git (found version "2.14.3 (Apple Git-98)")
-- The BLAS backend of choice:MKL
-- Found MKL: /Users/santteegt/anaconda/conda-bld/caffe2_1519308271785/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/include
-- Found MKL (include: /Users/santteegt/anaconda/conda-bld/caffe2_1519308271785/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/include, lib: /Users/santteegt/anaconda/conda-bld/caffe2_1519308271785/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/libmkl_rt.dylib
-- Could NOT find NNPACK (missing: NNPACK_INCLUDE_DIR NNPACK_LIBRARY PTHREADPOOL_LIBRARY CPUINFO_LIBRARY)
-- Brace yourself, we are building NNPACK
-- The ASM compiler identification is Clang
-- Found assembler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Found PythonInterp: /Users/santteegt/anaconda/conda-bld/caffe2_1519308271785/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/bin/python (found version "2.7.14")
-- Found gflags with new-style gflags target.
CMake Warning at cmake/public/glog.cmake:2 (find_package):
By not providing "Findglog.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "glog", but
CMake did not find one.
Could not find a package configuration file provided by "glog" with any of
the following names:
glogConfig.cmake
glog-config.cmake
Add the installation prefix of "glog" to CMAKE_PREFIX_PATH or set
"glog_DIR" to a directory containing one of the above files. If "glog"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
cmake/Dependencies.cmake:118 (include)
CMakeLists.txt:89 (include)
-- Cannot find glog. Using legacy find.
-- Found glog: /Users/santteegt/anaconda/conda-bld/caffe2_1519308271785/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/include
-- git Version: v0.0.0
-- Version: 0.0.0
-- Performing Test HAVE_CXX_FLAG_STD_CXX11
-- Performing Test HAVE_CXX_FLAG_STD_CXX11 - Success
-- Performing Test HAVE_CXX_FLAG_WALL
-- Performing Test HAVE_CXX_FLAG_WALL - Success
-- Performing Test HAVE_CXX_FLAG_WEXTRA
-- Performing Test HAVE_CXX_FLAG_WEXTRA - Success
-- Performing Test HAVE_CXX_FLAG_WSHADOW
-- Performing Test HAVE_CXX_FLAG_WSHADOW - Success
-- Performing Test HAVE_CXX_FLAG_WERROR
-- Performing Test HAVE_CXX_FLAG_WERROR - Success
-- Performing Test HAVE_CXX_FLAG_PEDANTIC
-- Performing Test HAVE_CXX_FLAG_PEDANTIC - Success
-- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS
-- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS - Success
-- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32
-- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 - Success
-- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL
-- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL - Success
-- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING
-- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING - Success
-- Performing Test HAVE_CXX_FLAG_WZERO_AS_NULL_POINTER_CONSTANT
-- Performing Test HAVE_CXX_FLAG_WZERO_AS_NULL_POINTER_CONSTANT - Failed
-- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING
-- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING - Success
-- Performing Test HAVE_CXX_FLAG_WD654
-- Performing Test HAVE_CXX_FLAG_WD654 - Failed
-- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY
-- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY - Success
-- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES
-- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES
-- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES -- failed to compile
-- Performing Test HAVE_CXX_FLAG_COVERAGE
-- Performing Test HAVE_CXX_FLAG_COVERAGE - Success
-- Performing Test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX -- success
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX -- success
-- Performing Test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Found LMDB: /Users/santteegt/anaconda/conda-bld/caffe2_1519308271785/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/include
-- Found lmdb (include: /Users/santteegt/anaconda/conda-bld/caffe2_1519308271785/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/include, library: /Users/santteegt/anaconda/conda-bld/caffe2_1519308271785/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/liblmdb.so)
-- Could NOT find RocksDB (missing: RocksDB_INCLUDE_DIR RocksDB_LIBRARIES)
CMake Warning at cmake/Dependencies.cmake:196 (message):
Not compiling with RocksDB. Suppress this warning with -DUSE_ROCKSDB=OFF
Call Stack (most recent call first):
CMakeLists.txt:89 (include)
-- OpenCV found (/Users/santteegt/anaconda/conda-bld/caffe2_1519308271785/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/share/OpenCV)
-- Found system Eigen at /usr/local/include/eigen3
-- Found PythonInterp: /Users/santteegt/anaconda/conda-bld/caffe2_1519308271785/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/bin/python (found suitable version "2.7.14", minimum required is "2.7")
-- Found PythonLibs: /Users/santteegt/anaconda/conda-bld/caffe2_1519308271785/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/libpython2.7.dylib (found suitable version "2.7.14", minimum required is "2.7")
-- Found NumPy: /Users/santteegt/anaconda/conda-bld/caffe2_1519308271785/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/python2.7/site-packages/numpy/core/include (found version "1.11.3")
-- NumPy ver. 1.11.3 found (include: /Users/santteegt/anaconda/conda-bld/caffe2_1519308271785/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/python2.7/site-packages/numpy/core/include)
-- Could NOT find pybind11 (missing: pybind11_INCLUDE_DIR)
-- Could NOT find MPI_C (missing: MPI_C_COMPILER)
-- Could NOT find MPI_CXX (missing: MPI_CXX_COMPILER)
-- Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND)
CMake Warning at cmake/Dependencies.cmake:319 (message):
Not compiling with MPI. Suppress this warning with -DUSE_MPI=OFF
Call Stack (most recent call first):
CMakeLists.txt:89 (include)
CMake Warning at cmake/Dependencies.cmake:412 (message):
Gloo can only be used on Linux.
Call Stack (most recent call first):
CMakeLists.txt:89 (include)
CMake Warning at cmake/Dependencies.cmake:472 (message):
mobile opengl is only used in android or ios builds.
Call Stack (most recent call first):
CMakeLists.txt:89 (include)
CMake Warning at cmake/Dependencies.cmake:492 (message):
Metal is only used in ios builds.
Call Stack (most recent call first):
CMakeLists.txt:89 (include)
-- NCCL operators skipped due to no CUDA support
-- CUDA RTC operators skipped due to no CUDA support
-- Including image processing operators
-- Excluding video processing operators due to no opencv
-- Including MKL operators
-- MPI operators skipped due to no MPI support
-- Include Observer library
-- Automatically generating missing __init__.py files.
--
-- ******** Summary ********
-- General:
-- CMake version : 3.10.0
-- CMake command : /Users/santteegt/anaconda/conda-bld/caffe2_1519308271785/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/bin/cmake
-- Git version : v0.8.1-1126-g5651c4ce0
-- System : Darwin
-- C++ compiler : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- C++ compiler version : 9.0.0.9000039
-- Protobuf compiler : /Users/santteegt/anaconda/conda-bld/caffe2_1519308271785/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/bin/protoc
-- Protobuf include path : /Users/santteegt/anaconda/conda-bld/caffe2_1519308271785/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/include
-- Protobuf libraries : /Users/santteegt/anaconda/conda-bld/caffe2_1519308271785/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/libprotobuf.dylib
-- CXX flags : -Wno-deprecated -std=c++11 -O2 -fPIC -Wno-narrowing -Wno-invalid-partial-specialization
-- Build type : Release
-- Compile definitions :
--
-- BUILD_BINARY : ON
-- BUILD_DOCS : OFF
-- BUILD_PYTHON : ON
-- Python version : 2.7.14
-- Python library : /Users/santteegt/anaconda/conda-bld/caffe2_1519308271785/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/libpython2.7.dylib
-- BUILD_SHARED_LIBS : ON
-- BUILD_TEST : ON
-- USE_ATEN : OFF
-- USE_ASAN : OFF
-- USE_CUDA : OFF
-- USE_EIGEN_FOR_BLAS :
-- USE_FFMPEG : OFF
-- USE_GFLAGS : ON
-- USE_GLOG : ON
-- USE_GLOO : OFF
-- USE_LEVELDB : OFF
-- USE_LITE_PROTO : OFF
-- USE_LMDB : ON
-- LMDB version : 0.9.21
-- USE_METAL : OFF
-- USE_MKL : 1
-- USE_MOBILE_OPENGL : OFF
-- USE_MPI : OFF
-- USE_NCCL : OFF
-- USE_NERVANA_GPU : OFF
-- USE_NNPACK : ON
-- USE_OBSERVERS : ON
-- USE_OPENCV : ON
-- OpenCV version : 3.3.0
-- USE_OPENMP : OFF
-- USE_PROF : OFF
-- USE_REDIS : OFF
-- USE_ROCKSDB : OFF
-- USE_THREADS : ON
-- USE_ZMQ : OFF
-- Configuring done
CMake Warning (dev):
Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake
--help-policy CMP0042" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
MACOSX_RPATH is not specified for the following targets:
caffe2
caffe2_module_test_dynamic
nnpack_reference_layers
During the build, I noticed that it finds the missng library. For example,
INFO (caffe2,predictor_verifier): Needed DSO lib/libopencv_highgui.3.3.dylib in predictor_verifier found in conda-forge::opencv-3.3.0-py27_blas_openblas_203
Finally, when build is finished and I tried to install caffe using conda, I'm getting the following:
$ conda install caffe2 --use-local
Fetching package metadata ...................
Solving package specifications: .
Package plan for installation in environment /Users/santteegt/anaconda:
The following NEW packages will be INSTALLED:
caffe2: 0.8.dev-py27h71f975e_0 local
opencv: 3.1.0-np112py27_1 conda-forge
Proceed ([y]/n)? y
But when testing the caffe installation, I'm still getting the missing library error: libopencv_highgui.3.3.dylib
WARNING:root:This caffe2 python run does not have GPU support. Will run in CPU only mode.
WARNING:root:Debug message: No module named caffe2_pybind11_state_gpu
CRITICAL:root:Cannot load caffe2.python. Error: dlopen(/Users/santteegt/anaconda/lib/python2.7/site-packages/caffe2/python/caffe2_pybind11_state.so, 10): Library not loaded: @rpath/libopencv_highgui.3.3.dylib
Referenced from: /Users/santteegt/anaconda/lib/python2.7/site-packages/caffe2/python/caffe2_pybind11_state.so
Reason: image not found
Solved it by updating conda.
After build, the following error occurred.
2 files above mentioned are not on my PC (There are even no directories like these).
My Build configs
Could anyone solve?