Compile rtl_433 on Kali LInux

1,495 views
Skip to first unread message

Roberto Vinciguerra

unread,
Jan 18, 2016, 5:52:39 PM1/18/16
to rtl_433
This is the output when i try to compile rtl_433 on kali linux:


root@kali:~# cd rtl_433/
root@kali:~/rtl_433# mkdir buid
root@kali:~/rtl_433# cd buid
root@kali:~/rtl_433/buid# cmake ../
-- The C compiler identification is GNU 4.7.2
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Build type not specified: defaulting to release.
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") 
-- checking for module 'librtlsdr'
--   package 'librtlsdr' not found
-- librtlsdr not found.
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIBRTLSDR_INCLUDE_DIRS (ADVANCED)
   used as include directory in directory /root/rtl_433
   used as include directory in directory /root/rtl_433/src
   used as include directory in directory /root/rtl_433/src
   used as include directory in directory /root/rtl_433/tests

-- Configuring incomplete, errors occurred!


But rtl_sdr in preinstalled on kali linux, i saw librtlsdr files on usr/lib/i386-linux-gnu.
Anyone had the same problem?

Iluta V

unread,
Jan 19, 2016, 4:36:52 AM1/19/16
to Roberto Vinciguerra, rtl_433
I had mine rtl_433 installed with the latest GNU Radio and with PyBombs (Python Build Overlay Managed Bundle System):
Then you have rtl_433 together with GNU Radio applications and software. :)

It runs on my Ubuntu 15.10 very well, yours should do well also.

I hope it helps!

Sincerely,

Iluta

S

--
You received this message because you are subscribed to the Google Groups "rtl_433" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtl_433+u...@googlegroups.com.
To post to this group, send email to rtl...@googlegroups.com.
Visit this group at https://groups.google.com/group/rtl_433.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rtl_433/fd612e8c-7541-4d7c-888c-25c6bbc3b033%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Eric Harris

unread,
Feb 16, 2016, 4:26:40 PM2/16/16
to rtl_433
I am having this same problem on Kali 2.0. have not found a solution yet. 

Eric Harris

unread,
Feb 16, 2016, 4:45:52 PM2/16/16
to rtl_433
I got it to work right after I posted this. I had to delete the 433 dir 

then 

git clone https://github.com/keenerd/rtl-sdr 
cd rtl-sdr 
mkdir build 
cd build 
cmake ../ 
make 
make install 

then i did this to compile rtl_433: 

git clone https://github.com/merbanan/rtl_433 
cd rtl_433 
mkdir build 
cd build 
cmake ../ 
make 
make install

On Monday, January 18, 2016 at 3:52:39 PM UTC-7, Roberto Vinciguerra wrote:

Robert Terzi

unread,
Feb 16, 2016, 8:16:31 PM2/16/16
to rtl...@googlegroups.com
IIRC, I wound up doing the same thing, namely building and installing keenerd/rtl-sdr, in order to compile on both Ubuntu and Raspian.

I think in both cases there was a package for the rtl-sdr libs (devel), but they lacked the package config bits for CMake to be able to find the libraries/headers.  Rather then try and  figure it out I just built rtl-sdr from keenerd's repo which did the right thing.    (I also have a vague recollection of getting it built using the osmocom rtl-sdr code at some point after having to play with pkg-config.)

It would help if someone contributed build instructions for the various platforms.
--
You received this message because you are subscribed to the Google Groups "rtl_433" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtl_433+u...@googlegroups.com.
To post to this group, send email to rtl...@googlegroups.com.
Visit this group at https://groups.google.com/group/rtl_433.

NiK NIK

unread,
Feb 17, 2016, 6:18:01 AM2/17/16
to rtl_433

You should install librtlsdr-dev (tested a minute ago on kali linux 2.0 64 bit).
Anyway the best way to have rtl-sdr libs installed into your system is by compiling yourself:


git clone git://git.osmocom.org/rtl-sdr.git

cd rtl-sdr

mkdir build

cd build

cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON

make

sudo make install

sudo reboot





The "cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON" command is particularly useful, because it installs particular rules to the system so a normal user can run rtl_433, and also it automatically detachs the "normal" kernel module used by the DVB-T dongle to watch TV.

I doubt that the kali's librtlsdr-dev package has been compiled with those useful options, so if you don't want to compile rtl-sdr by yourself, you will have to disable the "normal" kernel module manually every time you start rtl_433 (or blacklist the kernel module).

Airhead Bit

unread,
Apr 21, 2017, 6:58:37 PM4/21/17
to rtl_433
git clone https://github.com/merbanan/rtl_433 
fails with not git command
Reply all
Reply to author
Forward
0 new messages