Bug#1006682: /usr/lib/cmake/mathgl2/MathGL2Config.cmake: Could NOT find OpenMP_CXX
Sylvain Joubert
joubert.sy at gmail.com
Wed Mar 2 10:17:59 GMT 2022
Package: libmgl-dev
Version: 8.0.1-1
Severity: normal
X-Debbugs-Cc: joubert.sy at gmail.com
Dear Maintainer,
Trying to use libmgl-dev through find_package(MathGL2) in CMake I'm facing the
following error:
CMake Error at
/usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230
(message):
Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
Call Stack (most recent call first):
/usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594
(_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.22/Modules/FindOpenMP.cmake:544
(find_package_handle_standard_args)
/usr/share/cmake-3.22/Modules/CMakeFindDependencyMacro.cmake:47
(find_package)
/usr/lib/cmake/mathgl2/MathGL2Config.cmake:22 (find_dependency)
[...]
It appears the libmgl-dev package is missing a dependency on an OpenMP related
package.
Installing libomp-dev fixes the issue though I'm not sure this is the correct
package to depend on.
Thanks,
Sylvain
-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (990, 'testing'), (800, 'stable-updates'), (800, 'stable'), (700, 'unstable'), (90, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 5.16.0-1-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages libmgl-dev depends on:
ii libgl-dev 1.4.0-1
ii libgsl-dev 2.7.1+dfsg-3
ii libmgl-fltk8 8.0.1-1
ii libmgl-glut8 8.0.1-1
ii libmgl-mpi8 8.0.1-1
ii libmgl-qt5-8 8.0.1-1
ii libmgl-wnd8 8.0.1-1
ii libmgl-wx8 8.0.1-1
ii libmgl8 8.0.1-1
ii libpng-dev 1.6.37-3
libmgl-dev recommends no packages.
libmgl-dev suggests no packages.
-- no debconf information
More information about the debian-science-maintainers
mailing list