A Dockerfile centos7 based to build OpenRV from https://github.com/AcademySoftwareFoundation/OpenRV.git
From page https://login.qt.io/login create a free account or sign-in. In download section select qt5.15.2 for linux.
The package is pretty heavy and it includes QtCreator, source and gcc compiled libs (the most important part for us).
Move the installed qt5.15.2 directory into OpenRV-Dockerfile
one.
https://docs.docker.com/engine/install
Build the image from the OpenRV-Dockerfile
directory:
docker build -t openrv .
You may have to use sudo, depending on your configuration.
Run the docker image and mount a volume to point the OpenRV-Dockerfile
directory (within qt5.15.2 installation)
docker run -ti -v /OpenRV-Dockerfile:/rv
In the image's interactive terminal change dir and launch the rv's cmake config:
cd ./OpenRV
cmake -B cmake-build -DRV_DEPS_QT5_LOCATION=/rv/qt-5.15.2/5.15.2/gcc_64 -DCMAKE_INSTALL_PREFIX=/rv/openrv
Note that we're giving the qt mounted volume to let it find the gcc libs. And choose to install it into image's /rv/openrv
directory.
Let's build it
cmake --build cmake-build --target rv
Change dir to the cmake-build and run cmake install
cd ./cmake-build
cmake install
All the built files will be configured and copied into the image's /rv/openrv
directory
Exit the image's terminal.
You should have the OpenRV app installed into OpenRV-Dockerfile/openrv
Enjoy.