Skip to content

Instantly share code, notes, and snippets.

@Daniel-M
Last active August 16, 2017 20:34
Show Gist options
  • Save Daniel-M/5c637278d6fe3ee00281fb8c8e629934 to your computer and use it in GitHub Desktop.
Save Daniel-M/5c637278d6fe3ee00281fb8c8e629934 to your computer and use it in GitHub Desktop.
Build MathGL 2.3.5 for installation
# Install Prerequisites for MathGL 2.3.5 in Debian
apt-get update
apt-get install libqt5webkit5-dev libhpdf-dev libgsl-dev libopenmpi-dev libhdf5-dev libwxgtk3.0-dev libpng-dev texinfo
# Inside mathgl-2.3.5 source directory
mkdir build
cd build
cmake -D enable-qt5=ON -D enable-pdf=ON -D enable-png=ON -D enable-jpeg=ON -D enable-openmp=ON -D enable-gsl=ON -D enable-hdf5=ON -D enable-wx=ON enable-mpi=ON -D enable-doc-pdf-en=ON ..
make -j 4
# If the make process reports problems finding the HDF5 library use the following cmake order instead of the
# one above
#
cmake -D enable-qt5=ON -D enable-pdf=ON -D enable-png=ON -D enable-jpeg=ON -D enable-openmp=ON -D enable-gsl=ON -D enable-hdf5=ON -D enable-wx=ON enable-mpi=ON -D enable-doc-pdf-en=ON -DHDF5_INCLUDE_DIR=/usr/include/hdf5/serial ..
#
# The -DHDF5_INCLUDE_DIR=/usr/include/hdf5/serial solves some issues with the FindHDF5.cmake not
# setting the proper value for the variable HDF5_INCLUDE_DIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment