Skip to content

Building

rsouth edited this page Aug 22, 2020 · 1 revision

Building Qt and Sequencer

  • Example with Qt 5.15.0
  • Building Qt static (with static runtime)
  • Using MSVC and VS2019
  • TODO: Add more details about configure
  • TODO: jom notes.
  • TODO: debug vs release builds for Sequencer

Building Qt

Download Qt source zip from https://www.qt.io/offline-installers

Extract, e.g. to C:\Qt\qt-5.15.0-src

Run x64 Native Tools Command Prompt for VS 2019

cd C:\Qt\qt-5.15.0-src
set QTDIR=C:\Qt\qt-5.15.0-src\qtbase
set PATH=C:\Qt\qt-5.15.0-src\qtbase\bin;%PATH%
configure -debug-and-release -prefix "C:\Qt\qt-5.15.0-s" -opensource -platform win32-msvc -opengl desktop -static -static-runtime -nomake examples -nomake tests
nmake
nmake install

configure arguments

Some documentation for configure is at https://doc.qt.io/qt-5/configure-options.html

The Option The Why
-debug-and-release
-prefix "C:\Qt\qt-5.15.0-s"
-opensource
-platform win32-msvc
-opengl desktop uses the OpenGL installed on Windows
-static
-static-runtime
-nomake examples
-nomake tests

In Visual Studio -> Qt VS Tools, add C:\Qt\qt-5.15.0-s\qtbase and make it the default. In Qt Project Settings set Qt Installation to the newly setup version.

Building Sequencer


qmake
nmake

For release builds, something like

nmake /f Makefile.Release ?? find how to trigger this through Makefile.... that automatically seems to use Makefile.Debug