diff options
author | manojgudi | 2014-03-14 16:35:42 +0530 |
---|---|---|
committer | manojgudi | 2014-03-14 16:35:42 +0530 |
commit | 48908a292f3a7a71de9c68d24008060c335ec92c (patch) | |
tree | 1becbdb60c3cd1b71c13075e683028198d2462df /getting_it.md | |
parent | c9335efa0b7d32eece917b8ca1b030842de2377f (diff) | |
download | sandhi-docs-48908a292f3a7a71de9c68d24008060c335ec92c.tar.gz sandhi-docs-48908a292f3a7a71de9c68d24008060c335ec92c.tar.bz2 sandhi-docs-48908a292f3a7a71de9c68d24008060c335ec92c.zip |
updated getting-it.md
Diffstat (limited to 'getting_it.md')
-rw-r--r-- | getting_it.md | 47 |
1 files changed, 31 insertions, 16 deletions
diff --git a/getting_it.md b/getting_it.md index 08f8241..68d332c 100644 --- a/getting_it.md +++ b/getting_it.md @@ -6,7 +6,7 @@ Sandhi, as mentioned earlier, is a free and open-source software, it can be down Sandhi is conglomeration of lot of libraries and softwares. It uses GNU Radio at its core. For computational purposes, Scilab and Octave can be interfaced with Sandhi. Sandhi uses a special wrapper called Sciscipy which allows one to call scilab functions from python without having to worry about datatype conversion. --------------------------- -### <a href='http://gnuradio.org/redmine/projects/gnuradio/wiki/UbuntuInstall#Install-the-Pre-Requisites'>Installing GNU Radio dependencies</a> +#### <a href='http://gnuradio.org/redmine/projects/gnuradio/wiki/UbuntuInstall#Install-the-Pre-Requisites'>Installing GNU Radio dependencies</a> *If on Ubuntu 12.04, one can directly install using command*- @@ -18,10 +18,10 @@ Sandhi is conglomeration of lot of libraries and softwares. It uses GNU Radio at libqt4-opengl-dev libqwt5-qt4-dev libfontconfig1-dev libxrender-dev \ python-serial python-matplotlib -_Please note that Sandhi has been known to **not** work libboost1.49 available in Ubuntu 12.10_ +_Please note that Sandhi has been known to **not** work libboost1.49 available in Ubuntu 12.10 repositories._ ------------------------- -### <a href='http://forge.scilab.org/index.php/p/sciscipy/'> Sciscipy </a> +#### <a href='http://forge.scilab.org/index.php/p/sciscipy/'> Sciscipy </a> Sciscipy is _must_ for Sandhi's control blocks to work; to install: Clone sciscipy-1.0.0 from our repository; run _install_ script from the directory with **sudo** privileges to automatically pull all dependencies for Sciscipy, build and install it<br> @@ -35,6 +35,8 @@ Clone sciscipy-1.0.0 from our repository; run _install_ script from the director ### Build it +#### Downloading Source Code + git clone http://github.com/manojgudi/sandhi.git cd sandhi/ git submodule init @@ -46,7 +48,7 @@ Clone sciscipy-1.0.0 from our repository; run _install_ script from the director git pull origin master git submodule update --- Compiling source code -- +#### Compiling Source Code cd sandhi/ mkdir build @@ -56,24 +58,37 @@ Clone sciscipy-1.0.0 from our repository; run _install_ script from the director sudo make install sudo ldconfig -#### Current Build Status [](https://travis-ci.org/manojgudi/sandhi) - +#### Current Build Status [](https://travis-ci.org/gnu-sandhi/sandhi) ### Get Binary -Builds for Ubuntu 12.04 for 64bit Architecture: +Builds for Ubuntu 12.04 for 64bit Architecture is hosted on: http://fossee.in/sandhi_builds/ +#### Packaging it for Ubuntu for other architecture +We use a package called [fpm](https://github.com/jordansissel/fpm/wiki) to roll-out .deb files for Ubuntu. -------------------------------------------------------------------------- -FAQ (Frequently Asked Questions) --------------------------------------------------------------------------- +1. First install fpm for Ubuntu <br> +`sudo apt-get install rubygems` + +2. Download [ffi package](http://rubygems.org/downloads/ffi-1.9.0.gem) <br> +Install that using gem<br> +`gem install ffi` + +3. Similarly, download latest fpm.gem<br> +`gem install fpm` + +Now packaging Sandhi using fpm we have to build Sandhi by changing _cmake_ option.<br> +`cmake -DCMAKE_INSTALL_PREFIX:PATH=out` + +and then proceed as given in __Build it__ section from _make_ command. - -1. I am not able to run SBHS with plant-controller block of Sandhi. <br> +`fpm -s dir -t deb -n "sandhi" -v $VERSION_NUMBER -C /tmp/installdir/ -p sandhi-VERSION_ARCH.deb -d "libssl0.9.8 (>= 0)" usr/bin usr/lib` -Mostly you don't have sufficient permissions to access /dev/ttyUSB0 (which is SBHS device node in Ubuntu). To solve this, just add your user to _dialout_ group. - - sudo adduser `whoami` dialout -**Logout User** and check. +`fpm -s dir -t deb -n "sandhi" -v 0.9 -C out/ -p sandhi-VERSION_ARCH.deb -d "git-core autoconf automake make libtool g++ python-dev swig +pkg-config libboost1.48-all-dev libfftw3-dev libcppunit-dev libgsl0-dev +libusb-dev sdcc libsdl1.2-dev python-wxgtk2.8 python-numpy +python-cheetah python-lxml doxygen python-qt4 python-qwt5-qt4 libxi-dev +libqt4-opengl-dev libqwt5-qt4-dev libfontconfig1-dev libxrender-dev" /usr/local/bin /usr/local/include/ /usr/local/lib /usr/local/libexec/ /usr/local/share/ /usr/local/etc/` +----------------
\ No newline at end of file |