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 while preparing 3.15.9 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.9. On my system the absolute path to this folder is /home/Username/solfege-3.15.9 from inside bash (in msys) and C:\msys\1.0\home\Username\solfege-3.15.9 in windows explorer.

MinGW

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

  • MinGW base tools
  • g++ compiler

Then install MSYS-1.0.11 and msysDTK-1.0.1

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.

Install gettext and libiconv from http://gnuwin32.sourceforge.net/. I installed the .exe installer packages and added /C/Programfiler/GnuWin32/bin to the msys path.

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

Install gettext and libiconv from gnuwin32. I installed the installer packages and let it install in the default path c:\Programfiler\GnuWin32. I edited /etc/profile and added gnuwin32 to the path:

 export PATH="/C/Programfiler/GnuWin32/bin:$PATH"

MSYS config

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

Edit /etc/profile and add alias vim=/C/Programfiler/Vim/Vim72/vim.exe

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.6.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.6 is not installed:

 msiexec /a python-2.6.4.msi

This makes a network install of python 2.6. cd into /C/Python26 and pack it into ../my-python-26.tgz by running tar --gzip --create --file=/home/Username/my-python-26.tgz . . Removed c:\python26

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.9/, 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 May 04, 2010, at 11:48 AM