schrodinger / coordgenlibs

Schrodinger-developed 2D Coordinate Generation
BSD 3-Clause "New" or "Revised" License
42 stars 28 forks source link

1.3.1 fails to configure with maeparser-1.2.1 #37

Open yurivict opened 5 years ago

yurivict commented 5 years ago
-- Found Boost: /usr/local/include (found version "1.71.0") found components:  iostreams regex
CMake Error at CMakeLists.txt:25 (find_package):
  By not providing "Findmaeparser.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "maeparser", but CMake did not find one.

  Could not find a package configuration file provided by "maeparser" with
  any of the following names:

    maeparserConfig.cmake
    maeparser-config.cmake

  Add the installation prefix of "maeparser" to CMAKE_PREFIX_PATH or set
  "maeparser_DIR" to a directory containing one of the above files.  If
  "maeparser" provides a separate development package or SDK, be sure it has
  been installed.

FreeBSD 12

d-b-w commented 5 years ago

Thanks for the report, @yurivict

ricrogz commented 5 years ago

Hi, @yurivict.

To build coordgenlibs, first you need to build and install maeparser (you can specify the install path adding the flag -DCMAKE_INSTALL_PREFIX=[install path] to the cmake command).

Once that is done, you have to tell CMake where maeparsers ".cmake" files were installed by passing the right path to CMake using the "maeparser_DIR" flag, i.e., adding -Dmaeparser_DIR=[install path]/lib/cmake to your cmake command.

Please let me know if you have any more trouble!

ricrogz commented 5 years ago

Please note that the behavior I mentioned in my previous comment has been changed in #41.

Please check the README for updated build instructions and notes.

yurivict commented 4 years ago

Normally this shouldn't be needed because {prefix}/lib/cmake is a standard location.

ricrogz commented 4 years ago

Normally this shouldn't be needed because {prefix}/lib/cmake is a standard location.

Yes, that is true, but only in case maeparser and coordgen use the same prefix path. In case they are installed into different, non standard prefix paths, coordgen needs to be told where to find maeparser's cmake file.

yurivict commented 4 years ago

They are installed into the same prefix.