How to build cogscrobbler from source
Getting the source
Mercurial
hg clone http://hg.ulfurinn.net/cog-scrobbler cog-scrobblerand update to one of the tags to get the version you want.
Prerequisites
You will need the following things to build the scrobbler:
- g++ 4
- Qt 4 dev libs
- Boost dev libs
- Ruby
Users of Debian-based systems can consult debian/control for package names.
Boost does not require compilation, only header libraries are used.
Windows notes
The following packages from GnuWin32 are required to use the bundled build scripts:
- coreutils
It's easiest to get g++ from the mingw-w64 project even if you're building 32-bit binaries.
Building 64-bit binaries requires a 64-bit build of Qt.
Building and installing
Linux
qmake cogscrobbler.pro make make installThis will install the files under /usr/local. To use a different prefix, such as /usr, run instead:
qmake cogscrobbler.pro INSTALL=/usrThis procedure should work, in theory, on every Unix derivative to which Qt has been ported.
Windows
Two build scripts are provided, build32.bat and build64.bat. Choose the one according to your build architecture.
Open the script and change the variables in the beginning to point to the directories where you put the prerequisites. Do not change the PLATFORM variable. hg is not required if you're using pre-packaged sources.
Then run the script, and it will create a zip file with binaries.