-
Notifications
You must be signed in to change notification settings - Fork 83
Cross compilation
Pieter Noordhuis edited this page Feb 3, 2018
·
1 revision
(these are partial notes)
This assumes you're using Raspbian.
Use apt-get download
to download deb files of the following packages:
- librtlsdr0
- librtlsdr-dev
- libairspy0 (if needed)
- libairspy-dev (if needed)
- libudev1
- libusb-1.0-0
- libusb-1.0-0-dev
Use dpkg-deb --extract
to extract them in the sysroot of your Raspberry Pi toolchain.
Raspbian is based on Debian and has multiarch support. The libraries that you just installed won't be visible to the toolchain linker, since they're extracted in a subdirectory called arm-linux-gnueabihf
(both in /lib
and /usr/lib
). To "fix" this, move all files from this subdirectory to /lib
and /usr/lib
, respectively. Also make sure to update any symlinks they may have installed.