| 123 | === Post Build setup === |
| 124 | |
| 125 | Once you have correctly built executables, there are a few modification to be made before you can run the examples. These may all be optional, if you encounter errors when you try to use the executables one of these changes may fix it. |
| 126 | |
| 127 | ==== Create USRP Group ==== |
| 128 | Follow these steps to create a usrp group. This is need to have udev ([http://en.wikipedia.org/wiki/Udev reference]) enumerate the USRP properly. |
| 129 | {{{ |
| 130 | sudo addgroup usrp |
| 131 | sudo addgroup <YOUR_USERNAME> usrp |
| 132 | echo 'ACTION=="add", BUS=="usb", SYSFS{idVendor}=="fffe", SYSFS{idProduct}=="0002", GROUP:="usrp", MODE:="0660"' > tmpfile |
| 133 | sudo chown root.root tmpfile |
| 134 | sudo mv tmpfile /etc/udev/rules.d/10-usrp.rules |
| 135 | }}} |
| 136 | |
| 137 | Reboot the machine after this change. You should see a usrp device in the list of usb devices: |
| 138 | {{{ |
| 139 | node1-1:~# ls -lR /dev/bus/usb | grep usrp |
| 140 | crw-rw---- 1 root usrp 189, 385 Jan 28 14:20 002 |
| 141 | }}} |
| 142 | |
| 143 | ==== Adding PYTHONPATH ==== |
| 144 | This path is needed for some of the examples. (and perhaps your own blocks) |
| 145 | |
| 146 | {{{ |
| 147 | export PYTHONPATH=/usr/local/lib/python2.5/site-packages/gnuradio/ |
| 148 | }}} |
| 149 | |
| 150 | ==== libtool modification ==== |
| 151 | There was a problem with earlier versions of Debian/Ubuntu's ([http://en.wikipedia.org/wiki/GNU_linker linker]). It was resolved with this fix: |
| 152 | {{{ |
| 153 | cp /etc/ld.so.conf /tmp/ld.so.conf |
| 154 | echo /usr/local/lib >> /tmp/ld.so.conf |
| 155 | mv /tmp/ld.so.conf /etc/ld.so.conf |
| 156 | ldconfig |
| 157 | }}} |
| 158 | |
| 159 | You can check the ld.so.conf to make sure that /usr/local/lib/ is included: |
| 160 | {{{ |
| 161 | node1-1:~# more /etc/ld.so.conf |
| 162 | include /etc/ld.so.conf.d/*.conf |
| 163 | ... |
| 164 | /usr/local/lib/ |
| 165 | }}} |
| 166 | |
| 167 | |
| 168 | |
| 169 | |
| 170 | |