-
Notifications
You must be signed in to change notification settings - Fork 851
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
CMake Error:Could not find a package configuration file provided by "boost_python" #3913
Comments
Try adding |
I don't understand the difference between -D Boost_NO_BOOST_CMAKE = TRUE and FALSE. |
I tried adding -DBoost_NO_BOOST_CMAKE=TRUE. but another error happed. CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message): What should I do? |
That's not necessarily actually an error. If you think it is, please provide the entire output from running cmake |
this is a logs. cmake -D Boost_NO_BOOST_CMAKE=TRUE -D RDK_BUILD_INCHI_SUPPORT=ON -D PYTHON_EXECUTABLE=/usr/bin/python3 .. -- Found Catch2 source in /root/rdkit/External/catch/catch CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message): -- Configuring incomplete, errors occurred! |
when |
That error message is indicating that it couldn't find boost::python |
Thanks!
|
here's general boost building instructions: https://www.boost.org/doc/libs/1_70_0/more/getting_started/unix-variants.html Note that this is no longer an RDKit question and that we cannot help with building boost. If you need help building boost, it's probably a better idea to use a pre-built version. There's likely one available directly from your linux distribution that you can use. |
Thank you so much! I will try it later.
I tried to install pre-built version of boost 1.71(apt install libboost-all-dev ) and build RDKIT 2020_09_05 from source. Target "MolEnumerator_static" links to target "Boost::system" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
Code/GraphMol/MolEnumerator/CMakeLists.txt:1 (rdkit_library)
CMake Error at Code/cmake/Modules/RDKitUtils.cmake:55 (add_library):
Target "MolEnumerator_static" links to target "Boost::iostreams" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
Code/GraphMol/MolEnumerator/CMakeLists.txt:1 (rdkit_library)
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly. So I tried to install boost from source. (And I don't want to use anaconda to install rdkit. because it's not free recently.) |
This is very old, but for anybody finding this you may need:
Those paths are what I used (compiling with pyenv's Python) but you may need to change the locations to reflect your Python installation (likely will need to use the paths of the apt-installed Python). Before compiling rdkit, you can check whether boost properly built its python extensions by looking for any I know OP isn't using pyenv but these links for useful for me: |
In this way? - - > And do I have to run this in "Fairsoft" directory? |
Configuration:
RDKit version: 2020.09.4
Host OS: CentOS 7.4
Docker Container:ubuntu 20.04
Python version : 3.8.5
Are you using conda? No
If you are not using conda: how did you install the RDKit? Build form source
Description:
sample program(main.cpp and CMakeLists.txt).
cmake .
:
-- Configuring done
-- Generating done
-- Build files have been written to: /root/boost_test
make
:
[ 50%] Building CXX object CMakeFiles/main.dir/main.cpp.o
[100%] Linking CXX executable main
[100%] Built target main
CMake Error at /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake:120 (find_package):
Could not find a package configuration file provided by "boost_python"
(requested version 1.72.0) with any of the following names:
boost_pythonConfig.cmake
boost_python-config.cmake
Add the installation prefix of "boost_python" to CMAKE_PREFIX_PATH or set
"boost_python_DIR" to a directory containing one of the above files. If
"boost_python" provides a separate development package or SDK, be sure it
has been installed.
Expected behavior
CMake would complete successfully.
I'm not sure what is wrong. Any suggestions will be helpful!
The text was updated successfully, but these errors were encountered: