Bug#1004219: /usr/lib/cmake/mathgl2/MathGL2Config.cmake: missing more dependencies: libhdf4-dev libmfhdf-dev libhdf5-dev libhpdf-dev libgif-dev

Marius Mikucionis mmikucionis at gmail.com
Sat Jan 22 23:33:42 GMT 2022


Package: libmgl-dev
Version: 8.0.1-1
Severity: normal
File: /usr/lib/cmake/mathgl2/MathGL2Config.cmake

Dear maintainer,

Could you please add more dependencies to libmgl-dev?
The following libraries are needed to link a simple mgl-fltk program: libhdf4-dev libmfhdf-dev libhdf5-dev libhpdf-dev libgif-dev

Here is the project source in case you want to test it:

test_mathgl.cpp:

#include <mgl2/fltk.h>
int sample(mglGraph *gr) {
  gr->Rotate(60,40);
  gr->Box();
  return 0;
}
int main(int argc,char **argv) {
  mglFLTK gr(sample,"MathGL examples");
  return gr.Run();
}


CMakeLists.txt:

cmake_minimum_required(VERSION 3.15)
project(GLPlotting)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_EXTENSIONS OFF)
find_package(MathGL2 REQUIRED)
add_executable(test_mathgl test_mathgl.cpp)
target_link_libraries(test_mathgl mgl-fltk)


To compile, enter the following commands:

mkdir build && cmake -B build -S .
cmake --build build


(this assumes workarounds for Bug#1004218)

Best regards,
Marius


-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (900, 'testing'), (500, 'stable-updates'), (500, 'stable'), (50, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.15.0-3-amd64 (SMP w/32 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:da:lt
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