Recent Changes - Search:

Get GNU Solfege at SourceForge.net. Fast, secure and Free Open Source software downloads

SolfegeOnWin32

People that just want to use the program only need to download the installer from http://www.solfege.org. This page is written for developers, and tries to document how I create the windows installer so that it in the future can be possible for others to build it too.

The instructions on this page refers to the version of Solfege found in your bzr repository. This page was updated after 3.15.4 was released, so we refer to that version. These instructions will probably fail if you use a very different version of Solfege.

Paths mentioned on this page are relative to the folder the solfege tarball is unpacked into, for example solfege-3.15.4. On my system the absolute path to this folder is /home/Username/solfege-3.15.4 from inside bash (in msys) and C:\msys\1.0\home\Username\solfege-3.15.4 in windows explorer.

MinGW

Download and run the Automated WinGW Installer (5.1.4). When asked, select the 'Current' package. Install at least these packages:

  • MinGW base tools
  • g++ compiler
  • MinGW Make

You need to install some tools from http://www.mingw.org:

* MinGW-4.1.1.exe, installed into c:\msys\1.0\mingw. Select "Full install", click "Next" and then you can deselect some of the packages, for example: gcc-g++, gcc-g77, gcc-ada, gcc-java, gcc-objc

On XP you will be asked if you want to run a post-install script. Answer 'y' and then enter the path to where MinGW is installed. On my XP is was C:\MinGW.

On Vista you now need to download a tar.gz file containing a new msys.dll file. Replace c:\msys\1.0\bin\msys.dll with new-msys.dll. I don't know if some versions of XP have this problem. You will know that this step was required if you after installing msysDTK (see below) cannot run MSYS.

  • msysDTK-1.0.1.exe, installed to the default location c:\msys\1.0
  • gettext, installed into c:\MinGW
  • libiconv, installed into C:\MinGW (msgfmt in gettext need it)

Vista workaround:

Download the install.exe.manifest and install-info.exe.manifest files from here and place them in c:\msys\1.0\bin and then from msys:

 $ touch /bin/install.exe /bin/install-info.exe

MSYS config

After installing MSYS, i edited c:\msys\1.0\etc\profile and added /c/Python25 to the PATH so that the configure script should find Python

Note: In the last test setup on virtualbox, I had to manually add /c/MinGW/Bin to the path by editing /etc/profile. I will check this when verifying this page.

tmp Python tarball

I have created a tarball of a network install that I keep at ../my-python-2.5.tgz. I do this to speed up the installer build process, and to have more control what goes into the installer.

To create it, start the windows command prompt (not MSYS) and run the following while Python 2.5 is not installed:

 msiexec /a python-2.5.4.msi

This makes a network install of python 2.5. cd into /C/Python25 and pack it into ../my-python-2.5.tgz. Removed c:\python25

Requirements building the Windows installer

(Older versions of these programs might work, but this is what I use.)

Then the python/pygkt/installer tools:

Tmp GTK and pygtk folders

From solfege-3.15.4/, run sh winbuild.sh buildenv. This will create ../pygtk-stuff. The content of the folder will be copied into the installer. We only do this once.

Building it

Run msys to get a bash command prompt. Then from the source directory:

 $ sh winbuild.sh build

At this point, you can run the program from the folder it is unpacked into.

Making the installer

 $ sh winbuild.sh mkinstalldir

And finally, double click on the file named windowsinstaller and select Run. This will create the installer and install it. The installer file is saved in win32\Output.

Edit - History - Print - Recent Changes - Search
Page last modified on December 10, 2009, at 11:16 PM