blob: 788093ff92f97112add57b6ab48e9784baefb035 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
## Getting it
Sandhi, as mentioned earlier, is a free and open-source software, it can be downloaded and distributed freely under GNU GPL V3
### Pre-requisites
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>
*If on Ubuntu 12.04, one can directly install using command*-
sudo apt-get -y install 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 \
python-serial python-matplotlib
_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>
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>
git clone https://github.com/manojgudi/sciscipy-1.0.0.git
cd sciscipy-1.0.0/
sudo ./install
-------------------------------------------------------------------------
### Build it
#### Downloading Source Code
git clone http://github.com/manojgudi/sandhi.git
cd sandhi/
git submodule init
git submodule update
-- UPDATING FROM EXISTING CHECKOUT --
cd sandhi/
git pull origin master
git submodule update
#### Compiling Source Code
cd sandhi/
mkdir build
cd build/
cmake ../
make -j 2
sudo make install
sudo ldconfig
#### Current Build Status [](https://travis-ci.org/gnu-sandhi/sandhi)
### Get Binary
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.
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.
`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`
`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/`
------------
|