OpenChemistry / openchemistry

Supermodule containing submodules and external project to build all components
http://openchemistry.org/
BSD 3-Clause "New" or "Revised" License
80 stars 59 forks source link

Compiler: Undefined reference to schrodinger::mae #63

Closed bieniekmateusz closed 3 years ago

bieniekmateusz commented 4 years ago

Hi there,

I am trying to compile the openchemistry package and I followed the standard instructions (https://wiki.openchemistry.org/Build).
Do you know how I can I skip the third party files? The cmake command I used: cmake --build . --config Release.

I use Linux Arch. Thanks!

/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib/libcoordgen.so: undefined reference to `schrodinger::mae::Block::getIndexedBlock(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
make[5]: *** [tools/CMakeFiles/obrms.dir/build.make:108: bin/obrms] Error 1
make[4]: *** [CMakeFiles/Makefile2:4089: tools/CMakeFiles/obrms.dir/all] Error 2
make[3]: *** [Makefile:149: all] Error 2
make[2]: *** [thirdparty/CMakeFiles/openbabel.dir/build.make:135: thirdparty/openbabel-prefix/src/openbabel-stamp/openbabel-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:357: thirdparty/CMakeFiles/openbabel.dir/all] Error 2
make: *** [Makefile:103: all] Error 2
ghutchis commented 3 years ago

Sorry, I haven't been watching issues on this repo.

If you already have an Open Babel package install, you can use -DUSE_SYSTEM_OPENBABEL instead of compiling it.

Or:

ccmake . # and look for USE_SYSTEM_OPENBABEL