1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-11 08:34:34 +02:00

* Updated README.

This commit is contained in:
Christian Muehlhaeuser
2011-01-03 14:43:49 +01:00
parent 108f8cf93b
commit f3b7375779

88
README
View File

@@ -1,78 +1,80 @@
Quickstart on Ubuntu Quickstart on Ubuntu
-------------------- --------------------
sudo apt-get install build-essential cmake libtag1c2a libtag1-dev liblastfm-dev \ $ sudo apt-get install build-essential cmake libtag1c2a libtag1-dev liblastfm-dev \
libqt4-dev libqt4-sql-sqlite libvorbis-dev libmad0-dev libflac++-dev \ libqt4-dev libqt4-sql-sqlite libvorbis-dev libmad0-dev libflac++-dev \
libasound2-dev libboost-dev zlib1g-dev libgnutls-dev pkg-config libasound2-dev libboost-dev zlib1g-dev libgnutls-dev pkg-config
Gloox 1.0 (XMPP library) Gloox 1.0 (XMPP library)
------------------------ ------------------------
On Ubuntu 10.10: On Ubuntu 10.10:
$ sudo apt-get install libgloox-dev $ sudo apt-get install libgloox-dev
Otherwise see: http://camaya.net/glooxdownload Otherwise see: http://camaya.net/glooxdownload
You need to build gloox 1.0 from source, Ubuntu 10.04 only packages v0.9. You need to build gloox 1.0 from source, Ubuntu 10.04 only packages v0.9.
$ # Download and unpack tarball $ # Download and unpack tarball
$ ./configure --without-openssl --with-gnutls --without-libidn --with-zlib --without-examples --without-tests $ ./configure --without-openssl --with-gnutls --without-libidn --with-zlib --without-examples --without-tests
$ CXXFLAGS=-fPIC make $ CXXFLAGS=-fPIC make
$ sudo make install $ sudo make install
QJson (Qt JSON library) QJson (Qt JSON library)
----------------------- -----------------------
On Ubuntu 10.04: On Ubuntu 10.04:
$ sudo apt-get install libqjson-dev $ sudo apt-get install libqjson-dev
Otherwise see: http://sourceforge.net/projects/qjson/files/ (developed using 0.7.1) Otherwise see: http://sourceforge.net/projects/qjson/files/ (developed using 0.7.1)
$ # Download and unpack tarball $ # Download and unpack tarball
$ ./configure && make $ ./configure && make
$ sudo make install $ sudo make install
libEchonest 0.1 libEchonest 0.1
--------------- ---------------
See: http://projects.kde.org/projects/playground/libs/libechonest/ See: http://projects.kde.org/projects/playground/libs/libechonest/
$ git clone git://git.kde.org/libechonest.git $ git clone git://git.kde.org/libechonest.git
$ cd libechonest $ cd libechonest
$ mkdir build && cd build $ mkdir build && cd build
$ cmake .. $ cmake ..
$ make $ make
$ sudo make install $ sudo make install
Now compile Tomahawk Now compile Tomahawk
-------------------- --------------------
$ sudo ldconfig -v | grep -Ei 'qjson|gloox|echonest' $ sudo ldconfig -v | grep -Ei 'qjson|gloox|echonest'
$ mkdir build && cd build $ mkdir build && cd build
$ cmake .. $ cmake ..
$ make $ make
$ ./tomahawk $ ./tomahawk
Quickstart on OS X Quickstart on OS X
------------------ ------------------
# Install homebrew # Install homebrew
$ ruby -e "$(curl -fsSL https://gist.github.com/raw/323731/install_homebrew.rb)" $ ruby -e "$(curl -fsSL https://gist.github.com/raw/323731/install_homebrew.rb)"
$ brew install qt qjson gloox libmad libvorbis flac taglib boost liblastfm $ brew install qt qjson gloox libmad libvorbis flac taglib boost liblastfm
# Install libEchnoest as per the above instructions # Install libEchnoest as per the above instructions
# If liblastfm gives problems, do the below: # If liblastfm gives problems, do the below:
$ brew edit liblastfm $ brew edit liblastfm
# change url to https://github.com/davidsansome/liblastfm/tarball/0.3.1 # change url to https://github.com/davidsansome/liblastfm/tarball/0.3.1
$ brew install liblastfm $ brew install liblastfm
# copy the md5 hash it gives # copy the md5 hash it gives
$ brew edit liblastfm $ brew edit liblastfm
# replace the md5 hash with the new one you copied # replace the md5 hash with the new one you copied
$ brew install liblastfm $ brew install liblastfm
# Build Tomahawk # Build Tomahawk
$ git clone git://github.com/tomahawk-player/tomahawk.git $ git clone git://github.com/tomahawk-player/tomahawk.git
$ cd tomahawk $ cd tomahawk
$ mkdir build && cd build $ mkdir build && cd build
$ cmake .. $ cmake ..
$ make $ make
$ open tomahawk.app $ open tomahawk.app
Dependencies Dependencies
@@ -100,21 +102,21 @@ Dependencies
To build the app: To build the app:
----------------- -----------------
$ mkdir build $ mkdir build
$ cd build $ cd build
(Pick one of the following two choices. If unsure pick the second one, you probably want a GUI) (Pick one of the following two choices. If unsure pick the second one, you probably want a GUI)
$ cmake -Dgui=no .. # enables headless mode, build without GUI $ cmake -Dgui=no .. # enables headless mode, build without GUI
$ cmake .. # normal build including GUI $ cmake .. # normal build including GUI
$ make $ make
To run the app: To run the app:
--------------- ---------------
(Only run the next two commands if you installed any of the dependencies from source on Linux) (Only run the next two commands if you installed any of the dependencies from source on Linux)
$ export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH $ export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
$ sudo ldconfig -v $ sudo ldconfig -v
$ ./tomahawk $ ./tomahawk
Enjoy! Enjoy!