Permalink
Browse files

o Provide an INSTALL.md that explains how to compile on older systems.

  • Loading branch information...
1 parent 9245de3 commit 49a4cd94253471e02a501eb8050649e18a74817e @hzeller committed Sep 26, 2012
Showing with 56 additions and 10 deletions.
  1. +39 −0 INSTALL.md
  2. +8 −3 Makefile
  3. +8 −6 README.md
  4. +1 −1 folve-main.cc
View
@@ -0,0 +1,39 @@
+## Typical installation ##
+
+On a reasonably fresh system (e.g. Ubuntu 11.10 and 12.04), installation is
+straightforward. To compile, this is what you need to do:
+
+ sudo apt-get install libsndfile-dev libflac-dev libzita-convolver-dev \
+ libfuse-dev libboost-thread-dev libmicrohttpd-dev
+ make
+
+To install in the default location /usr/local/bin, just do
+ sudo make install
+
+.. otherwise specify the alternative location with DESTDIR
+ sudo make DESTDIR=/usr install
+
+## Older Systems ##
+Older systems, e.g. Ubuntu 10.04 lack sufficiently, recent libraries for fuse
+and the zita convolver. You've compile these yourself.
+
+ # The FUSE library
+ cd /tmp
+ wget http://sourceforge.net/projects/fuse/files/fuse-2.X/2.9.1/fuse-2.9.1.tar.gz
+ tar xvzf fuse-2.9.1.tar.gz
+ cd fuse-2.9.1/
+ ./configure
+ make
+ sudo make install
+
+also
+
+ # The Zita convolver
+ cd /tmp
+ wget http://kokkinizita.linuxaudio.org/linuxaudio/downloads/zita-convolver-3.1.0.tar.bz2
+ tar xvjf zita-convolver-3.1.0.tar.bz2
+ cd zita-convolver-3.1.0/libs
+ make
+ sudo make LIBDIR=lib install
+
+Now, the compilation step in 'Typical installation' should succeed.
View
@@ -1,8 +1,11 @@
-CC=gcc
CXX=g++
+DESTDIR=/usr/local
+
F_VERSION=$(shell git log -n1 --date=short --format="%cd (commit=%h)" 2>/dev/null || echo "[unknown version - compile from git]")
+
CFLAGS=-D_FILE_OFFSET_BITS=64 -Wall -O2 -DFOLVE_VERSION='"$(F_VERSION)"'
#CFLAGS=-D_FILE_OFFSET_BITS=64 -Wall -g -O0
+
CXXFLAGS=$(CFLAGS)
LDFLAGS=-lfuse -lsndfile -lzita-convolver -lmicrohttpd -lboost_thread-mt
@@ -14,10 +17,12 @@ folve: $(OBJECTS)
$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
install: folve
- install folve /usr/local/bin
+ install folve $(DESTDIR)/bin
clean:
rm -f folve $(OBJECTS)
-README.html : README.md
+html : README.html INSTALL.html
+
+%.html : %.md
markdown < $^ > $@
View
@@ -56,6 +56,7 @@ or provide patches through github
This project is notably based on
* FUSE: Filesystem in Userspace <http://fuse.sourceforge.net/>
+ * Zita Convolver <http://kokkinizita.linuxaudio.org/linuxaudio/downloads/zita-convolver-3.1.0.tar.bz2>
* JConvolver audio convolver <http://apps.linuxaudio.org/apps/all/jconvolver>
* Program files in the Folve the project named zita-* are derivatives of
files found in the jconvolver project. They implement the configuration
@@ -66,13 +67,14 @@ This project is notably based on
### Compiling on Ubuntu (tested on 11.10 and 12.04) ###
- This requires the latest versions of libfuse and libzita convolver to compile.
- .. and a couple of other libs:
+ This requires the latest versions of some development libraries.
- $ sudo apt-get install libsndfile-dev libflac-dev libzita-convolver-dev \
- libfuse-dev libboost-thread-dev libmicrohttpd-dev
- $ make
- $ sudo make install
+ sudo apt-get install libsndfile-dev libflac-dev libzita-convolver-dev \
+ libfuse-dev libboost-thread-dev libmicrohttpd-dev
+ make
+ sudo make install
+
+For hints on how to compile on older systems see INSTALL.md.
(TODO: debian package)
View
@@ -17,7 +17,7 @@
// Use latest version.
#define FUSE_USE_VERSION 26
-#include <fuse.h>
+#include <fuse/fuse.h>
#include <dirent.h>
#include <errno.h>

0 comments on commit 49a4cd9

Please sign in to comment.