WindowsBuild21 » History » Version 10

Version 9 (Chris Cannam, 2013-03-28 04:29 PM) → Version 10/11 (Chris Cannam, 2013-05-07 05:43 PM)

h1. Building SV v2.1 for Windows

It should now be possible to build Sonic Visualiser on Windows using the Qt Creator IDE. A special branch of the SV code is available which includes all the dependency libraries pre-built for your compiling and linking pleasure.

h2. Get the right version of Qt

This branch needs "Qt5":http://qt-project.org/downloads with Qt Creator and MinGW.

h2. Get the right branch

Start by checking out the @with-dependencies@ branch from Mercurial:

@$ hg clone -b with-dependencies https://code.soundsoftware.ac.uk/hg/sonic-visualiser@

h2. Use the right build configuration

Open the main @sonic-visualiser.pro@ project in Qt5 Creator.

Configure for

* a *release build* -- the debug build dependencies are not correctly set at the time of writing
* using *g++/MinGW tools* -- the MSVC compiler is not supported
* and *disable shadow build* -- it will only link if built in-place in the source tree

h2. Then build

If it builds, you should be able to run it directly from Qt Creator.

If you want to run outside of Creator, note that the binary will depend on a lot of DLLs that come shipped with Qt5 (you can find them in the Qt5 bin folder). Making a WiX installer builder is on my TODO list but I haven't done it yet.

Let me know what happens and, if you run into any problems -- send me a fix!

h1. Further notes from CT:

h2. NOTES FOR COMPILATION OF SONIC VISUALIZER ON WINDOWS 7 64bit

1. Follow instructions here: https://code.soundsoftware.ac.uk/projects/sonic-visualiser/wiki

2. Download Qt 5.0.2 for Windows 32-bit (MinGW 4.7, 650 MB)

3. Download MinGW-builds GCC 4.7.2 64-bit

4. Extract MinGW-builds GCC 4.7.2 64-bit to C:\Qt\mingw64-4.7.2

5. Rename "version.h.in" inside "sonic-visualizer" folder in "version.h"

6. Open sonic-visualiser.pro in Qt Creator

7. In Projects/Build/Manage Kits.../Build & Run/Compiler add a MinGW compiler and choose x86_64-w64-mingw32-g++.exe inside C:\Qt\mingw64\bin\

8. Build!