pothosware / homebrew-pothos

Homebrew formulas for Pothos and SoapySDR
https://github.com/pothosware/homebrew-pothos/wiki
MIT License
62 stars 17 forks source link

libbladerf cmake errors libusb version #15

Closed cn0xroot closed 6 years ago

cn0xroot commented 7 years ago

Hi ,this is a nice project. But there is some thing error when i install soapybladerf with brew on OSX :

brew install soapybladerf
Error: Another active Homebrew update process is already in progress.
Please wait for it to finish or terminate it to continue.
==> Installing soapybladerf from pothosware/pothos
==> Installing dependencies for pothosware/pothos/soapybladerf: libbladerf
==> Installing pothosware/pothos/soapybladerf dependency: libbladerf
==> Downloading https://github.com/Nuand/bladeRF/archive/2016.06.tar.gz
Already downloaded: /Users/cn0xroot/Library/Caches/Homebrew/libbladerf-2016.06.tar.gz
==> cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/libblad
Last 15 lines from /Users/cn0xroot/Library/Logs/Homebrew/libbladerf/01.cmake:
-- Found Threads: TRUE
-- libbladeRF version: 1.7.2-git-unknown
-- The CXX compiler identification is AppleClang 9.0.0.9000037
-- Check for working CXX compiler: /usr/local/Homebrew/Library/Homebrew/shims/super/clang++
-- Check for working CXX compiler: /usr/local/Homebrew/Library/Homebrew/shims/super/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at misc/udev/CMakeLists.txt:44 (else):
  A duplicate ELSE command was found inside an IF block.

-- Configuring incomplete, errors occurred!
See also "/tmp/libbladerf-20171013-50597-16domwq/bladeRF-2016.06/host/build/CMakeFiles/CMakeOutput.log".

READ THIS: https://docs.brew.sh/Troubleshooting.html

These open issues may also help:
Formulae missing High Sierra bottles https://github.com/Homebrew/homebrew-core/issues/18493
==> Installing soapybladerf from pothosware/pothos
==> Installing dependencies for pothosware/pothos/soapybladerf: libbladerf
==> Installing pothosware/pothos/soapybladerf dependency: libbladerf
[proxychains] Strict chain  ...  127.0.0.1:1086  ...  www.google-analytics.com:443  ...  OK
==> Downloading https://github.com/Nuand/bladeRF/archive/2016.06.tar.gz
Already downloaded: /Users/cn0xroot/Library/Caches/Homebrew/libbladerf-2016.06.tar.gz
==> cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/libblad
Last 15 lines from /Users/cn0xroot/Library/Logs/Homebrew/libbladerf/01.cmake:
-- Looking for pthread_create - found
-- Found Threads: TRUE
CMake Error at libraries/libbladeRF/CMakeLists.txt:225 (message):
  libusb v1.0.18 is required in OS X.  Please update libusb.Detected version:

  1.0.21

-- Configuring incomplete, errors occurred!
See also "/tmp/libbladerf-20171013-51731-35cpif/bladeRF-2016.06/host/build/CMakeFiles/CMakeOutput.log".
brew search libusb
==> Searching local taps...
libusb ✔                                                         libusb-compat ✔
==> Searching taps on GitHub...
==> Searching blacklisted, migrated and deleted formulae...

Can you tell me how to fix it? Thanks.

guruofquality commented 7 years ago

FWIW this tap doesnt manage the bladerf recipe. It looks to be an cmake typo that was acceptable to older cmake versions. I think they fixed it upstream, but I dont see a new brew release tag for this; so maybe the best thing to do is install libbladerf from HEAD.

cn0xroot commented 7 years ago

thanks,i'll try it as you say.

guruofquality commented 6 years ago

not much I can do, hope that worked out