setup_init.sh errors

Discuss KerberosSDR - 4x Coherent RTL-SDR
Post Reply
dr_radar
Posts: 4
Joined: Sat May 23, 2020 12:20 pm

setup_init.sh errors

Post by dr_radar » Sat May 23, 2020 12:24 pm

Hey

I'm setting up the Kerberos on a Ubuntu laptop (18.04 LTS).

I have followed the instructions here https://www.rtl-sdr.com/ksdr/but when running the setup_init.sh file I get the following errors

Code: Select all

Compile C files
gcc -Wall -march=native rtl_daq.c -lpthread -lrtlsdr -o rtl_daq
rtl_daq.c: In function ‘main’:
rtl_daq.c:361:7: warning: unused variable ‘data_ready’ [-Wunused-variable]
   int data_ready = 1;
       ^~~~~~~~~~
rtl_daq.c:340:9: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable]
     int rc;
         ^~
/tmp/ccP7C4hF.o: In function `fifo_read_tf':
rtl_daq.c:(.text+0x302): undefined reference to `rtlsdr_set_gpio'
rtl_daq.c:(.text+0x33d): undefined reference to `rtlsdr_set_gpio'
/tmp/ccP7C4hF.o: In function `read_thread_entry':
rtl_daq.c:(.text+0x42f): undefined reference to `rtlsdr_set_dithering'
collect2: error: ld returned 1 exit status
Makefile:27: recipe for target 'rtl_daq' failed
make: *** [rtl_daq] Error 1
[ INFO ] Set file executation rights
chmod: cannot access '_receiver/C/rtl_daq': No such file or directory
chmod: cannot access '_receiver/C/sim': No such file or directory
chmod: cannot access '_receiver/C/sync': No such file or directory
chmod: cannot access '_receiver/C/gate': No such file or directory

rtlsdrblog
Site Admin
Posts: 2743
Joined: Mon Nov 19, 2012 11:54 pm

Re: setup_init.sh errors

Post by rtlsdrblog » Thu Jun 04, 2020 9:38 am

Is it a fresh install? I suspect that you have some other RTL-SDR drivers already installed on there and it's finding those instead of the modded KerberosSDR RTL-SDR drivers.

Try purging all other RTL-SDR drivers first, then reinstalling the KerberosSDR drivers

sudo apt purge librtlsdr*
sudo rm -rvf /usr/lib/librtlsdr* /usr/include/rtl-sdr* /usr/local/lib/librtlsdr* /usr/local/include/rtl-sdr*

dr_radar
Posts: 4
Joined: Sat May 23, 2020 12:20 pm

Re: setup_init.sh errors

Post by dr_radar » Thu Jun 04, 2020 10:22 am

Hey,

Thanks for those tips. I tried this and re-followed the KerberosSDR install instructions for the drivers then tested sh setup_init.sh and received the following error

Code: Select all

Compile C files
gcc -Wall -march=native rtl_daq.c -lpthread -lrtlsdr -o rtl_daq
rtl_daq.c: In function ‘main’:
rtl_daq.c:361:7: warning: unused variable ‘data_ready’ [-Wunused-variable]
   int data_ready = 1;
       ^~~~~~~~~~
rtl_daq.c:340:9: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable]
     int rc;
         ^~
gcc -Wall -march=native sync.c -lpthread -o sync
gcc -Wall -march=native gate.c -lpthread -o gate
gcc -Wall -march=native sim.c -o sim
[ INFO ] Set file executation rights

dr_radar
Posts: 4
Joined: Sat May 23, 2020 12:20 pm

Re: setup_init.sh errors

Post by dr_radar » Thu Jun 04, 2020 10:34 am

After retrying the uninstall and install procedure with restart I got the same error.

After running the sh setup_init.sh for a second time the output message is now

Code: Select all

Compile C files
make: Nothing to be done for 'all'.
[ INFO ] Set file executation rights
I have tested rtl_test and this seems to run.

When I try the ./run.sh command I get the GUI interface for the Kerberos but nothing happens when I click on "start processing"

Note that the device does work as I have tested on Raspberry Pi which showed the interface working.

rtlsdrblog
Site Admin
Posts: 2743
Joined: Mon Nov 19, 2012 11:54 pm

Re: setup_init.sh errors

Post by rtlsdrblog » Sun Jun 07, 2020 9:43 am

Those were just warnings, not errors. So the install completed successfully.

Edit run.sh and enable the logging. See if there are any runtime errors being generated when you try to click start processing.

Post Reply