Build issues relating to JKQTPlotter

Sorry to trouble you with a request for help like this, but I don’t really have the time to figure it out myself and I suspect the solution might be immediately obvious to you…

I can’t build Avogadro from source right now. The observations:

  • All the initial steps building the dependencies work fine, up to and including openbabel
  • The failure occurs in the configure step for avogadrolibs with the following output:
[ 78%] Performing configure step for 'avogadrolibs'
loading initial cache file /home/matt/avo/build/avogadrolibs-prefix/tmp/avogadrolibs-cache-Debug.cmake
-- Determined Source Version : 1.102.1-418-g8fc655e8
-- Component omp of Spglib: NOT FOUND
-- Component fortran of Spglib: NOT FOUND
-- Found package: Spglib
CMake Error at avogadro/qtgui/CMakeLists.txt:32 (find_package):
  By not providing "FindJKQTPlotter6.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "JKQTPlotter6", but CMake did not find one.

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

    JKQTPlotter6Config.cmake
    jkqtplotter6-config.cmake

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


-- Configuring incomplete, errors occurred!
gmake[2]: *** [CMakeFiles/avogadrolibs.dir/build.make:107: avogadrolibs-prefix/src/avogadrolibs-stamp/avogadrolibs-configure] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:135: CMakeFiles/avogadrolibs.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2
  • avogadrolibs is pretty up-to-date (8fc655e8, from the 25th Jan)
  • Likewise, I also pulled avogadroapp from upstream on the 25th, it’s at ec3c8feb
  • openchemistry and therefore openchemistry/cmake is completely up-to-date with upstream
  • openchemistry/cmake contains External_JKQTPlotter.cmake
  • openchemistry/thirdparty contains jkqtplotter, which is populated with files
  • jkqtplotter is currently at 5fd8951e (24th June 2025) – this is the commit that the submodule points at in the current HEAD of the openchemistry superrepo. Is this fine? There’s no specific commit listed in openchemistry/cmake/projects.cmake that I can see

There wasn’t a specific release / tag for JKQTPlotter because I couldn’t get the 4.0 releases working and there wasn’t yet a tag for 5.0.

I see that thanks to our various package maintainers, there’s now d243218 as v5.0.0-beta1

I’m not entirely sure of the cause .. I’ve run into this a few times and generally cleaning out the build directory and rebuilding has gotten everything to work.

It’s possibly somewhat related to this which I was just examining. Let me see if there’s an obvious issue, or if updating to v5.0.0-beta1 solves it?

I’ll give the 5.0 beta a try later and report back :slight_smile:

I’ll be pushing openchemistry to that tag, along with a few related pull requests. Hopefully that should help.

Okay, try from the latest HEAD of openchemistry and avogadrolibs and avogadroapp

Hopefully those changes should solve your problem?

I tried updating to all those commits, including this one

for JKQTPlotter, but sadly it still doesn’t seem to work. :frowning:

I don’t know. With current HEAD, you can use -DUSE_PLOTTER=OFF if you’re having problems with that.