Menu

#7 Compiling pharmit failed About OpenBabel3 configuration

1.0
open
None
2022-11-08
2022-11-07
AndyLi
No

An error occurred while compiling in the following way:
git clone http://git.code.sf.net/p/pharmit/code pharmit
cd pharmit/src
mkdir build
cmake .. -DCMAKE_CXX_FLAGS=-std=c++0x -DSMINA_DIR=$HOME/smina

The ERRORS:
CMake Error at CMakeLists.txt:65 (find_package):
Found package configuration file:
/usr/local/lib64/cmake/openbabel3/OpenBabel3Config.cmake
but it set OpenBabel3_FOUND to FALSE so package "OpenBabel3" is considered
to be NOT FOUND. Reason given by package:
The following imported targets are referenced, but are missing: maeparser
coordgen
-- Configuring incomplete, errors occurred!
See also "/home/aidrug/pharmit/pharmit/src/build/CMakeFiles/CMakeOutput.log".
See also "/home/aidrug/pharmit/pharmit/src/build/CMakeFiles/CMakeError.log".

Please help me, thank you!!

Discussion

  • David Koes

    David Koes - 2022-11-07

    Your openbabel installation is missing maeparser and coordgen, which are notorious both in their absence and presence for causing build problems. Try configuring cmake with -DWITH_MAEPARSER=0 -DWITH_COORDGEN=0 or otherwise modifying cmake to not require these superfluous libraries.

     
  • AndyLi

    AndyLi - 2022-11-08

    thank you,I will try to reinstall other dependent components, and continue to give feedback later

     

Log in to post a comment.

MongoDB Logo MongoDB