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

Problem with LevelDB: Boost not found #14

Closed
vfdev-5 opened this issue Sep 18, 2015 · 2 comments
Closed

Problem with LevelDB: Boost not found #14

vfdev-5 opened this issue Sep 18, 2015 · 2 comments

Comments

@vfdev-5
Copy link

vfdev-5 commented Sep 18, 2015

After succesful CMake configuration, compiling the project, I get the following error:
[ 82%] Performing configure step for 'leveldb'
loading initial cache file C:/VFomin_folder/PISE_project/Caffe-willyd/build/leve
ldb-prefix/tmp/leveldb-cache.cmake
-- Looking for 64-bit boost libraries
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.1/Modules/FindBoost.cm
ake:1182 (message):
Unable to find the requested Boost libraries.

Unable to find the Boost header files. Please set BOOST_ROOT to the root
directory containing Boost or BOOST_INCLUDEDIR to the directory containing
Boost's headers.
Call Stack (most recent call first):
CMakeLists.txt:50 (find_package)

CMake Error: The following variables are used in this project, but they are set
to NOTFOUND.

@vfdev-5
Copy link
Author

vfdev-5 commented Sep 18, 2015

This is the solution (#5) :

set(leveldb_CMAKE_ARGS 
    -DBUILD_SHARED_LIBS=OFF
    -DCMAKE_DEBUG_POSTFIX=d
   ####################################################
    -DBOOST_ROOT=${CMAKE_INSTALL_PREFIX}
    -DBOOST_LIBRARYDIR=${CMAKE_INSTALL_PREFIX}/lib
    -DBOOST_INCLUDEDIR=${CMAKE_INSTALL_PREFIX}/include/boost-1_58
  ###################################################
    -DBoost_USE_STATIC_LIBS=ON
    -DBoost_USE_MULTITHREAD=ON
    -DBoost_USE_STATIC_RUNTIME=OFF   
    )

and similar for Caffe

set(Caffe_CMAKE_ARGS
    -DBUILD_SHARED_LIBS:BOOL=OFF
    -DBoost_USE_STATIC_LIBS=ON
    -DBoost_USE_MULTITHREAD=ON
    -DBoost_USE_STATIC_RUNTIME=OFF
###################################################
    -DBOOST_ROOT=${CMAKE_INSTALL_PREFIX}
    -DBOOST_LIBRARYDIR=${CMAKE_INSTALL_PREFIX}/lib
    -DBOOST_INCLUDEDIR=${CMAKE_INSTALL_PREFIX}/include/boost-1_58
###################################################
    -DOpenCV_STATIC:BOOL=ON
    -DBLAS:STRING=Open
      -DPROTOBUF_SRC_ROOT_FOLDER:PATH=${CMAKE_INSTALL_PREFIX}
      -DOpenCV_DIR:PATH=${CMAKE_INSTALL_PREFIX}
    )              

@vfdev-5 vfdev-5 closed this as completed Sep 18, 2015
@willyd
Copy link
Owner

willyd commented Sep 18, 2015

Thanks for reporting. Indeed, the same thing happens when you have another Boost library installed see #5.

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