LimeSDRMini experiments, examples and diy documentation.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

279 lines
6.9 KiB

installing limesdr on linux other than ubuntu, windows or osx is no fun. see below why:
install with sudo:
https://github.com/myriadrf/pyLMS7002M/
add testing branch debian (for soapy sdr)
https://serverfault.com/questions/550855/how-to-add-debian-testing-repository-to-apt-get?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qai
sudo apt-get install libsoapysdr-dev
(if needed, remove binutils, this will take 10mins...> sudo apt-get remove binutils)
download deps:
#packages for soapysdr available at myriadrf PPA
sudo add-apt-repository -y ppa:myriadrf/drivers
sudo apt-get update
#install core library and build dependencies
sudo apt-get install git g++ cmake libsqlite3-dev
#install hardware support dependencies
sudo apt-get install libsoapysdr-dev libi2c-dev libusb-1.0-0-dev
#install graphics dependencies
sudo apt-get install libwxgtk3.0-dev freeglut3-dev gnuplot
START HERE:
BUILD / INSTALL SOAPY
dependencies:
$ sudo apt-get install cmake g++ libpython-dev python-numpy swig
get source:
$ git clone https://github.com/pothosware/SoapySDR.git
build:
$ cd SoapySDR
$ mkdir build
$ cd build
$ cmake ..
$ make -j4
$ sudo make install
$ sudo ldconfig (needed on debin systems)
BUILD LIMESUITE
git clone https://github.com/myriadrf/LimeSuite.git
cd LimeSuite
mkdir builddir && cd builddir
cmake ../
make -j4
sudo make install
sudo ldconfig
enable udev rules (wrong path in guide):
cd ../udev-rules
chmod +x install.sh
sudo ./install.sh
now you can run limesuiteguis or limeutil and test soapy!:
$ LimeUtil --find
* [LimeSDR Mini, media=USB 2.0, module=FT601, addr=24607:1027, serial=1D3AC730356F7E]
test:
$ SoapySDRUtil --find
######################################################
## Soapy SDR -- the SDR abstraction library ##
######################################################
Found device 0
addr = 24607:1027
driver = lime
label = LimeSDR Mini [USB 2.0] 1D3AC730356F7E
media = USB 2.0
module = FT601
name = LimeSDR Mini
serial = 1D3AC730356F7E
YES!!!
(what this? https://www.welle.io/devices/soapysdr)
We want the python vna example tho...
UPDATE 30 April - repo code updated to support limesdr mini!
BUT it is obsolete now... they recommend using pyLMS7002MSoapy instead of
https://github.com/myriadrf/pyLMS7002M/
INSTALL pyLMS7002Soapy:
dependencies:
$ sudo pip install matplotlib
$ git clone https://github.com/myriadrf/pyLMS7002Soapy.git
$ cd pyLMS7002Soapy
$ sudo python setup.py install
test:
$ python
$ from pyLMS7002Soapy import *
test2: sna!
cd pyLMS7002Soapy/examples/
$ python measureSNA.py snatest1
works!
GQRX?
from source? https://elhombrequereventodeinformacion.wordpress.com/2016/06/06/install-from-source-gqrx-in-debian-jessie/
deps:
$ apt-get install liblog4cpp5-dev libboost-thread-dev libboost-program-options-dev gnuradio-dev qttools5-dev qttools5-dev-tools libqt5svg5-dev libpulse-dev
build gnradio osmocom:
$ git clone git://git.osmocom.org/gr-osmosdr
$ cd gr-osmosdr/
$ mkdir build
$ cd build/
$ cmake ../
$ make
$ sudo make install
$ sudo ldconfig
build gqrx:
$ git clone https://github.com/csete/gqrx.git
$ cd gqrx
$ mkdir build
$ cd build
$ qmake ..
cp /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 /usr/lib/qt5/bin/uic/libQt5Core.so.5
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/
$ make
DOESNT WORK:=====
$ sudo apt-get install qt5-default
$ sudo apt-get install gqrx-sdr
libQt5Core.so.5 => not found
libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007f885dbc3000)
libQt5Core.so.5 => not found
libQt5Core.so.5 => not found
libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.
ln -s /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 /lib/x86_64-linux-gnu/libQt5Core.so.5=====
====old=== have not tried this with working soapy yet...
cd pyLMS7002M
sudo python setup.py install
cd examples/basic
python findLimeSDR.py
Searching for LimeSDR...
LimeSDR not found
maybe hav eto install:
$ cd pyLMS7002M/cyLimeLib/linux/
$ sudo python setup.py install
===old===
UPDATE 18 April - mariocannistra ported pyLMS7002M to python 3 and is supposse dto be working with limesdrMINI?
src:
Test:
$ git clone https://github.com/mariocannistra/pyLMS7002M.git
$ cd pyLMS7002M
$ sudo apt-get update
$ sudo apt-get -y install python3-pip
$ sudo python3 setup.py install
$ pip3 install numpy
$ python3 example/basic/findLimeSDR.py
$ LimeSDR not found
wehh no joy, vna example also doesnt work with limesdrMINI
($ python3 measureVNA.py test1)
output of cmake:
builddir git:(master) ✗ cmake ../
CMake Deprecation Warning at CMakeLists.txt:13 (cmake_policy):
The OLD behavior for policy CMP0015 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- Enabling native optimizations
-- Found libusb-1.0:
-- - Includes: /usr/include/libusb-1.0
-- - Libraries: /usr/lib/x86_64-linux-gnu/libusb-1.0.so
-- USB_INCLUDE_DIRS: /usr/include/libusb-1.0
-- USB_LIBRARIES: /usr/lib/x86_64-linux-gnu/libusb-1.0.so
-- USB_INCLUDE_DIRS: /usr/include/libusb-1.0
-- USB_LIBRARIES: /usr/lib/x86_64-linux-gnu/libusb-1.0.so
-- wxWidgets_DEFINITIONS: _FILE_OFFSET_BITS=64;WXUSINGDLL;__WXGTK__
-- wxWidgets_INCLUDE_DIRS: /usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0;/usr/include/wx-3.0
-- wxWidgets_LIBRARIES: -L/usr/lib/x86_64-linux-gnu;-pthread;;;-lwx_gtk2u_richtext-3.0;-lwx_baseu_xml-3.0;-lwx_gtk2u_html-3.0;-lwx_gtk2u_xrc-3.0;-lwx_gtk2u_adv-3.0;-lwx_gtk2u_aui-3.0;-lwx_gtk2u_core-3.0;-lwx_baseu-3.0;-lwx_gtk2u_gl-3.0
-- Found Gnuplot: /usr/bin/gnuplot (found version "")
-- GNUPlot Found
--
-- ######################################################
-- ## LimeSuite enabled features
-- ######################################################
--
* LimeSuiteHeaders, The lime suite headers
* LimeSuiteLibrary, The lime suite library
* ConnectionFX3, FX3 Connection support
* ConnectionFTDI, FTDI Connection support
* ConnectionXillybus, PCIE Xillybus Connection support
* LimeSuiteGUI, GUI Application for LimeSuite
* LimeSuiteExamples, LimeSuite library API examples
* LimeUtilCommand, Command line device discovery utility
* SoapySDRLMS7, SoapySDR bindings for LMS7
* LimeSuiteDesktop, LimeSuite freedesktop integration
-- ######################################################
-- ## LimeSuite disabled features
-- ######################################################
--
* ConnectionEVB7COM, EVB+COM Connection support
* ConnectionSTREAM_UNITE, STREAM+UNITE Connection support
* LimeSuiteDocAPI, LMS API Doxygen documentation
-- Install prefix: /usr/local
-- Build timestamp: 2018-04-16
-- Lime Suite version: 18.04.0-g12bfe538
-- ABI/so version: 18.04-1
-- Configuring done
-- Generating done
-- Build files have been written to: /home/then/Downloads/LimeSuite/builddir