|
A new version of the website is under development, powered by MediaWiki! You can already use it here. | |||||||||||
|
Install GNU Radio with cygwin The installation of the GNU radio software in a windows environment with cygwin is described in this page:1. Cygwin 1.1. Download cygwin Cygwin is a free software that runs on Windows and emulate a Linux environment. The software can be found here.1.2. Packages selection When the installation of cygwin starts (or by starting again the setup programme), the package to install/remove/update can be chosed:
2. Installation of additionnal librairies The following librairies also need to be installed, but are not available as cygwin package. You need to download them and install them manually under cygwin.2.1. Installation of FFTW Download the source archive here (select version 3.1.2).Copy the archive in the directory /usr/src, and use the following commands:
cd /usr/src
tar zxf fftw-3.1.2.tar.gz cd fftw-3.1.2 ./configure --enable-float --enable-sse --enable-3dnow --enable-shared --disable-static make (Note that this step takes can be long) make install 2.2. Installation of wxPython You first need to update the configuration of python:Edit the file /usr/lib/python2.5/distutils/cygwinccompiler.py and change the string "(\d+\.\d+(\.\d+)*)"to "(\d+\.\d+(\.(\d+))?([ab](\d+))?)" in three places. Download the wxWidgets and wxPython source code here and copy the archive to folder /usr/scr.
cd /usr/src
tar -jxf wxPython-src-2.8.8.1.tar.bz2 cd wxPython-src-2.8.8.1 mkdir bld cd bld ../configure --with-msw At this point, you need to edit the file bld/lib/wx/include/msw-ansi-release-2.8/wx/setup.h to add the line #define wxUSE_DATEPICKCTRL_GENERIC 1 after the line #define wxUSE_DATEPICKCTRL 1 After that, go on the installation of wxPython:
make
Test the installation with commands: make -C contrib/src/stc make -C contrib/src/gizmos make install make -C contrib/src/stc install make -C contrib/src/gizmos install mv /usr/local/lib/cygwx*.dll /usr/local/bin cd ../wxPython python setup.py build_ext --inplace WXPORT=msw COMPILER=cygwin BUILD_GLCANVAS=0 UNICODE=0 python setup.py install WXPORT=msw COMPILER=cygwin BUILD_GLCANVAS=0 UNICODE=0
cd demo
To finish, you need to tell python where to find wxPython. You can therefore use the following command: python demo.py
export PYTHONPATH=/usr/lib/python2.5/site-packages
You can add this line into the file /etc/profile. Otherwise you will need to write it again each time you want to use GNURadio.
2.3. Installation of NumPy Download the source of NumPy here. As previously, copy the archive to /usr/src/.
cd /usr/src
tar zxf numpy-1.1.0.tar.gz cd numpy-1.1.0 python setup.py install 2.4. Installation of SDCC SDCC can be installed thanks to a windows binary distribution. You can hence download sdcc-2.6.0-setup.exe and launch the install program as a windows software. To check of all went perfectly, you can try the command:
which sdcc
If a PATH is returned, the install process has well worked (otherwise try to close and restart cygwin).
3. Installation of GNU Radio To finish, you need to install the GNU Radio software and to install the USRP driver. The source version can be download from here.In the directory of your choice, decompress the archive:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
To install the USRP driver, you can check this page. tar zxf gnuradio-3.1.3.tar.gz cd gnuradio-3.1.3 ./configure --with-boost-include-dir=/usr/include/boost-1_33_1 make make install Everything should work now ! You can test our first GNU Radio scheme. 4. Troubleshooting 4.1. Library issue If you have the error:can't import gr or can't import gunradio when you execute python script, you need to check that the gnuradio library is in your python path. To do that, you can do (at the cygwin prompt):
python
and check if the path where GNU Radio is installed is in this list (probably /usr/local/lib/python2.5/site-packages).
If not, edit your file /etc/profile, and add the lines (near the beginning of the file)
import sys; sys.path
PYTHONPATH=/usr/local/lib/python2.5/site-packages
export PYTHONPATH 4.2. USRP not found If you get the message:unable to find USRP #0 despite you are sure it is correctly plugged, and you have tried to launch your script twice, you don't have the correct drivers installed. See this page. |
|||||||||||
| About | Contact | Site map | Support | ||||||||||||