RHEL 8 / Rocky Linux 8 Build Instructions
These instructions are based on the rpm_instructions, modified specifically for Rocky Linux 8.9 as of January 2024. This is meant to serve as a set of notes and working instructions as support for RH8 is improved.
You will first download the necessary dependencies, then the OpenVSP source code, then build and install an RPM package for OpenVSP.
Build Instructions
I developed these instructions by installing OpenVSP on a clean installation of Rocky Linux 8.9. Some dependencies may be hidden in the following because they were installed by default.
- Install required packages the standard way:
sudo dnf install -y cmake libxml2-devel rpm-build swig graphviz texlive-scheme-basic python3-devel
sudo dnf config-manager --set-enabled powertools
sudo dnf install -y glm-devel doxygen conda glew-devel- Install remaining required packages the hard way. You will need to navigate to each of these webpages, copy the “.rpm” link listed under “Download”→“Binary Package”, and then execute
sudo rpm -i <RPM_LINK>.rpmNecessary package webpages:
- https://altlinux.pkgs.org/p10/classic-x86_64/libcminpack-1.3.4-alt2_5.x86_64.rpm.html
- https://altlinux.pkgs.org/p10/classic-x86_64/libcminpack-devel-1.3.4-alt2_5.x86_64.rpm.html
- https://rhel.pkgs.org/8/raven-x86_64/openjpeg-devel-1.5.2-1.el8.x86_64.rpm.html
- https://rhel.pkgs.org/8/okey-x86_64/fltk-fluid-1.3.4-5.el8.x86_64.rpm.html
- Make main directory and clone OpenVSP source:
mkdir OpenVSP
cd OpenVSP
git clone https://github.com/OpenVSP/OpenVSP.git- Prepare build files for the libraries:
mkdir buildlibs
cd buildlibs
cmake -DCMAKE_BUILD_TYPE=Release -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_CPPTEST=false ../Libraries
make -j4- Build the package file:
cd ..
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DVSP_CPACK_GEN=RPM -DVSP_LIBRARY_PATH=`pwd`/../buildlibs ../src
make -j4 package
ls -l *.rpmThe last command should output a single RPM file.
- Install OpenVSP:
sudo rpm -i <OPENVSP_RPM_PACKAGE>.rpmThe RPM installs everything into /opt/OpenVSP.
The Python module is installed into /opt/OpenVSP/python, and you need to follow the steps in the README.md file in that directory in order to make use of it. The Python integration has not been tested on Rocky Linux.