User Tools

Site Tools


ubuntu_instructions

Ubuntu (Debian, Mint, and similar) Build Instructions

On various Linux distributions, you must build OpenVSP yourself. Here is a quick guide that should make this easier.

Instructions for Ubuntu

The following is a detailed walkthrough of Ubuntu 18.04 installation. All steps provided below are also available in the form of a bash script here.

This has been successfully tested on Ubuntu 14.04, Ubuntu 16.04, Ubuntu 18.04, Ubuntu Mate 18.04 and Linux Mint 18.

1. Install all required packages:

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

2. Make main directory and clone OpenVSP source:

mkdir OpenVSP; cd OpenVSP

mkdir repo build buildlibs

git clone --depth=1 https://github.com/OpenVSP/OpenVSP.git repo

3. Prepare build files for the libraries:

cd buildlibs

cmake -DVSP_USE_SYSTEM_LIBXML2=true -DVSP_USE_SYSTEM_FLTK=true -DVSP_USE_SYSTEM_GLM=true -DVSP_USE_SYSTEM_GLEW=true -DVSP_USE_SYSTEM_CMINPACK=true -DVSP_USE_SYSTEM_LIBIGES=false -DVSP_USE_SYSTEM_EIGEN=false -DVSP_USE_SYSTEM_CODEELI=false -DVSP_USE_SYSTEM_CPPTEST=false ../repo/Libraries -DCMAKE_BUILD_TYPE=Release

4. Build the libraries:

Adjust the integer after -j to tell make the number of recipes to execute simultaneously.

make -j8

5. Set up and build OpenVSP:

cd ../build

Adjust

your/path/to

to suit your path names to the OpenVSP directory.

cmake ../repo/src/ -DVSP_LIBRARY_PATH=/home/your/path/to/OpenVSP/buildlibs -DCMAKE_BUILD_TYPE=Release

6. Build OpenVSP

make -j8

7. Make joint folder with executables:

make package

This will generate a zip folder with all the executables necessary to run OpenVSP.

ubuntu_instructions.txt · Last modified: 2019/11/11 11:21 by cibin