Is LimeSDR mac compatible?

Hello. I use macbook pro. I use gqrx with rtl-sdrs without problems. I read that limeSDR is working with gqrx. So, are there drivers for limeSDR to work in mac osx? Thanks.

1 Like

@freebil Yes. LimeSDR should be OSX compatible. Its based around libusb, and I just made the necessary tweaks to compile LimeSuite under OSX.

I also created a homebrew recipe to build LimeSuite through brew. It can be installed with brew install limesuite --HEAD --verbose after adding the tap.

-josh

PS - A screenshot of the LMS7 GUI:
http://imgur.com/mkEE5HQ

2 Likes

Hm. I haven’t had any success with this:

brew tap pothosware/homebrew-pothos
brew install limesuite

Here’s the complete error log, but, it’s not promising — I don’t even know where to begin, debugging that configure mess.

Any tips?

I dont see the actual error, but it looks like it got all the way to building the gui and error’d out near the end.

Can you post the output for brew install limesuite --verbose, that should tell us what happened.

I also see an error during building with brew install limesuite

Below is what seems to be the relevant portion (or see full log)

[ 21%] Building CXX object src/CMakeFiles/LimeSuite.dir/API/qLimeSDR.cpp.o
cd /tmp/limesuite-20170902-25961-1hdnqhv/LimeSuite-17.06.0/builddir/src && /usr/local/Homebrew/Library/Homebrew/shims/super/clang++  -DLIME_DLL -DLIME_DLL_EXPORTS -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -D__WXMAC__ -D__WXOSX_COCOA__ -D__WXOSX__ -D__unix__=1 -I/tmp/limesuite-20170902-25961-1hdnqhv/LimeSuite-17.06.0/src -I/tmp/limesuite-20170902-25961-1hdnqhv/LimeSuite-17.06.0/src/API -I/tmp/limesuite-20170902-25961-1hdnqhv/LimeSuite-17.06.0/src/GFIR -I/tmp/limesuite-20170902-25961-1hdnqhv/LimeSuite-17.06.0/src/protocols -I/tmp/limesuite-20170902-25961-1hdnqhv/LimeSuite-17.06.0/src/ConnectionRegistry -I/tmp/limesuite-20170902-25961-1hdnqhv/LimeSuite-17.06.0/src/lms7002m_mcu -I/tmp/limesuite-20170902-25961-1hdnqhv/LimeSuite-17.06.0/src/ADF4002 -I/tmp/limesuite-20170902-25961-1hdnqhv/LimeSuite-17.06.0/src/Si5351C -I/tmp/limesuite-20170902-25961-1hdnqhv/LimeSuite-17.06.0/src/lms7002m -I/tmp/limesuite-20170902-25961-1hdnqhv/LimeSuite-17.06.0/src/LTEpackets -I/tmp/limesuite-20170902-25961-1hdnqhv/LimeSuite-17.06.0/src/FPGA_common -I/tmp/limesuite-20170902-25961-1hdnqhv/LimeSuite-17.06.0/external/cpp-feather-ini-parser -I/tmp/limesuite-20170902-25961-1hdnqhv/LimeSuite-17.06.0/src/HPM7 -I/tmp/limesuite-20170902-25961-1hdnqhv/LimeSuite-17.06.0/src/kissFFT -I/usr/local/opt/sqlite/include -I/usr/local/include/libusb-1.0 -I/tmp/limesuite-20170902-25961-1hdnqhv/LimeSuite-17.06.0/src/lms7002_wxgui -I/tmp/limesuite-20170902-25961-1hdnqhv/LimeSuite-17.06.0/src/LMS_Programing -I/tmp/limesuite-20170902-25961-1hdnqhv/LimeSuite-17.06.0/src/utilities_gui -I/tmp/limesuite-20170902-25961-1hdnqhv/LimeSuite-17.06.0/src/RFSpark -I/tmp/limesuite-20170902-25961-1hdnqhv/LimeSuite-17.06.0/src/FPGAcontrols_wxgui -I/tmp/limesuite-20170902-25961-1hdnqhv/LimeSuite-17.06.0/src/numericSlider -I/tmp/limesuite-20170902-25961-1hdnqhv/LimeSuite-17.06.0/src/myriad7 -I/tmp/limesuite-20170902-25961-1hdnqhv/LimeSuite-17.06.0/src/fftviewer_wxgui -I/tmp/limesuite-20170902-25961-1hdnqhv/LimeSuite-17.06.0/src/lms7suiteEvents -I/tmp/limesuite-20170902-25961-1hdnqhv/LimeSuite-17.06.0/src/boards_wxgui -isystem /usr/local/lib/wx/include/osx_cocoa-unicode-3.0 -isystem /usr/local/include/wx-3.0  -I/usr/local/include/wx-3.0 -DNDEBUG -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -mmacosx-version-min=10.12 -fPIC   -std=gnu++11 -o CMakeFiles/LimeSuite.dir/API/qLimeSDR.cpp.o -c /tmp/limesuite-20170902-25961-1hdnqhv/LimeSuite-17.06.0/src/API/qLimeSDR.cpp
/tmp/limesuite-20170902-25961-1hdnqhv/LimeSuite-17.06.0/src/API/lms7_api.cpp:736:14: error: ordered comparison between pointer and zero ('float_type *' (aka 'double *') and 'int')
    if (gain < 0)
        ~~~~ ^ ~
/tmp/limesuite-20170902-25961-1hdnqhv/LimeSuite-17.06.0/src/API/lms7_api.cpp:758:14: error: ordered comparison between pointer and zero ('unsigned int *' and 'int')
    if (gain < 0)
        ~~~~ ^ ~
2 errors generated.

Ah, sure. Here’s the relevant bit:

In file included from /tmp/limesuite-20170902-25824-1l83im6/LimeSuite-17.06.0/mcu_program/host_src/main.cpp:1:
/tmp/limesuite-20170902-25824-1l83im6/LimeSuite-17.06.0/mcu_program/../src/ConnectionSTREAM/ConnectionSTREAM.h:24:10: fatal error: 'libusb-1.0/libusb.h' file not found
#include <libusb-1.0/libusb.h>
         ^
1 error generated.
make[2]: *** [mcu_program/CMakeFiles/MCU_TestBench.dir/host_src/main.cpp.o] Error 1

… and the whole log.

Edit 1: Also probably relevant,

❯ ~ brew unlink --dry-run libusb
Would remove:
/usr/local/include/libusb-1.0
/usr/local/lib/libusb-1.0.0.dylib
/usr/local/lib/libusb-1.0.a
/usr/local/lib/libusb-1.0.dylib
/usr/local/lib/pkgconfig/libusb-1.0.pc
/usr/local/share/libusb

❯ ~ ls /usr/local/include/libusb-1.0/libusb.h
-rw-r--r--  1 ec  admin    70K Oct 25  2016 /usr/local/include/libusb-1.0/libusb.h

@jmarcelino I updated the recipe for the recent release tag this week, can you brew update and try again, it may have been fixed since then

@ELLIOTTCABLE I found an include that was pulling in libusb, but I dont think the path was setup to properly include libusb for this particular part of the build. Its fixed in master, but you will probably have to brew install limesuite HEAD since its not in a release yet. Let me know how that goes, thanks!

1 Like

Thanks @joshblum,

I found my problem, I was using the new Xcode-beta toolchain, once I changed back to the old it compiled just fine:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer