Windows Build Instructions

Christian Muehlhaeuser edited this page Dec 5, 2015 · 2 revisions

Installing required packages

Adding repositories

Adding the following repositories enables you to install the mingw32 cross compiler tool-chain and a few other dependencies:

 sudo zypper addrepo http://download.opensuse.org/repositories/windows:/mingw/openSUSE_11.4/windows:mingw.repo
 sudo zypper addrepo http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_11.4/windows:mingw:win32.repo
 sudo zypper addrepo http://download.tomahawk-player.org/packman/mingw:32/openSUSE_11.4/mingw:32.repo

Updating your system

 sudo zypper refresh
 sudo zypper dist-upgrade

Installing the packages

If you don't have ccache install it (or remove it from the Toolchain file)

 sudo zypper install ccache 

To install all packages needed for compiling do

 sudo zypper source-install --build-deps-only mingw32-tomahawk-unstable

All packages needed for generating the installer are installed like this

 sudo zypper source-install --build-deps-only mingw32-tomahawk-player-installer

Building Tomahawk

Check out the source

 git clone https://github.com/tomahawk-player/tomahawk.git

Build it

 mkdir tomahawk/build
 cd tomahawk/build
 cmake -DCMAKE_TOOLCHAIN_FILE=../admin/win/Toolchain-mingw32-openSUSE.cmake ..
 make

Building an installer

 make package

An installer with the filename tomahawk-x.y.z.exe will be created.