Debian (Ubuntu, Mint, and similar) Build Instructions
Here is a guide to building OpenVSP on Debian-based systems. These steps were tested on Ubuntu 18.04 and up, and on Debian 12.7.
Preliminaries
- Set system gcc to version 10, 13, or 14. Compilation currently fails with gcc 11 and gcc 12.
- Manually upgrade system pandoc to a version >= 3.1.9. Debian binaries available here.
All subsequent steps below are also available in the form of a bash script here.
- Install all required packages:
text
$ sudo apt-get install python3-dev git git-gui cmake libxml2-dev libfltk1.3-dev g++ libcpptest-dev libjpeg-dev libglm-dev libeigen3-dev libcminpack-dev libglew-dev swig doxygen graphviz texlive-latex-base- Make main directory and clone OpenVSP source:
text
$ mkdir OpenVSP && cd OpenVSP
$ mkdir repo build buildlibs
$ git clone --depth=1 https://github.com/OpenVSP/OpenVSP.git repo- Prepare build files for the libraries:
text
$ cd buildlibs
$ cmake -DVSP_USE_SYSTEM_ADEPT2=false -DVSP_USE_SYSTEM_CLIPPER2=false -DVSP_USE_SYSTEM_CMINPACK=false -DVSP_USE_SYSTEM_CODEELI=false -DVSP_USE_SYSTEM_CPPTEST=false -DVSP_USE_SYSTEM_DELABELLA=false -DVSP_USE_SYSTEM_EIGEN=false -DVSP_USE_SYSTEM_EXPRPARSE=false -DVSP_USE_SYSTEM_FLTK=false -DVSP_USE_SYSTEM_GLEW=true -DVSP_USE_SYSTEM_GLM=false -DVSP_USE_SYSTEM_LIBIGES=false -DVSP_USE_SYSTEM_LIBXML2=true -DVSP_USE_SYSTEM_OPENABF=false -DVSP_USE_SYSTEM_PINOCCHIO=false -DVSP_USE_SYSTEM_STEPCODE=false -DVSP_USE_SYSTEM_TRIANGLE=false ../repo/Libraries -DCMAKE_BUILD_TYPE=Release- Build the libraries:
Adjust the integer after -j to tell make the number of recipes to execute simultaneously.
text
$ make -j8- Set up and build OpenVSP:
text
$ cd ../buildAdjust
text
your/path/toto suit your path names to the OpenVSP directory.
text
$ cmake ../repo/src/ -DVSP_LIBRARY_PATH=/home/your/path/to/OpenVSP/buildlibs -DCMAKE_BUILD_TYPE=Release -DVSP_CPACK_GEN=DEB- Build OpenVSP
text
$ make -j8- Make joint folder with executables:
text
$ make packageThis will generate a Debian package, with filename in the form OpenVSP-3.41.1-Linux.deb, containing all executables. To install:
text
$ sudo dpkg -i OpenVSP-3.41.1-Linux.deb