Build Vaa3D Qt6 version on Windows - Vaa3D/Vaa3D_Wiki GitHub Wiki

Following is the instruction to build 64-bit Vaa3D and its plugins on Windows using Qt6 mingw

Qt

  • Download the latest qt online installer here(https://download.qt.io/archive/online_installers/)

  • Downloaded qt-unified-windows-x86-4.2.0-online.exe and execute

  • You will need to register a personal account and install Qt version 6.1 or above and choose MinGW Qt6 version

  • The online installer will automatically install Qt Creator

Configure Qt environment variables

QTDIR=<your Qt path>\6.2.2
QMAKESPEC=win32-g++

Then add this path to your PATH variable,

<your Qt path>\6.2.2\mingw_64\bin
<your Qt path>\tools\mingw**\bin

so that your system knows where to find qmake.

Acquire Vaa3D Source

Open Git Bash and navigate to the folder where you wish to build Vaa3D. Then use the following 2 lines to download Vaa3D source and its submodule:

git clone -b QT6_NEW https://github.com/Vaa3D/v3d_external.git
git clone -b vaa3d_tools_qt6 https://github.com/Vaa3D/vaa3d_tools.git

Create links between Vaa3D main body and plugins

Plug-in sources are located in vaa3d_tools folder. We create several links between Vaa3D main body and vaa3d_tools folder to make path specifying easier in project files:

cd <your Vaa3D path>\vaa3d_tools
mklink /j  v3d_main ..\v3d_external\v3d_main
mklink /j  bin ..\v3d_external\bin
cd ..\v3d_external
mklink /j  released_plugins_more  ..\vaa3d_tools\released_plugins

Configure and Build Vaa3D

  • Use QtCreator to open v3d_qt6.pro in ~/v3d_main/v3d/
  • Configure, click the Build button (choose release).

Build plugins

Execute the following commands in the command prompt:

cd <your Vaa3D path>\v3d_external\released_plugins_more
build_plugindemo_mingw.bat
cd <your Vaa3D path>\vaa3d_tools\released_plugins
build_plugindemo_mingw.bat

Run Vaa3D

  • Copy v3d_qt6.exe from <your Vaa3D path>\v3d_external\v3d_main\v3d\release to <your Vaa3D path>\v3d_external\bin.
  • you should copy glew32.dll,openvr_api.dll ,SDL2.dll and libteem.dll from <your Vaa3D path>\v3d_external\v3d_main\common_lib\mingw_dll to <your Vaa3D path>\v3d_external\bin.
  • Enjoy!