SourceForge has been redesigned. Learn more.

Tree [435337] master /

HTTPS access

File Date Author Commit
 debian 2011-12-13 nappleton nappleton [9393f2] Update debian copyright for portaudio
 ext 2011-09-15 nappleton nappleton [ab45c6] Use free Wine dsound.h, if non dsound.h is pres...
 help 2012-01-06 e9925248 e9925248 [d70bc6] Multiple loops should overlap
 po 2011-12-29 larspalo larspalo [435f36] Updated swedish translation.
 src 2012-01-08 e9925248 e9925248 [435337] wxTR_EXTENDED is not portable
 AUTHORS 2011-12-09 nappleton nappleton [a94437] Add JP Marsan to AUTHORS
 CMakeLists.txt 2012-01-03 nappleton nappleton [28e210] remove fomit-frame-pointer from debug builds to...
 GetPrerequisites.cmake 2011-11-07 nappleton nappleton [eba3a8] Include dlls with CPack (MK)
 GrandOrgue.desktop 2011-12-09 nappleton nappleton [0d9bd7] Move from XPM to PNG icons (MK)
 GrandOrgue.png 2011-12-09 nappleton nappleton [0d9bd7] Move from XPM to PNG icons (MK)
 README 2011-12-24 e9925248 e9925248 [d1d5b3] Recommend mingw-w64 instead of mingw
 README.translate 2011-09-22 nappleton nappleton [8da8dc] Activate new build system for help (MK)
 grandorgue.spec 2011-11-24 larspalo larspalo [353395] Add-rpm-build-files.patch (MK)
 license.txt 2011-12-09 nappleton nappleton [b454b5] Update source headers (remove mentions of MyOrg...

Read Me

GrandOrgue is a sample based pipe organ simulator.

It currently supports Windows and Linux. Porting to other OS supported by RtMidi, 
RtAudio and wxWidgets should be possible with some build system adjustments.

Building on Windows:

1) Install mingw-w64 ( or TDM64 (
2) Install cmake (
3) Download a copy of wxMSW (wxWidgets for Windows) from (latest stable release while writing this guide - v2.8.12)
4) Extract it somewhere easily accessible. Best use a short, simple path without spaces like c:\wxWidgets
5) Open the command interpreter (cmd.exe) and run:
  cd C:\wxWidgets\build\msw
  mingw32-make -f makefile.gcc BUILD=bbb UNICODE=uuu SHARED=sss

Where bbb can equal:

    * release - builds wxWidgets in an optimised release form without debugging information (default)
    * debug - builds wxWidgets in debug mode with no optimisations 

uuu can equal:

    * 1 - builds a unicode version of wxWidgets
    * 0 - builds an ANSI version of wxWidgets (default) 

sss can equal:

    * 1 - builds shared libraries (default)
    * 0 - builds statically linked libraries 

so eg:
  mingw32-make -f makefile.gcc BUILD=release UNICODE=1 SHARED=0

6) Extract a copy of the GrandOrgue sources somewhere (eg. c:\gosources) [this file is part of them]
7) Create an empty build directory, eg. c:\gobuild
8) open a command interpreter (cmd.exe) and run:
 cd c:\gobuild
 cmake <path to Grand Orgue sources> -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=bbb -DUNICODE=xxx -DwxWidgets_ROOT_DIR=<path to wxwidget>

Where bbb is:
  Release - release build
  Debug - debug build

xxx is:
  1 - unicode build
  0 - ansi build

Both settings should match the wxWidget build.

 cmake c:\gosources -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DUNICODE=1  -DwxWidgets_ROOT_DIR=c:\wxWidgets

If you want to use ASIO, wou will need to get the ASIO SDK ( and put it in 
the ext/rt/asio directory according to the various README files.

If you don't want to use ASIO, add -DRTAUDIO_USE_ASIO=OFF to the cmake parameters.

Running cmake will claim, that it can't find various tools (eg. xsltproc, zip, gettext, po4a, docbook-xsl) - 
they are optional and used to build the help system and/or translations.

9) Build the project by running
in the build directory.

The resulting executeable could require some DLLs from the wxWidgets build directory or mingw.
If you start it, Window will report each missing DLL. Simply copy them into the same directory as

If you install the NSIS installer (, you
can create a simple installer with
mingw32-make package

Building on Linux:

1) Install gcc C++ compiler, make, cmake and the development packages of wxWigets, jack (libjack) and alsa (libasound) from your distribution
2) Install docbook-xsl, xsltproc, zip, gettext and po4a (if present on your distribution)
3) Extract the GO sources somewhere, eg: /home/user/gosources
4) Create an empty build directory, eg: mkdir /home/user/gobuild
5) Run cmake:
  cd /home/user/gobuild
  cmake -DUNICODE=xxx -DCMAKE_BUILD_TYPE=bbb -G "Unix Makefiles" <path to go-sources>

Where bbb is:
  Release - release build
  Debug - debug build

xxx is:
  1 - unicode build (most linux distributions will likely ship a unicode build)
  0 - ansi build

  cmake -DUNICODE=1 -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" <path to go-sources>

Hint: For debugging a release build, add the -DCMAKE_CXX_FLAGS=-g option to cmake.

Building Linux packages:
To build a deb package (Debian/Ubuntu), do
sudo apt-get install build-essential fakeroot
dpkg-buildpackage -rfakeroot

If dpkg-buildpackage reports, that a package is missing, please install them too (sudo apt-get install <packagename).

GrandOrgue ships a spec file for building RPMs (tested with OpenSuSE).
To build, copy the grandorgue tarball to the rpm SOURCE directory and run:
rpmbuild -ba grandorgue.spec

Cross-compiling for Windows:

1) Install mingw-w64 (On Debian/Ubuntu, install the package mingw-w64) and
   all packages needed to build GO under Linux.
2) Prepare 5 directores:
  * extracted wxWidgets sources (I used 2.8.12) to a directory (/wxsrc)
  * extract GO trunk sources (with my last patches) to a directory (/gosrc)
  * create empty install directory (/inst)
  * create empty win build directory (/buildwin)
  * create empty linux build directory (/buildlinux)
In the following, I use the short path from above - normally
you would put them somewhere under $HOME and use something like /home/user/GO/wxsrc.
3) Build wxWidgets
cd /wxsrc
./configure --host=i686-w64-mingw32 --prefix=/inst --enable-unicode
make install 
4) Build GO for linux
cd /buildlinux
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release /gosrc  -DUNICODE=1
5) Create toolchain definition for windows, file /inst/toolchain.def:
# the name of the target operating system

# which compilers to use for C and C++
SET(CMAKE_C_COMPILER i686-w64-mingw32-gcc)
SET(CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
SET(CMAKE_RC_COMPILER i686-w64-mingw32-windres)

# here is the target environment located
SET(CMAKE_FIND_ROOT_PATH  /usr/i686-w64-mingw32 /inst)

# adjust the default behaviour of the FIND_XXX() commands:
# search headers and libraries in the target environment, search 
# programs in the host environment

6) Build GO for windows
cd /buildwin
cmake -DCMAKE_TOOLCHAIN_FILE=/inst/toolchain.def /gosrc -DUNICODE=1 -DCMAKE_INSTALL_PREFIX=/inst -DSTATIC=1 -DIMPORT_EXECUTABLES=/buildlinux/ImportExecutables.cmake -DRTAUDIO_USE_ASIO=OFF

-DRTAUDIO_USE_ASIO=OFF turns building ASIO off - else you need to put the ASIO SDK into the sources

7) If you have installed NSIS too, run
make package
to create an installer

If you want to build a 64bit version, replace everywhere in this instruction i686-w64-mingw32 with x86_64-w64-mingw32.