From 110ce18498753385fb880704490c9d86807a471f Mon Sep 17 00:00:00 2001 From: fulup Date: Sun, 9 Apr 2017 15:25:38 +0200 Subject: Fixes make install destination dir and README --- README.md | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index ce0790c..3c09cc7 100644 --- a/README.md +++ b/README.md @@ -29,19 +29,23 @@ AFB_daemon dependency on Standard Linux Distributions ``` # Might want to add following variables into ~/.bashrc - export CC=gcc-5; export CXX=g++-5 # if using gcc5 - echo 'export DEST=$HOME/opt' >>~/.bashrc - echo 'export LD_LIBRARY_PATH=$INSTALL_DIR/lib64:$INSTALL_DIR/lib' >>~/.bashrc - echo 'export LIBRARY_PATH=$INSTALL_DIR/lib64:$INSTALL_DIR/lib' >>~/.bashrc - echo 'export PKG_CONFIG_PATH=$INSTALL_DIR/lib64/pkgconfig:$INSTALL_DIR/lib/pkgconfig' >>~/.bashrc - echo 'export PATH=$INSTALL_DIR/bin:$PATH' >>~/.bashrc + echo "#---------- AGL options Start ---------" >>~/.bashrc + echo "# Object: AGL cmake option for binder/bindings" >>~/.bashrc + echo "# Date: `date`" >>~/.bashrc + echo 'export CC=gcc-5; export CXX=g++-5' >>~/.bashrc # if using gcc5 + echo 'export INSTALL_PREFIX=$HOME/opt' >>~/.bashrc + echo 'export LD_LIBRARY_PATH=$INSTALL_PREFIX/lib64:$INSTALL_PREFIX/lib' >>~/.bashrc + echo 'export LIBRARY_PATH=$INSTALL_PREFIX/lib64:$INSTALL_PREFIX/lib' >>~/.bashrc + echo 'export PKG_CONFIG_PATH=$INSTALL_PREFIX/lib64/pkgconfig:$INSTALL_PREFIX/lib/pkgconfig' >>~/.bashrc + echo 'export PATH=$INSTALL_PREFIX/bin:$PATH' >>~/.bashrc + echo "#---------- AGL options End ---------" >>~/.bashrc source ~/.bashrc # install AGL pached version of LibMicroHttpd wget http://iot.bzh/download/public/2016/appfw/libmicrohttpd-0.9.49-agl.tgz tar -xzf libmicrohttpd-0.9.49-agl.tgz cd libmicrohttpd-0.9.49-agl - ./configure --prefix=$INSTALL_DIR + ./configure --prefix=$INSTALL_PREFIX make make install-strip @@ -50,7 +54,7 @@ AFB_daemon dependency on Standard Linux Distributions # Warning: previous GCC options should be set before initial cmake (clean Build/*) cd app-framework-binder; mkdir build; cd build - cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR .. + cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX .. make make install ``` @@ -58,22 +62,22 @@ AFB_daemon dependency on Standard Linux Distributions ``` # Compile binding -INSTALL_DIR=xxxx # default ./Install +source ~/.bashrc # or any other file where your have place your compilation preferences mkdir build cd build -cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR .. +cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX .. make make install # Start the binder # From Development Tree - mkdir $INSTALL_DIR/share/wssocks + mkdir $INSTALL_PREFIX/share/wssocks afb-daemon --verbose --token="" --ldpaths=./build --port=1234 --roothttp=./htdocs -# From $INSTALL_DIR - mkdir $INSTALL_DIR/share/wssocks - afb-daemon --verbose --token="" --ldpaths=$INSTALL_DIR/lib/audio --port=1234 --roothttp=$INSTALL_DIR/htdocs/audio-bindings +# From $INSTALL_PREFIX + mkdir $INSTALL_PREFIX/share/wssocks + afb-daemon --verbose --token="" --ldpaths=$INSTALL_PREFIX/lib/audio --port=1234 --roothttp=$INSTALL_PREFIX/htdocs/audio-bindings ``` # replace hd:XX with your own sound card ID ex: "hw:0", "hw:PCH", ... Start a browser on http://localhost:1234?devid=hw:XX -- cgit 1.2.3-korg