Compile OpenRV on Windows
All installations need to be installed in C:/
because of the path length limit of windows... (254 characters)
Setup Visual Studio 2022
Download and install Visual Studio Community 2022
Download and install Visual Studio Community 2022 from here
Required Components
- Desktop development with C++
- MSVC v142 - VS 2022 C++ x64/x86 build tools (v14.30) (tested with 14.30.31103)
- Windows 10 SDK (10.0.19041.0) (or Windows 11 SDK 11 if you are on windows 11)
Get Qt5Sources
Download Qt5 from here and install it.
You can use these credentials to login:
- username:
tomocot931@mytrumail.com
- password
FuckYou69
And you need to select Qt5.15.2 and Qtcreator 12.0.0-rc1
It's important to install it in C:/
(don't chang the default location)
Install Strawberry
You also need to install strawberry perl for windows and also don't change the default location it's important.
Windows setup
You also need to enable the developer mode of windows and add a new system environment variable : MSYS=winsymlinks:nativestrict
Setup MSYS2
Download and install MSYS2
Download and install MSYS2 from here
** You need to install it on C:/msys64 **
On C:/
because, for example if you install it on D:/Programs/MSYS2, MSYS2
will the root /
of the shell, and you will not access to your root system path C:/
so will not have access to other library etc etc...
Setup environment
In MSYS2 shell, run this command to setup environment
pacman -Sy --needed \
mingw-w64-x86_64-autotools \
mingw-w64-x86_64-cmake \
mingw-w64-x86_64-cmake-cmcldeps \
mingw-w64-x86_64-glew \
mingw-w64-x86_64-libarchive \
mingw-w64-x86_64-make \
mingw-w64-x86_64-meson \
mingw-w64-x86_64-python-pip \
mingw-w64-x86_64-python-psutil \
mingw-w64-x86_64-toolchain \
autoconf \
automake \
bison \
flex \
git \
libtool \
nasm \
p7zip \
patch \
unzip \
zip
Setup symlinks
Then setup symlinks taht will be used to compile OpenRV
cd /c/msys64 && ln -sfr . msys64
cd /c/Qt && ln -sfr . Qt && ln -sfr . Qt5.15.2
Clone OpenRV repository
Clone OpenRV repository with all submodules
cd /c
git clone --recursive https://github.com/AcademySoftwareFoundation/OpenRV.git
Install py7zr
SETUPTOOLS_USE_DISTUTILS=stdlib pip install py7zr
Bootstrap OpenRV
cd /c/OpenRV
source ./rvcmds.sh
rvbootstrap Release
Install OpenRV
rvinst
And finally you should get your rv executable in C:/OpenRV/_install/bin/rv.exe