Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
djrandom
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ale
djrandom
Commits
32a523f3
Commit
32a523f3
authored
10 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
updated build instructions
parent
7f242440
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.rst
+70
-25
70 additions, 25 deletions
README.rst
with
70 additions
and
25 deletions
README.rst
+
70
−
25
View file @
32a523f3
...
@@ -42,40 +42,85 @@ machines.
...
@@ -42,40 +42,85 @@ machines.
Building
Building
--------
--------
D
ependencies:
Base d
ependencies:
- portaudio
- Go (at least version 1.2)
- leveldb
- LevelDB
- libtool
- fftw
- pcre
To build djrandom on GNU/Linux::
Note that the LevelDB version in Debian wheezy is too old with
respect to the Go bindings, so you might need to compile it from
source.
You'll need to check out the source repository at the right place
in your ``GOPATH``::
$ mkdir -p $GOPATH/src/git.autistici.org/ale
$ cd $GOPATH/src/git.autistici.org/ale
$ git clone https://git.autistici.org/ale/imms.git imms
$ cd imms
$ aclocal ; libtoolize ; automake --foreign --add-missing ; autoconf
$ ./configure && make && sudo make install
$ go get -d git.autistici.org/ale/djrandom
$ go get -d git.autistici.org/ale/djrandom
$ cd $GOPATH/src/git.autistici.org/ale/djrandom
$ go get -v ./...
$ ./mkclientdist.sh
To build only the client you can run the following command instead of
Once this is done, choose whether you want to build the full suite
``go get -v ./...``::
or just the clients (which have a much smaller set of dependencies).
Building the clients
~~~~~~~~~~~~~~~~~~~~
The DJRandom client suite need the PortAudio library (version 1.9
or higher) to talk to the audio device, and either ``ffmpeg`` or
the ``libav`` suite (``avconv``).
On a Debian-based system, ``apt-get install libav-tools portaudio19-dev``
should do.
* install the Go package dependencies:
$ go get git.autistici.org/ale/djrandom/client/...
* install the client binaries::
$ go install git.autistici.org/ale/djrandom/client/...
You should now have ``djplay``, ``djupload`` and ``djmpd`` in ``$GOPATH/bin``.
$ go get -v ./client/...
To build djrandom on OS X you can install all the dependencies with
Building the service
`homebrew`::
~~~~~~~~~~~~~~~~~~~~
Server-side components have quite a few dependencies on third-party
libraries, including one that is not packaged in distributions
and has to be built manually (imms):
- a basic C/C++ build environment
- GNU autotools
- GNU libtool
- FFTW (v3)
- PCRE
- IMMS (see below)
On a Debian system, install the required packages with::
$ apt-get install build-essential autoconf automake libtool \
pkg-config libfftw3-dev libpcre3-dev
On OSX, using ``brew``::
$ brew install portaudio leveldb libtool fftw pcre
$ brew install portaudio leveldb libtool fftw pcre
You also have to use ``glibtoolize`` instead of ``libtoolize``::
To build IMMS::
$ go get -d git.autistici.org/ale/imms
$ cd $GOPATH/src/git.autistici.org/ale/imms
$ aclocal ; libtoolize ; automake --foreign --add-missing ; autoconf
$ ./configure && make && sudo make install
(on OSX, you might have to use ``glibtoolize`` instead of ``libtoolize``).
You should now be able to build all the server-side tools with::
$ cd $GOPATH/src/git.autistici.org/ale/djrandom
$ go get -v ./server/...
$ go install -v ./server/...
$ go get -v ./mapreduce/...
$ go install -v ./mapreduce/...
$ aclocal ; glibtoolize ; automake --foreign --add-missing ; autoconf
Running the upload client
Running the upload client
-------------------------
-------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment