jopohl / urh

Universal Radio Hacker: Investigate Wireless Protocols Like A Boss
GNU General Public License v3.0
10.85k stars 862 forks source link

Two issues on Linux #554

Closed bluegizmo83 closed 5 years ago

bluegizmo83 commented 5 years ago

Hi, I'm back again lol :)

I just installed URH on my Linux system (Parrot OS), and I have two issues with it so far. I installed it via sudo pip3 install urh, and then also tried updating via pip3 install --upgrade urh.

  1. I'm on version 2.4.0 but I don't see the DC Correction option in the live recording options (it does show up as a filter option after recording though!)
  2. I can't use the Spectrum Analyzer on the Linux install for some reason. As soon as I hit start, URH immediately closes completely. Record Signal still works fine though.
jopohl commented 5 years ago

Welcome back :smile:

I think both of your issues are caused by the same problem:

  1. The DC Correction is only available for devices with native backend enabled
  2. Switching to native backend will most likely also fix the crash

So just go to Edit -> Options -> Device and switch to native backend for your SDR.

bluegizmo83 commented 5 years ago

Thanks! I'm trying to point it to the dir with all the lib files for the sdr's and then hitting rebuild, but it keeps through an error saying "failed to rebuild 5 device extensions", and the log says this:

Found airspy lib. Will compile with native airspy support Found bladeRF lib. Will compile with native bladerf support API version check failed: command 'cc' failed with exit status 1 Detected BLADERF_API_VERSION v0.0 Found hackrf lib. Will compile with native hackrf support Skipping native support for limesdr Found rtlsdr lib. Will compile with native rtlsdr support Found uhd lib. Will compile with native usrp support Skipping native support for sdrplay [1/5] Cythonizing /usr/local/lib/python3.6/dist-packages/urh/dev/native/lib/airspy.pyx [2/5] Cythonizing /usr/local/lib/python3.6/dist-packages/urh/dev/native/lib/bladerf.pyx [3/5] Cythonizing /usr/local/lib/python3.6/dist-packages/urh/dev/native/lib/hackrf.pyx [4/5] Cythonizing /usr/local/lib/python3.6/dist-packages/urh/dev/native/lib/rtlsdr.pyx [5/5] Cythonizing /usr/local/lib/python3.6/dist-packages/urh/dev/native/lib/usrp.pyx running build_ext building 'urh.dev.native.lib.airspy' extension x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -c /usr/local/lib/python3.6/dist-packages/urh/dev/native/lib/airspy.cpp -o /tmp/usr/local/lib/python3.6/dist-packages/urh/dev/native/lib/airspy.o /usr/local/lib/python3.6/dist-packages/urh/dev/native/lib/airspy.cpp:599:10: fatal error: libairspy/airspy.h: No such file or directory

include "libairspy/airspy.h"

      ^~~~~~~~~~~~~~~~~~~~

compilation terminated. warning: urh/dev/native/lib/chackrf.pxd:85:28: 'hackrf_device_list' redeclared error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

jopohl commented 5 years ago

You are missing the airspy.h file. Assuming that you are using ubuntu, did you install the libairspy-dev package?

Edit: Just saw, that you are using Parrot OS. Not sure about that, but in doubt you can simply get the airspy.h file e.g. from here and place it in /usr/include or something like that.

jopohl commented 5 years ago

I am closing here due to missing response. Just drop a comment if you want this issue reopened.