Post Go back to editing

IIO Oscilloscope

Category: Software
Software Version: IIO Osciloscope

Hi , 

I tried to install the IIO Oscilloscope but there was an error in terminal as follows below:

Error: Failed to load cask: ./iio-oscilloscope.rb

Cask 'iio-oscilloscope' is unreadable: wrong constant name #<Class:0x0000000106c4c8e8>

Warning: Treating ./iio-oscilloscope.rb as a formula.

Warning: No available formula with the name "libad9361-iio" (dependency of iio-oscilloscope).

==> Searching for similarly named formulae and casks...

Error: No formulae or casks found for libad9361-iio.

Can you help me? I followed the steps :

git clone -b fix-gtk-upgrade github.com/.../homebrew-formulae.git
cd homebrew-formulae
brew install --build-from-source ./gtkdatabox-prev1.rb
# if necessary: brew link --overwrite gtkdatabox-prev1
brew install --build-from-source ./iio-oscilloscope.rb
  • We're currently seeing some issues with iio-oscilloscope build for macOS. We're looking into it.

  • Hello,

    There is an updated Homebrew formula. Follow these steps to install:

    git clone https://github.com/tfcollins/homebrew-formulae.git -b tfcollins/update-packages

    cd homebrew-formulae

    brew install -f --verbose --build-from-source --fetch-HEAD --HEAD ./iio-oscilloscope.rb

    Beware, for now the URIs on MacOS need to be entered manually, as there is an issue with the scanning of iio devices.

    Let us know if this fixes your issue.

    -- Cristina

  • I followed the steps and it still getting error message below:

    Error: Failed to load cask: ./iio-oscilloscope.rb

    Cask 'iio-oscilloscope' is unreadable: wrong constant name #<Class:0x0000000130824520>

    Warning: Treating ./iio-oscilloscope.rb as a formula.

    Warning: No available formula with the name "libad9361-iio" (dependency of iio-oscilloscope).

    ==> Searching for similarly named formulae and casks...

    Error: No formulae or casks found for libad9361-iio.

    Thank you Cristina! 

  • If you don't have the dependent tap or packages the formulae are available in the same repo. To install the latest:

    <after clone>
    brew install -f --build-from-source ./libiio.rb
    brew install -f --build-from-source ./libad9361-iio.rb
    brew install -f --build-from-source --fetch-HEAD --HEAD ./iio-oscilloscope.rb

    -Travis

  • Thank you Travis! There were 2 erros while downloading as below, is that a problem? Where can I find the OSC executable file? 

    Regarding the Adalm Pluto SDR. How can I install the driver in the Mac Pro? 

    Error: Failed to load cask: ./iio-oscilloscope.rb

    Cask 'iio-oscilloscope' is unreadable: wrong constant name #<Class:0x0000000119e34648>

    Warning: Treating ./iio-oscilloscope.rb as a formula.

    ==> Fetching dependencies for iio-oscilloscope: brotli, libunistring, libidn2, libnghttp2, libssh2, openldap, rtmpdump, curl, gmp, isl, mpfr, libmpc, gcc, hwloc, libevent, pmix, open-mpi, fftw, jansson, libxml2, libglade, libaec, hdf5 and libmatio

    ==> Fetching brotli

    ==> Downloading

    .... (many downloads...) 

    Error: libglade has been disabled because it is not maintained upstream!

  • Hi ADI folks - a student working with PLUTO as part of an ADI/university collaboration is facing a similar issue. Information below. Is this related / is there a fix? Thanks! - Brant

    -------------------------------------------

    Hi! I have a similar issue, however it seems like it is recommended for me to update XCode even though my XCode is the most up to date on my laptop. The errors are shown below, please let me know if there is a solution to this:

    % brew install -f --build-from-source ./libad9361-iio.rb
    Error: Failed to load cask: ./libad9361-iio.rb
    Cask 'libad9361-iio' is unreadable: wrong constant name #<Class:0x00000001070267e8>
    Warning: Treating ./libad9361-iio.rb as a formula.
    ==> Fetching libad9361-iio
    ==> Downloading https://github.com/analogdevicesinc/libad9361-iio/archive/v0.2.tar.gz
    Already downloaded: /Users/..../Library/Caches/Homebrew/downloads/21df4020b46564678039f8624df307b6a0496b2f500ad8dc5e08e5d4fd8cf00a--libad9361-iio-0.2.tar.gz
    Warning: Your Xcode (14.3.1) is outdated.
    Please update to Xcode 15.1 (or delete it).
    Xcode can be updated from the App Store.Warning: A newer Command Line Tools release is available.
    Update them from Software Update in System Settings.If that doesn't show you any updates, run:
    sudo rm -rf /Library/Developer/CommandLineTools
    sudo xcode-select --installAlternatively, manually download them from:
    https://developer.apple.com/download/all/.
    You should download the Command Line Tools for Xcode 15.1.==> cmake .. -DOSX_PACKAGE=OFF
    ==> make
    Last 15 lines from /Users/..../Library/Logs/Homebrew/libad9361-iio/02.make:
    /tmp/libad9361-iio-20240403-25953-hi8z9b/libad9361-iio-0.2/ad9361_baseband_auto_rate.c:131:9/tmp/libad9361-iio-20240403-25953-hi8z9b/libad9361-iio-0.2/ad9361_design_taps.c:241:12: note: include the header <stdio.h> or explicitly provide a declaration for 'snprintf'
    : note: include the header <stdio.h> or explicitly provide a declaration for 'snprintf'
    /tmp/libad9361-iio-20240403-25953-hi8z9b/libad9361-iio-0.2/ad9361_fmcomms5_phase_sync.c:484:13: error: call to undeclared library function 'snprintf' with type 'int (char *, unsigned long, const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
          snprintf(name, sizeof(name), "altvoltage%d", j);
          ^
    /tmp/libad9361-iio-20240403-25953-hi8z9b/libad9361-iio-0.2/ad9361_fmcomms5_phase_sync.c:484:13: note: include the header <stdio.h> or explicitly provide a declaration for 'snprintf'
    1 error generated.
    1 error generated.
    1 error generated.
    make[2]: *** [CMakeFiles/ad9361.dir/ad9361_baseband_auto_rate.c.o] Error 1
    make[2]: *** Waiting for unfinished jobs....
    make[2]: *** [CMakeFiles/ad9361.dir/ad9361_design_taps.c.o] Error 1
    make[2]: *** [CMakeFiles/ad9361.dir/ad9361_fmcomms5_phase_sync.c.o] Error 1
    make[1]: *** [CMakeFiles/ad9361.dir/all] Error 2
    make: *** [all] Error 2Do not report this issue to Homebrew/brew or Homebrew/homebrew-core!Error: Your Xcode (14.3.1) is outdated.
    Please update to Xcode 15.1 (or delete it).
    Xcode can be updated from the App Store.Error: A newer Command Line Tools release is available.
    Update them from Software Update in System Settings.If that doesn't show you any updates, run:
    sudo rm -rf /Library/Developer/CommandLineTools
    sudo xcode-select --installAlternatively, manually download them from:
    https://developer.apple.com/download/all/.
    You should download the Command Line Tools for Xcode 15.1.

    % brew install -f --verbose --build-from-source --fetch-HEAD --HEAD ./iio-oscilloscope.rb
    Error: Failed to load cask: ./iio-oscilloscope.rb
    Cask 'iio-oscilloscope' is unreadable: wrong constant name #<Class:0x0000000106f7e610>
    Warning: Treating ./iio-oscilloscope.rb as a formula.
    Warning: No available formula with the name "libad9361-iio" (dependency of iio-oscilloscope).
    ==> Searching for similarly named formulae and casks...
    Error: No formulae or casks found for libad9361-iio.


    % brew install -f --verbose --build-from-source --fetch-HEAD --HEAD ./iio-oscilloscope.rb
    ==> Downloading https://formulae.brew.sh/api/formula.jws.json
    % Total  % Received % Xferd Average Speed  Time  Time   Time Current
                    Dload Upload  Total  Spent  Left Speed
    0   0  0   0  0   0   0   0 --:--:-- --:--:-- --:--:--   0
    Error: Failed to load cask: ./iio-oscilloscope.rb
    Cask 'iio-oscilloscope' is unreadable: wrong constant name #<Class:0x00000001090fc0a8>
    Warning: Treating ./iio-oscilloscope.rb as a formula.
    Warning: No available formula with the name "libad9361-iio" (dependency of iio-oscilloscope).
    ==> Searching for similarly named formulae and casks...
    ==> Downloading https://formulae.brew.sh/api/cask.jws.json
    % Total  % Received % Xferd Average Speed  Time  Time   Time Current
                    Dload Upload  Total  Spent  Left Speed
    100 1075k 100 1075k  0   0 2610k   0 --:--:-- --:--:-- --:--:-- 2641k
    Error: No formulae or casks found for libad9361-iio.

  • Hello,

    This issue seems unrelated to the initial one reported by this thread. Could you start a new thread with this issue so we can address it separately, please ?

    Thank you,

    --Cristina