Skip to content

Instantly share code, notes, and snippets.

@pdp7
Created May 2, 2013 16:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pdp7/5503462 to your computer and use it in GitHub Desktop.
Save pdp7/5503462 to your computer and use it in GitHub Desktop.
Install rtlizer on BBB
^R
(reverse-i-search)`sudo s': ^Cdo su -
afustini@lappy486:/opt/SQuirreLSQLClient$ sudo nmap -sP 192.168.0.0/24
[sudo] password for afustini:
Starting Nmap 5.21 ( http://nmap.org ) at 2013-05-02 11:14 CDT
Nmap scan report for 192.168.0.1
Host is up (0.0026s latency).
MAC Address: C8:3A:35:0F:AD:F0 (Tenda Technology Co.)
Nmap scan report for 192.168.0.100
Host is up (0.022s latency).
MAC Address: 14:7D:C5:18:3C:30 (Unknown)
Nmap scan report for 192.168.0.101
Host is up.
Nmap scan report for 192.168.0.104
Host is up (0.0064s latency).
MAC Address: BC:6A:29:79:ED:8B (Unknown)
Nmap done: 256 IP addresses (4 hosts up) scanned in 4.56 seconds
afustini@lappy486:/opt/SQuirreLSQLClient$ ssh root@192.168.0.104
The authenticity of host '192.168.0.104 (192.168.0.104)' can't be established.
RSA key fingerprint is de:be:e5:a3:0e:a1:cf:8d:c3:79:20:68:da:37:e5:20.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.0.104' (RSA) to the list of known hosts.
root@192.168.0.104's password:
root@beaglebone:~# ls
Desktop beaglebutan button.py~ newstache pyusb stache tweetstache.js tweetstache.py
root@beaglebone:~# ls -ltar
total 176
-rw------- 1 root root 4620 Jan 1 00:00 .ICEauthority
drwxr-xr-x 23 root root 4096 Jan 1 00:00 .
dr-x------ 2 root root 0 Jan 1 00:00 .gvfs
drwx------ 2 root root 4096 Jan 1 00:00 .pulse
drwx------ 4 root root 4096 Jan 1 00:00 .gconf
-rw------- 1 root root 2000 Jan 1 00:00 .xsession-errors
drwxr-xr-x 3 root root 4096 Jan 1 00:01 .local
-rw------- 1 root root 256 Jan 1 00:01 .pulse-cookie
drwxr-xr-x 2 root root 4096 Jan 1 00:01 .nautilus
drwxr-xr-x 4 root root 4096 Jan 1 00:01 .config
-rw------- 1 root root 41 Jan 1 2000 .lesshst
drwxr-xr-x 2 root root 4096 Jan 1 2000 .gstreamer-0.10
drwx------ 2 root root 4096 Jan 1 2000 .cache
-rw-r--r-- 1 root root 24 Jan 1 2000 .bashrc~
-rw-r--r-- 1 root root 24 Jan 1 2000 .bashrc
drwx------ 7 root root 4096 Jan 1 2000 .gnome2
-rw------- 1 root root 974 Jan 1 2000 .python-history
drwx------ 3 root root 4096 Jan 1 2000 .thumbnails
drwxr-xr-x 2 root root 4096 Jan 1 2000 Desktop
drwx------ 3 root root 4096 Jan 1 2000 .pki
drwx------ 3 root root 4096 Jan 1 2000 .chromium
-rw------- 1 root root 1702 Jan 1 2000 .xsession-errors.old
-rw-r--r-- 1 root root 56 Jan 1 2000 .vimrc~
-rw-r--r-- 1 root root 56 Jan 1 2000 .vimrc
-rw-r--r-- 1 root root 1336 Jan 1 2000 button.py~
drwx------ 2 root root 4096 Jan 1 2000 .ssh
-rw-r--r-- 1 root root 60 Jan 1 2000 .gitconfig
drwx------ 4 root root 4096 Jan 1 2000 .mozilla
drwx------ 2 root root 4096 Jan 1 2000 .AbiSuite
-rw------- 1 root root 9871 Jan 1 2000 .viminfo
drwxr-xr-x 6 root root 4096 Jan 1 2000 stache
-rw------- 1 root root 6340 Jan 1 2000 .bash_history
-rw------- 1 root root 56 Jan 1 2000 .Xauthority
drwxr-xr-x 7 root root 4096 Apr 20 2013 pyusb
drwxr-xr-x 3 root root 4096 Apr 20 2013 newstache
drwx------ 3 root root 4096 Apr 20 2013 .dbus
drwxr-sr-x 5 root root 4096 Apr 21 2013 ..
-rw-r--r-- 1 root root 6675 Apr 21 2013 tweetstache.js
-rw-r--r-- 1 root root 390 Apr 21 2013 tweetstache.py
drwxr-xr-x 3 root root 4096 Apr 21 2013 beaglebutan
root@beaglebone:~# find |grep sdr
root@beaglebone:~# cd stache/
root@beaglebone:~/stache# ls
Makefile beaglestache.png node_modules runstache stache-mask.png stache.cpp stache.desktop tweetstache.js
README.mediawiki lbpcascade_frontalface.xml presentations stache stache-robclark.png stache.cpp~ tmp tweetstache.js~
root@beaglebone:~/stache# logout
Connection to 192.168.0.104 closed.
afustini@lappy486:/opt/SQuirreLSQLClient$ ssh root@192.168.0.104
root@192.168.0.104's password:
root@beaglebone:~# uname -a
Linux beaglebone 3.8.6 #1 SMP Sat Apr 13 09:10:52 CEST 2013 armv7l GNU/Linux
root@beaglebone:~# opkg update
Downloading http://feeds.angstrom-distribution.org/feeds/v2012.12/ipk/eglibc/armv7a-vfp-neon/base/Packages.gz.
Inflating http://feeds.angstrom-distribution.org/feeds/v2012.12/ipk/eglibc/armv7a-vfp-neon/base/Packages.gz.
Updated list of available packages in /var/lib/opkg/lists/base.
Downloading http://feeds.angstrom-distribution.org/feeds/v2012.12/ipk/eglibc/armv7a-vfp-neon/machine/beaglebone/Packages.gz.
Inflating http://feeds.angstrom-distribution.org/feeds/v2012.12/ipk/eglibc/armv7a-vfp-neon/machine/beaglebone/Packages.gz.
Updated list of available packages in /var/lib/opkg/lists/beaglebone.
Downloading http://feeds.angstrom-distribution.org/feeds/v2012.12/ipk/eglibc/armv7a-vfp-neon/debug/Packages.gz.
Inflating http://feeds.angstrom-distribution.org/feeds/v2012.12/ipk/eglibc/armv7a-vfp-neon/debug/Packages.gz.
Updated list of available packages in /var/lib/opkg/lists/debug.
Downloading http://feeds.angstrom-distribution.org/feeds/v2012.12/ipk/eglibc/armv7a-vfp-neon/gstreamer/Packages.gz.
Inflating http://feeds.angstrom-distribution.org/feeds/v2012.12/ipk/eglibc/armv7a-vfp-neon/gstreamer/Packages.gz.
Updated list of available packages in /var/lib/opkg/lists/gstreamer.
Downloading http://feeds.angstrom-distribution.org/feeds/v2012.12/ipk/eglibc/all/Packages.gz.
Inflating http://feeds.angstrom-distribution.org/feeds/v2012.12/ipk/eglibc/all/Packages.gz.
Updated list of available packages in /var/lib/opkg/lists/no-arch.
Downloading http://feeds.angstrom-distribution.org/feeds/v2012.12/ipk/eglibc/armv7a-vfp-neon/perl/Packages.gz.
Inflating http://feeds.angstrom-distribution.org/feeds/v2012.12/ipk/eglibc/armv7a-vfp-neon/perl/Packages.gz.
Updated list of available packages in /var/lib/opkg/lists/perl.
Downloading http://feeds.angstrom-distribution.org/feeds/v2012.12/ipk/eglibc/armv7a-vfp-neon/python/Packages.gz.
Inflating http://feeds.angstrom-distribution.org/feeds/v2012.12/ipk/eglibc/armv7a-vfp-neon/python/Packages.gz.
Updated list of available packages in /var/lib/opkg/lists/python.
root@beaglebone:~# ~
-bash: /home/root: Is a directory
root@beaglebone:~# opkg install libusb-1.0-dev
Installing libusb-1.0-dev (1.0.9-r1.2) to root...
Downloading http://feeds.angstrom-distribution.org/feeds/v2012.12/ipk/eglibc/armv7a-vfp-neon/base/libusb-1.0-dev_1.0.9-r1.2_armv7a-vfp-neon.ipk.
Configuring libusb-1.0-dev.
root@beaglebone:~#
root@beaglebone:~# git clone git://git.osmocom.org/rtl-sdr.git
Cloning into rtl-sdr...
remote: Counting objects: 1236, done.
remote: Compressing objects: 100% (330/330), done.
remote: Total 1236 (delta 902), reused 1227 (delta 898)
Receiving objects: 100% (1236/1236), 272.03 KiB | 143 KiB/s, done.
Resolving deltas: 100% (902/902), done.
root@beaglebone:~# cd rtl-sdr/
root@beaglebone:~/rtl-sdr# autoreconf -i
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
configure.ac:14: installing './config.guess'
configure.ac:14: installing './config.sub'
configure.ac:5: installing './install-sh'
configure.ac:5: installing './missing'
src/Makefile.am: installing './depcomp'
root@beaglebone:~/rtl-sdr# PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/lib" ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make sets $(MAKE)... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... armv7l-unknown-linux-gnueabi
checking host system type... armv7l-unknown-linux-gnueabi
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/arm-angstrom-linux-gnueabi/bin/ld
checking if the linker (/usr/arm-angstrom-linux-gnueabi/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 32768
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert armv7l-unknown-linux-gnueabi file names to armv7l-unknown-linux-gnueabi format... func_convert_file_noop
checking how to convert armv7l-unknown-linux-gnueabi file names to toolchain format... func_convert_file_noop
checking for /usr/arm-angstrom-linux-gnueabi/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/arm-angstrom-linux-gnueabi/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBUSB... yes
checking for doxygen... false
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_create in -lpthread... yes
checking for atan2 in -lm... yes
checking for sqrt in -lm... yes
checking for clock_gettime in -lrt... yes
checking if gcc supports -fvisibility=hidden... yes
checking whether compiler understands -Wall... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating librtlsdr.pc
config.status: creating include/Makefile
config.status: creating src/Makefile
config.status: creating Makefile
config.status: creating Doxyfile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
root@beaglebone:~/rtl-sdr# ls
AUTHORS Doxyfile.in README config.guess config.status depcomp librtlsdr.pc m4 stamp-h1
CMakeLists.txt Makefile aclocal.m4 config.h config.sub git-version-gen librtlsdr.pc.in missing
COPYING Makefile.am autom4te.cache config.h.in configure include libtool rtl-sdr.rules
Doxyfile Makefile.in cmake config.log configure.ac install-sh ltmain.sh src
root@beaglebone:~/rtl-sdr# make && make install
echo UNKNOWN > .version-t && mv .version-t .version
make all-recursive
make[1]: Entering directory `/home/root/rtl-sdr'
Making all in include
make[2]: Entering directory `/home/root/rtl-sdr/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/root/rtl-sdr/include'
Making all in src
make[2]: Entering directory `/home/root/rtl-sdr/src'
CC librtlsdr.lo
^Cmake[2]: *** [librtlsdr.lo] Error 1
make[1]: *** [all-recursive] Interrupt
make: *** [all] Interrupt
root@beaglebone:~/rtl-sdr# ls
AUTHORS Doxyfile.in README config.guess config.status depcomp librtlsdr.pc m4 stamp-h1
CMakeLists.txt Makefile aclocal.m4 config.h config.sub git-version-gen librtlsdr.pc.in missing
COPYING Makefile.am autom4te.cache config.h.in configure include libtool rtl-sdr.rules
Doxyfile Makefile.in cmake config.log configure.ac install-sh ltmain.sh src
root@beaglebone:~/rtl-sdr# date
Sat Jan 1 00:11:15 UTC 2000
root@beaglebone:~/rtl-sdr# ntpdate pool.ntp.org
2 May 16:24:21 ntpdate[3402]: step time server 66.175.209.17 offset 420826372.192040 sec
root@beaglebone:~/rtl-sdr# make && make install && ldconfig
make all-recursive
make[1]: Entering directory `/home/root/rtl-sdr'
Making all in include
make[2]: Entering directory `/home/root/rtl-sdr/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/root/rtl-sdr/include'
Making all in src
make[2]: Entering directory `/home/root/rtl-sdr/src'
CC librtlsdr.lo
CC tuner_e4k.lo
CC tuner_fc0012.lo
CC tuner_fc0013.lo
CC tuner_fc2580.lo
CC tuner_r820t.lo
CCLD librtlsdr.la
CC rtl_sdr.o
CCLD rtl_sdr
CC rtl_tcp.o
CCLD rtl_tcp
CC rtl_test.o
CCLD rtl_test
CC rtl_fm.o
CCLD rtl_fm
CC rtl_eeprom.o
CCLD rtl_eeprom
CC rtl_adsb.o
CCLD rtl_adsb
make[2]: Leaving directory `/home/root/rtl-sdr/src'
make[2]: Entering directory `/home/root/rtl-sdr'
make[2]: Leaving directory `/home/root/rtl-sdr'
make[1]: Leaving directory `/home/root/rtl-sdr'
make install-recursive
make[1]: Entering directory `/home/root/rtl-sdr'
Making install in include
make[2]: Entering directory `/home/root/rtl-sdr/include'
make[3]: Entering directory `/home/root/rtl-sdr/include'
make[3]: Nothing to be done for `install-exec-am'.
/bin/mkdir -p '/usr/local/include'
/usr/bin/install -c -m 644 rtl-sdr.h rtl-sdr_export.h '/usr/local/include'
make[3]: Leaving directory `/home/root/rtl-sdr/include'
make[2]: Leaving directory `/home/root/rtl-sdr/include'
Making install in src
make[2]: Entering directory `/home/root/rtl-sdr/src'
make[3]: Entering directory `/home/root/rtl-sdr/src'
/bin/mkdir -p '/usr/local/lib'
/bin/sh ../libtool --mode=install /usr/bin/install -c librtlsdr.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/librtlsdr.so.0.0.0 /usr/local/lib/librtlsdr.so.0.0.0
libtool: install: (cd /usr/local/lib && { ln -s -f librtlsdr.so.0.0.0 librtlsdr.so.0 || { rm -f librtlsdr.so.0 && ln -s librtlsdr.so.0.0.0 librtlsdr.so.0; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f librtlsdr.so.0.0.0 librtlsdr.so || { rm -f librtlsdr.so && ln -s librtlsdr.so.0.0.0 librtlsdr.so; }; })
libtool: install: /usr/bin/install -c .libs/librtlsdr.lai /usr/local/lib/librtlsdr.la
libtool: install: /usr/bin/install -c .libs/librtlsdr.a /usr/local/lib/librtlsdr.a
libtool: install: chmod 644 /usr/local/lib/librtlsdr.a
libtool: install: ranlib /usr/local/lib/librtlsdr.a
libtool: finish: PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/bin/mkdir -p '/usr/local/bin'
/bin/sh ../libtool --mode=install /usr/bin/install -c rtl_sdr rtl_tcp rtl_test rtl_fm rtl_eeprom rtl_adsb '/usr/local/bin'
libtool: install: /usr/bin/install -c .libs/rtl_sdr /usr/local/bin/rtl_sdr
libtool: install: /usr/bin/install -c .libs/rtl_tcp /usr/local/bin/rtl_tcp
libtool: install: /usr/bin/install -c .libs/rtl_test /usr/local/bin/rtl_test
libtool: install: /usr/bin/install -c .libs/rtl_fm /usr/local/bin/rtl_fm
libtool: install: /usr/bin/install -c .libs/rtl_eeprom /usr/local/bin/rtl_eeprom
libtool: install: /usr/bin/install -c .libs/rtl_adsb /usr/local/bin/rtl_adsb
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/root/rtl-sdr/src'
make[2]: Leaving directory `/home/root/rtl-sdr/src'
make[2]: Entering directory `/home/root/rtl-sdr'
make[3]: Entering directory `/home/root/rtl-sdr'
make[3]: Nothing to be done for `install-exec-am'.
/bin/mkdir -p '/usr/local/lib/pkgconfig'
/usr/bin/install -c -m 644 librtlsdr.pc '/usr/local/lib/pkgconfig'
make install-data-hook
make[4]: Entering directory `/home/root/rtl-sdr'
make[4]: Nothing to be done for `install-data-hook'.
make[4]: Leaving directory `/home/root/rtl-sdr'
make[3]: Leaving directory `/home/root/rtl-sdr'
make[2]: Leaving directory `/home/root/rtl-sdr'
make[1]: Leaving directory `/home/root/rtl-sdr'
root@beaglebone:~/rtl-sdr# ldconfig
root@beaglebone:~/rtl-sdr# git clone https://github.com/csete/rtlizer.git
Cloning into rtlizer...
error: while accessing https://github.com/csete/rtlizer.git/info/refs
fatal: HTTP request failed
root@beaglebone:~/rtl-sdr# git clone git://github.com/csete/rtlizer.git
Cloning into rtlizer...
remote: Counting objects: 25, done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 25 (delta 7), reused 25 (delta 7)
Receiving objects: 100% (25/25), 14.20 KiB, done.
Resolving deltas: 100% (7/7), done.
root@beaglebone:~/rtl-sdr# cd rtlizer/
root@beaglebone:~/rtl-sdr/rtlizer# ./build-target
.git/ README.md build kiss_fft.c rtlizer.c
.gitignore _kiss_fft_guts.h build-target kiss_fft.h rtlizer.service
root@beaglebone:~/rtl-sdr/rtlizer# ./build-target
Package librtlsdr was not found in the pkg-config search path.
Perhaps you should add the directory containing `librtlsdr.pc'
to the PKG_CONFIG_PATH environment variable
No package 'librtlsdr' found
rtlizer.c:22:19: fatal error: cairo.h: No such file or directory
compilation terminated.
root@beaglebone:~/rtl-sdr/rtlizer# LD_LIBRARY_PATH=/usr/local/lib ./build-target
Package librtlsdr was not found in the pkg-config search path.
Perhaps you should add the directory containing `librtlsdr.pc'
to the PKG_CONFIG_PATH environment variable
No package 'librtlsdr' found
rtlizer.c:22:19: fatal error: cairo.h: No such file or directory
compilation terminated.
root@beaglebone:~/rtl-sdr/rtlizer# PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/lib" ./build-target
Package librtlsdr was not found in the pkg-config search path.
Perhaps you should add the directory containing `librtlsdr.pc'
to the PKG_CONFIG_PATH environment variable
No package 'librtlsdr' found
rtlizer.c:22:19: fatal error: cairo.h: No such file or directory
compilation terminated.
root@beaglebone:~/rtl-sdr/rtlizer# PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/lib:/usr/local/lib" ./build-target
Package librtlsdr was not found in the pkg-config search path.
Perhaps you should add the directory containing `librtlsdr.pc'
to the PKG_CONFIG_PATH environment variable
No package 'librtlsdr' found
rtlizer.c:22:19: fatal error: cairo.h: No such file or directory
compilation terminated.
root@beaglebone:~/rtl-sdr/rtlizer# PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/lib:.." ../ ./build-target
.git/ COPYING Makefile.in config.guess config.sub include/ ltmain.sh src/
.gitignore Doxyfile README config.h configure install-sh m4/ stamp-h1
.version Doxyfile.in aclocal.m4 config.h.in configure.ac librtlsdr.pc missing
AUTHORS Makefile autom4te.cache/ config.log depcomp librtlsdr.pc.in rtl-sdr.rules
CMakeLists.txt Makefile.am cmake/ config.status git-version-gen libtool rtlizer/
root@beaglebone:~/rtl-sdr/rtlizer# PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/lib:.." ../ ./build-target
.git/ COPYING Makefile.in config.guess config.sub include/ ltmain.sh src/
.gitignore Doxyfile README config.h configure install-sh m4/ stamp-h1
.version Doxyfile.in aclocal.m4 config.h.in configure.ac librtlsdr.pc missing
AUTHORS Makefile autom4te.cache/ config.log depcomp librtlsdr.pc.in rtl-sdr.rules
CMakeLists.txt Makefile.am cmake/ config.status git-version-gen libtool rtlizer/
root@beaglebone:~/rtl-sdr/rtlizer# PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/lib:~/rtl-sdr" ./build-target
Package librtlsdr was not found in the pkg-config search path.
Perhaps you should add the directory containing `librtlsdr.pc'
to the PKG_CONFIG_PATH environment variable
No package 'librtlsdr' found
rtlizer.c:22:19: fatal error: cairo.h: No such file or directory
compilation terminated.
root@beaglebone:~/rtl-sdr/rtlizer#
root@beaglebone:~/rtl-sdr/rtlizer# PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/lib:/home/$USER/rtl-sdr" ./build-target
root@beaglebone:~/rtl-sdr/rtlizer# LD_LIBRARY_PATH=/usr/local/lib/
librtlsdr.a librtlsdr.la librtlsdr.so librtlsdr.so.0 librtlsdr.so.0.0.0 pkgconfig/
root@beaglebone:~/rtl-sdr/rtlizer# LD_LIBRARY_PATH=/usr/local/lib/
librtlsdr.a librtlsdr.la librtlsdr.so librtlsdr.so.0 librtlsdr.so.0.0.0 pkgconfig/
root@beaglebone:~/rtl-sdr/rtlizer# LD_LIBRARY_PATH="/usr/local/lib/:${LD_LIBRARY_PATH}" ./rtlizer
rtlizer rtlizer.c rtlizer.service
root@beaglebone:~/rtl-sdr/rtlizer# LD_LIBRARY_PATH="/usr/local/lib/:${LD_LIBRARY_PATH}" ./rtlizer
rtlizer rtlizer.c rtlizer.service
root@beaglebone:~/rtl-sdr/rtlizer# LD_LIBRARY_PATH="/usr/local/lib/:${LD_LIBRARY_PATH}" ./rtlizer
(rtlizer:4644): Gtk-WARNING **: cannot open display:
root@beaglebone:~/rtl-sdr/rtlizer# cat > run_rtlizer.sh
#!/bin/bash
LD_LIBRARY_PATH="/usr/local/lib/:${LD_LIBRARY_PATH}" ./rtlizer
root@beaglebone:~/rtl-sdr/rtlizer# chmod 755 ./run_rtlizer.sh
root@beaglebone:~/rtl-sdr/rtlizer# ./run_rtlizer.sh
(rtlizer:4648): Gtk-WARNING **: cannot open display:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment