Dear all,

I am trying to build the RDKit C# wrapper but I am having issues due to the 
build not finding certain boost libraries (boost_system, boost_iostreams and 
boost_python). I have tried solving the error by installing boost in different 
locations; through anaconda and also by installing boost separately but I get 
the error for both instances. I have also set the 3 environment variables;  
BOOST_INCLUDEDIR, BOOST_ROOT, BOOST_LIBRARYDIR, but CMake ignores the variables 
no matter what they are set to.
The error is reproducible for me with the following code:

set RDBASE=C:\Users\e.barlow-smith\AppData\Local\RDKit
set BOOST_ROOT=C:\Users\e.barlow-smith\AppData\Local\boost_1_67_0\boost
cd %RDBASE%
conda activate my-rdkit-env
cmake -S %RDBASE% -B "%RDBASE%\build" -DRDK_BUILD_SWIG_CSHARP_WRAPPER=ON

My configuration:
OS: Windows: 10.0.17
Rdkit: 2019.03.01
Python: 3.7.3
CMake: 3.14
Conda: 4.6.11
swig: 3.0.12

Error message:
-- Found Catch2 source in 
C:/Users/e.barlow-smith/AppData/Local/RDKit/External/catch/catch
CATCH: 
C:/Users/e.barlow-smith/AppData/Local/RDKit/External/catch/catch/single_include
CMake Warning (dev) at CMakeLists.txt:246 (find_package):
  Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
  Run "cmake --help-policy CMP0074" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  Environment variable Boost_ROOT is set to:
    C:\Users\e.barlow-smith\AppData\Local\boost_1_67_0\boost
  For compatibility, CMake is ignoring the variable.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning at 
C:/Users/e.barlow-smith/AppData/Local/Continuum/anaconda3/envs/my-rdkit-env/Library/share/cmake-3.14/Modules/FindBoost.cmake:1799
 (message):
  No header defined for python-py37; skipping header check
Call Stack (most recent call first):
  CMakeLists.txt:246 (find_package)

CMake Error at 
C:/Users/e.barlow-smith/AppData/Local/Continuum/anaconda3/envs/my-rdkit-env/Library/share/cmake-3.14/Modules/FindBoost.cmake:2132
 (message):
  Unable to find the requested Boost libraries.
  Boost version: 1.67.0
  Boost include path:
  
C:/Users/e.barlow-smith/AppData/Local/Continuum/anaconda3/envs/my-rdkit-env/Library/include

  Could not find the following Boost libraries:
          boost_python
  No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
  directory containing Boost libraries or BOOST_ROOT to the location of
  Boost.
Call Stack (most recent call first):
  CMakeLists.txt:254 (find_package)

-- Could NOT find Boost
== Using strict rotor definition
-- maeparser include dir set as 
'C:/Users/e.barlow-smith/AppData/Local/RDKit/External/CoordGen'
-- maeparser libraries set as 
'C:/Users/e.barlow-smith/AppData/Local/Continuum/anaconda3/envs/my-rdkit-env/Library/lib/maeparser.lib'
-- Found maeparser: 
C:/Users/e.barlow-smith/AppData/Local/RDKit/External/CoordGen
-- coordgen include dir set as 
C:/Users/e.barlow-smith/AppData/Local/RDKit/External/CoordGen
-- coordgen libraries set as 
'C:/Users/e.barlow-smith/AppData/Local/Continuum/anaconda3/envs/my-rdkit-env/Library/lib/coordgen.lib'
-- coordgen templates file set as 'coordgen_TEMPLATE_FILE-NOTFOUND'
-- Could NOT find coordgen (missing: coordgen_TEMPLATE_FILE)
-- Found coordgenlibs source in 
C:/Users/e.barlow-smith/AppData/Local/RDKit/External/CoordGen/coordgen

  Could not find the following Boost libraries:
          boost_system
          boost_iostreams

  Some (but not all) of the required Boost libraries were found.  You may
  need to install these additional Boost libraries.  Alternatively, set
  BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
  to the location of Boost.
Call Stack (most recent call first):
  Code/RDStreams/CMakeLists.txt:1 (find_package)

-- Could NOT find Boost
CMake Warning (dev) at Code/GraphMol/FileParsers/CMakeLists.txt:6 
(find_package):

CMake Error at 
C:/Users/e.barlow-smith/AppData/Local/Continuum/anaconda3/envs/my-rdkit-env/Library/share/cmake-3.14/Modules/FindBoost.cmake:2132
 (message):
  Unable to find the requested Boost libraries.
-- Could NOT find Boost
== Making EnumerateLibrary without boost Serialization support
== Making FilterCatalog without boost Serialization support
== Updating Filters.cpp from pains file
== Done updating pains files
== Making SubstructLibrary without boost Serialization support
-- Found RapidJSON source in 
C:/Users/e.barlow-smith/AppData/Local/RDKit/External
-- Configuring incomplete, errors occurred!
See also 
"C:/Users/e.barlow-smith/AppData/Local/RDKit/build/CMakeFiles/CMakeOutput.log".
See also 
"C:/Users/e.barlow-smith/AppData/Local/RDKit/build/CMakeFiles/CMakeError.log".

Thanks in advance,
Esther

_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to