# Is LimeSDR mac compatible?

**URL:** <https://discourse.myriadrf.org/t/is-limesdr-mac-compatible/329>\
**Category:** LimeSDR\
**Created:** [9 May 2016 17:56 UTC](https://discourse.myriadrf.org/t/is-limesdr-mac-compatible/329 "2016-05-09T17:56:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![freebil](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@freebil](https://discourse.myriadrf.org/u/freebil)\
**Post date:** [9 May 2016 17:56 UTC](https://discourse.myriadrf.org/t/is-limesdr-mac-compatible/329/1 "2016-05-09T17:56:40Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![joshblum](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/joshblum/32/18_2.png) [@joshblum](https://discourse.myriadrf.org/u/joshblum)\
**Post date:** [9 May 2016 21:03 UTC](https://discourse.myriadrf.org/t/is-limesdr-mac-compatible/329/2 "2016-05-09T21:03:50Z")

</div>

@freebil Yes. LimeSDR should be OSX compatible. Its based around libusb, and I just made the [necessary tweaks](https://github.com/myriadrf/LimeSuite/commit/0b938d84be0a20774ece970b8246a84e63776498) to compile LimeSuite under OSX.

I also created a [homebrew recipe](https://github.com/pothosware/homebrew-pothos/blob/master/limesuite.rb) 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](http://imgur.com/mkEE5HQ)

---

<div class="post-metadata">

**Author:** ![ELLIOTTCABLE](https://avatars.discourse-cdn.com/v4/letter/e/e79b87/32.png) [@ELLIOTTCABLE](https://discourse.myriadrf.org/u/ELLIOTTCABLE)\
**Post date:** [31 August 2017 21:29 UTC](https://discourse.myriadrf.org/t/is-limesdr-mac-compatible/329/4 "2017-08-31T21:29:11Z")

</div>

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

```
brew tap pothosware/homebrew-pothos
brew install limesuite

```

[Here’s the complete error log](https://gist.github.com/ELLIOTTCABLE/fb496947319591f76f7d308676906bdc), but, it’s not promising — I don’t even know where to begin, debugging that configure mess.

Any tips?

---

<div class="post-metadata">

**Author:** ![joshblum](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/joshblum/32/18_2.png) [@joshblum](https://discourse.myriadrf.org/u/joshblum)\
**Post date:** [31 August 2017 21:34 UTC](https://discourse.myriadrf.org/t/is-limesdr-mac-compatible/329/5 "2017-08-31T21:34:25Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jmarcelino](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/jmarcelino/32/265_2.png) [@jmarcelino](https://discourse.myriadrf.org/u/jmarcelino)\
**Post date:** [2 September 2017 21:57 UTC](https://discourse.myriadrf.org/t/is-limesdr-mac-compatible/329/6 "2017-09-02T21:57:01Z")

</div>

I also see an error during building with brew install limesuite

Below is what seems to be the relevant portion (or see [full log](https://gist.github.com/jmarcelino/913d2ed761da1e73ba2c8bcc200bbb3e.js))

```auto
[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.

```

---

<div class="post-metadata">

**Author:** ![ELLIOTTCABLE](https://avatars.discourse-cdn.com/v4/letter/e/e79b87/32.png) [@ELLIOTTCABLE](https://discourse.myriadrf.org/u/ELLIOTTCABLE)\
**Post date:** [2 September 2017 22:04 UTC](https://discourse.myriadrf.org/t/is-limesdr-mac-compatible/329/7 "2017-09-02T22:04:30Z")

</div>

> [@joshblum](#):
>
> Can you post the output for brew install limesuite --verbose, that should tell us what happened.

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](https://gist.github.com/ELLIOTTCABLE/fb496947319591f76f7d308676906bdc).

**Edit 1:** Also probably relevant,

```auto
❯ ~ 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

```

---

<div class="post-metadata">

**Author:** ![joshblum](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/joshblum/32/18_2.png) [@joshblum](https://discourse.myriadrf.org/u/joshblum)\
**Post date:** [3 September 2017 01:53 UTC](https://discourse.myriadrf.org/t/is-limesdr-mac-compatible/329/8 "2017-09-03T01:53:12Z")

</div>

@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!

---

<div class="post-metadata">

**Author:** ![jmarcelino](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/jmarcelino/32/265_2.png) [@jmarcelino](https://discourse.myriadrf.org/u/jmarcelino)\
**Post date:** [3 September 2017 09:20 UTC](https://discourse.myriadrf.org/t/is-limesdr-mac-compatible/329/10 "2017-09-03T09:20:20Z")

</div>

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`
