Skip to content

Commit 0a442d1

Browse files
committed
Add link to new Windows build instructions (#563)
I've kept the old Packaging instructions, as these aren't in the new file, as far as I can see.
1 parent 760340b commit 0a442d1

File tree

1 file changed

+2
-54
lines changed

1 file changed

+2
-54
lines changed

INSTALL.md

Lines changed: 2 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -174,61 +174,9 @@ ln -s `which ruby` app/server/native/osx/ruby/bin/ruby
174174

175175
## Windows
176176

177-
### Source Code
177+
### Building
178178

179-
* Download & install [Git for Windows](https://msysgit.github.io/).
180-
* Checkout [latest Sonic Pi sources](https://github.com/samaaron/sonic-pi) from GitHub.
181-
182-
### Dependencies
183-
184-
* Download & Install [Visual Studio 2013 Express for Desktop](http://www.visualstudio.com/downloads/download-visual-studio-vs#d-express-windows-desktop)
185-
* Download & Install [Qt 5.4.1+](https://www.qt.io/download-open-source/)
186-
- Run the setup wizard and install to a known location (e.g. C:\Qt5 or C:\apps\qt5) which we'll call %QT5_HOME%
187-
- Be sure to install the msvc2013_x86 target
188-
- More details on Qt installation can be found on [this blog post](http://sonicpidevnotes.blogspot.com/2015/06/installing-qt-5-on-windows-7-for-sonic.html)
189-
* Download & Install [CMake](http://www.cmake.org/download/), ensuring it is added to your PATH
190-
* Download & Install [Ruby 2.1.x](http://rubyinstaller.org/downloads/)
191-
* [Download](http://rubyinstaller.org/downloads/) & [Install](https://github.com/oneclick/rubyinstaller/wiki/Development-Kit) Ruby Development Kit (did you install it or just unzip it? Please read the install directions)
192-
* Install [pkg-config-lite](http://sourceforge.net/projects/pkgconfiglite/files/) by copying its files to your devkit install (pkg-config.exe to bin, pkg.m4 to share/aclocal)
193-
* NB: compile-extensions.rb step is no longer applicable on Windows, because the native bits will get compiled as you install the necessary gems below
194-
195-
### Qt GUI
196-
197-
* Set up build environment
198-
- open Visual Studio 2013/Visual Studio Tools/VS2013 x86 Tools Command Prompt
199-
- add QT to your path: `PATH=%PATH%;C:\Qt5\5.4\msvc2013\bin`
200-
* Build QScintilla:
201-
- Download the [QScintilla project](http://www.riverbankcomputing.co.uk/software/qscintilla/download) and unzip it somewhere convenient.
202-
- `cd Qt4Qt5`
203-
- generate makefile: `qmake qscintilla.pro`
204-
- `nmake`
205-
- copy to QT directory: `nmake install`
206-
- copy Qt4Qt5\release\moc_qscintilla.cpp and moc_qsciscintillabase.cpp to Sonic Pi's app\gui\qt\platform\win directory (let me know if you figure out why this is only needed on Windows)
207-
* Run `app\gui\qt\win-build-app.bat` from the directory you checked out Sonic Pi to
208-
* copy C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\redist\x86\Microsoft.VC120.CRT\msvcp120.dll and msvcr120.dll to release\
209-
* `Sonic-Pi.exe` will be in `release`
210-
* it expects to be packaged with SC and Ruby in the locations described below.
211-
212-
### SuperCollider
213-
* copy `C:\Program Files (x86)\SuperCollider-3.6.6\scsynth.exe` and `*.dll` and `plugins` into `app\server\native\windows` (but skip the Qt* DLLs)
214-
- Sonic Pi is actually using a custom build of SC at the moment to avoid firewall drama
215-
216-
### Ruby
217-
* copy `C:\ruby193\*` into `app\server\native\windows`
218-
- there are some things that can be trimmed, such as docs
219-
* `cd app\server\native\windows`
220-
* `bin\gem install did_you_mean`
221-
* `bin\gem install ffi`
222-
* `bin\gem install rugged`
223-
- if this errors out, you may need this patch: https://gist.github.com/jweather/96dd36bf291298bfea5c
224-
- `bin\gem fetch rugged`
225-
- `bin\gem unpack rugged-0.23.0.gem`
226-
- `bin\gem spec rugged-0.23.0.gem --ruby > rugged-0.23.0\rugged.gemspec`
227-
- patch extconf.rb accordingly
228-
- `cd rugged-0.23.0`
229-
- `..\bin\gem build rugged.gemspec`
230-
- `..\bin\gem install rugged-0.23.0.gem`
231-
- TODO: is there a better way to accomplish this?
179+
Follow the instructions in [WindowsInstall.md](WindowsInstall.md)
232180

233181
### Packaging
234182
* TODO: there should be a "make distclean" target to clean up the tree for MSI packaging

0 commit comments

Comments
 (0)