WindowsBuild21 » History » Version 11
Chris Cannam, 2013-05-07 05:44 PM
1 | 1 | Chris Cannam | h1. Building SV v2.1 for Windows |
---|---|---|---|
2 | 1 | Chris Cannam | |
3 | 4 | Chris Cannam | 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. |
4 | 1 | Chris Cannam | |
5 | 9 | Chris Cannam | h2. Get the right version of Qt |
6 | 9 | Chris Cannam | |
7 | 9 | Chris Cannam | This branch needs "Qt5":http://qt-project.org/downloads with Qt Creator and MinGW. |
8 | 9 | Chris Cannam | |
9 | 4 | Chris Cannam | h2. Get the right branch |
10 | 4 | Chris Cannam | |
11 | 4 | Chris Cannam | Start by checking out the @with-dependencies@ branch from Mercurial: |
12 | 4 | Chris Cannam | |
13 | 4 | Chris Cannam | @$ hg clone -b with-dependencies https://code.soundsoftware.ac.uk/hg/sonic-visualiser@ |
14 | 4 | Chris Cannam | |
15 | 4 | Chris Cannam | h2. Use the right build configuration |
16 | 4 | Chris Cannam | |
17 | 4 | Chris Cannam | Open the main @sonic-visualiser.pro@ project in Qt5 Creator. |
18 | 4 | Chris Cannam | |
19 | 5 | Chris Cannam | Configure for |
20 | 5 | Chris Cannam | |
21 | 6 | Chris Cannam | * a *release build* -- the debug build dependencies are not correctly set at the time of writing |
22 | 6 | Chris Cannam | * using *g++/MinGW tools* -- the MSVC compiler is not supported |
23 | 5 | Chris Cannam | * and *disable shadow build* -- it will only link if built in-place in the source tree |
24 | 7 | Chris Cannam | |
25 | 7 | Chris Cannam | h2. Then build |
26 | 9 | Chris Cannam | |
27 | 9 | Chris Cannam | If it builds, you should be able to run it directly from Qt Creator. |
28 | 9 | Chris Cannam | |
29 | 9 | Chris Cannam | 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. |
30 | 7 | Chris Cannam | |
31 | 8 | Chris Cannam | Let me know what happens and, if you run into any problems -- send me a fix! |
32 | 10 | Chris Cannam | |
33 | 11 | Chris Cannam | h2. Further notes from CT: |
34 | 10 | Chris Cannam | |
35 | 11 | Chris Cannam | h3. NOTES FOR COMPILATION OF SONIC VISUALIZER ON WINDOWS 7 64bit |
36 | 10 | Chris Cannam | |
37 | 10 | Chris Cannam | 1. Follow instructions here: https://code.soundsoftware.ac.uk/projects/sonic-visualiser/wiki |
38 | 10 | Chris Cannam | |
39 | 10 | Chris Cannam | 2. Download Qt 5.0.2 for Windows 32-bit (MinGW 4.7, 650 MB) |
40 | 10 | Chris Cannam | |
41 | 10 | Chris Cannam | 3. Download MinGW-builds GCC 4.7.2 64-bit |
42 | 10 | Chris Cannam | |
43 | 10 | Chris Cannam | 4. Extract MinGW-builds GCC 4.7.2 64-bit to C:\Qt\mingw64-4.7.2 |
44 | 10 | Chris Cannam | |
45 | 10 | Chris Cannam | 5. Rename "version.h.in" inside "sonic-visualizer" folder in "version.h" |
46 | 10 | Chris Cannam | |
47 | 10 | Chris Cannam | 6. Open sonic-visualiser.pro in Qt Creator |
48 | 10 | Chris Cannam | |
49 | 10 | Chris Cannam | 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\ |
50 | 10 | Chris Cannam | |
51 | 10 | Chris Cannam | 8. Build! |