Need help building Avogadroapp (Could not find a package configuration file)

Hello, I am trying to get Avogadroapp to build.

I have difficultly building this because I can’t find the same software in Fedora so I can’t steal spec file from them.
I do find a PKGBUILD on AUR.
Which I find the list of dependencies from.

CMake Error at avogadro/CMakeLists.txt:1 (find_package):
   16s]   Could not find a package configuration file provided by "AvogadroLibs" with
   16s]   any of the following names:
   16s]     AvogadroLibsConfig.cmake
   16s]     avogadrolibs-config.cmake
   16s]   Add the installation prefix of "AvogadroLibs" to CMAKE_PREFIX_PATH or set
   16s]   "AvogadroLibs_DIR" to a directory containing one of the above files.  If
   16s]   "AvogadroLibs" provides a separate development package or SDK, be sure it
   16s]   has been installed.
   16s] -- Configuring incomplete, errors occurred!
   16s] See also "/home/abuild/rpmbuild/BUILD/avogadroapp-1.93.0/CMakeFiles/CMakeOutput.log".
   16s] error: Bad exit status from /var/tmp/rpm-tmp.vnxtN7 (%build)
   16s] RPM build errors:
   16s]     Bad exit status from /var/tmp/rpm-tmp.vnxtN7 (%build)

I believe it is looking for AvogadroLibsConfig.cmake or avogadrolibs-config.cmake which it doesn’t find.

Which I believe I have to use this build flag

-DAvogadroLibs_DIR=%{_prefix} \

but it does not work, likely that the directory to the libs are wrong, but I am not sure where or how to find out.

The libs are a separate package you need to build first… then once this is built add as a dependancy…


avogadrolibs is available in opensuse official repo, but strangely not avogadroapp.

Anyway, I did add it to my spec file as

BuildRequires:  avogadrolibs

I believe my path that I set for cmake to find it might not be correct. I’m not sure how to go about looking for it.

You need the development package;

cmake(AvogadroLibs) or avogadrolibs-devel


I recently found out I need to have Molequeue package as well for avogadro to build, this gonna be tough.

Is molequeue python3 ready?

I see

I will just ask fusion809 to submit their package to science repo.

Problem is it’s old code, there has not been an updated in a number of years and it doesn’t seem to be python3, in saying that it may be declined and won’t build for Tumbleweed.

lel fusion just did

Looks good and using python3…