#1144211 libmgl-dev: cmake config tries to link to invalid hdf5-shared library

Package:
libmgl-dev
Source:
libmgl-dev
Description:
library for scientific graphs (development files)
Submitter:
Sylvain Joubert
Date:
2026-08-12 11:45:02 UTC
Severity:
normal
#1144211#5
Date:
2026-08-12 11:43:46 UTC
From:
To:
Dear Maintainer,

The mgl and mgl-static targets defined in
/usr/lib/cmake/mathgl2/MathGLTargets.cmake refer to a 'hdf5-shared' library as
a dependency.
However during my cmake project build that uses the mgl target I get the
following link error:

cannot find -lhdf5-shared: No such file or directory

And indeed I can't find any reference to a such a file anywhere.
The fact that the cmake config file references that library only by its name
"...;hdf5-shared;..." instead of a full path like all other dependencies in
that list looks suspicious to me.
In turn the actual library binary however depends on 'libhdf5_serial.so.320'
that I don't see in the list.

Thanks,
Sylvain