Error when building version 1.96

I just cloned the project from github and build with ubuntu 20.04.

I got this error:
– Determined Source Version : 1.96.0-158-ge99b62a2
– Could NOT find SPGLIB (missing: SPGLIB_INCLUDE_DIR SPGLIB_LIBRARY)
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find MMTF (missing: MMTF_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
cmake/FindMMTF.cmake:13 (find_package_handle_standard_args)
avogadro/io/CMakeLists.txt:4 (find_package)

Can you please advise?
Thank you!

1 Like

It looks like you just cloned avogadrolibs. By far, the easiest way to get going is to clone openchemistry which will set everything up, including both avogadrolibs and avogadroapp.

Build instructions are in the repo, but also: Building Source Code — Avogadro 1.95.1 documentation

I have the same problem with Win11-WSL, Ubuntu 22.04.

What Ubuntu package do I have to install ? I tried many packages, but no way…

miroi@MIRO:~/work/software/avogadro2/cloned/build/.m
[ 12%] Built target libmsym
[ 24%] Built target libarchive
[ 36%] Built target eigen
[ 49%] Built target glew
[ 61%] Built target spglib
[ 63%] Performing configure step for 'avogadrolibs'
loading initial cache file /home/miroi/work/software/avogadro2/cloned/build/avogadrolibs-prefix/tmp/avogadrolibs-cache-Debug.cmake
-- Determined Source Version : 1.100.0
-- Component omp of Spglib: NOT FOUND
-- Component fortran of Spglib: NOT FOUND
-- Found package: Spglib
CMake Error at /usr/share/cmake-4.1/Modules/FindPackageHandleStandardArgs.cmake:227 (message):
  Could NOT find MMTF (missing: MMTF_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-4.1/Modules/FindPackageHandleStandardArgs.cmake:591 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindMMTF.cmake:13 (find_package_handle_standard_args)
  avogadro/io/CMakeLists.txt:48 (find_package)


-- Configuring incomplete, errors occurred!
make[2]: *** [CMakeFiles/avogadrolibs.dir/build.make:106: avogadrolibs-prefix/src/avogadrolibs-stamp/avogadrolibs-configure] Error 1
make[1]: *** [CMakeFiles/Makefile2:131: CMakeFiles/avogadrolibs.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
miroi@MIRO:~/work/software/avogadro2/cloned/build/.

There’s no missing package. Please just make sure that all the repositories are up-to-date:

  • openchemistry
  • avogadrolibs
  • avogadroapp

Since MMTF format is no longer used by the PDB and we’ve had some issues with it, we’ve removed that code. But you’ll need to make sure all the repos are up-to-date.

Ah, right, I had to follow Building Source Code — Avogadro 1.100.0 documentation , to have freshly clones repos.

1 Like