Coder Social home page Coder Social logo

homebrew-formulae's Introduction

formulae

homebrew taps I maintain

homebrew-formulae's People

Contributors

no111u3 avatar rgov avatar tfcollins avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

rgov guhyak11 imayka

homebrew-formulae's Issues

Trouble building iio-oscilloscope on OS X10.14.6 and 11.4

Hi there,

I'm working at a science center and we are trying to use ADALM-Pluto for some science activities junior high school students. I have massive troubles installing the software and building iio-oscilloscope, I've tried two different machines. At first, I had an error of the type when trying to install both iio-oscilloscope and soapyplutosdr (similar error for both "brews"):

==> Installing iio-oscilloscope from tfcollins/formulae
Error: Formulae found in multiple taps:
* tfcollins/formulae/libiio
* pothosware/pothos/libiio

I had to "brew untap -f pothosware/pothos/libiio"

After untapping I run into problems when using cmake. I'm not really that experienced with any of this, but the cmake command appears to have trouble with something called "gtkdatabox" or the like.

OS X 10.14.6 Machine (I've attached the log).

02make.txt

build failed

  • OS: macOS 10.14.6
  • Homwbrew: 2.1.11

this is the brew install log

$ brew install --HEAD tfcollins/homebrew-formulae/i-i-o-oscilloscope
Updating Homebrew...
==> Auto-updated Homebrew!
Updated Homebrew from ae08b15cb to e37d1d462.
Updated 5 taps (osx-cross/avr, heroku/brew, homebrew/core, homebrew/cask and jeffreywildman/virt-manager).
==> Updated Formulae
cocoapods ✔                                    heroku/brew/heroku
erlang ✔                                       hlint
go ✔                                           istioctl
jeffreywildman/virt-manager/osinfo-db ✔        jena
vim ✔                                          jenkins
youtube-dl ✔                                   jenkins-lts
afl-fuzz                                       jfrog-cli-go
ammonite-repl                                  libomp
angular-cli                                    librealsense
benthos                                        lightgbm
bettercap                                      maxwell
cake                                           micronaut
calicoctl                                      minio
cargo-completion                               osx-cross/avr/avr-gcc
chamber                                        paket
checkstyle                                     php-code-sniffer
cimg                                           presto
coinutils                                      rclone
convox                                         recon-ng
doctl                                          rom-tools
entr                                           serverless
eslint                                         skaffold
evince                                         sonobuoy
exim                                           terraformer
exploitdb                                      terragrunt
folly                                          tflint
fselect                                        topgrade
fwup                                           traefik
ginac                                          ucloud
git-secret                                     wabt
go-bindata                                     wiremock-standalone
godep                                          wskdeploy
goreleaser                                     wtf
gosu                                           yarn
hadoop                                         you-get
hebcal                                         zola
helmfile

==> Tapping tfcollins/formulae
Cloning into '/usr/local/Homebrew/Library/Taps/tfcollins/homebrew-formulae'...
remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 7 (delta 1), reused 5 (delta 0), pack-reused 0
Unpacking objects: 100% (7/7), done.
Tapped 3 formulae (35 files, 28.9KB).
==> Installing i-i-o-oscilloscope from tfcollins/formulae
==> Installing dependencies for tfcollins/formulae/i-i-o-oscilloscope: glib, gtkdatabox, curl, jansson, szip, hdf5 and libmatio
==> Installing tfcollins/formulae/i-i-o-oscilloscope dependency: glib
==> Downloading https://homebrew.bintray.com/bottles/glib-2.62.0_1.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/85/85744e48731ddb3aa62a4bdc0c1331571129d49f2a
######################################################################## 100.0%
==> Pouring glib-2.62.0_1.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/glib/2.62.0_1: 430 files, 15.3MB
==> Installing tfcollins/formulae/i-i-o-oscilloscope dependency: gtkdatabox
==> Downloading https://homebrew.bintray.com/bottles/gtkdatabox-0.9.3.0_2.mojave.bottle.1.tar
######################################################################## 100.0%
==> Pouring gtkdatabox-0.9.3.0_2.mojave.bottle.1.tar.gz
🍺  /usr/local/Cellar/gtkdatabox/0.9.3.0_2: 28 files, 395.3KB
==> Installing tfcollins/formulae/i-i-o-oscilloscope dependency: curl
==> Downloading https://homebrew.bintray.com/bottles/curl-7.66.0.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/40/40b832d7e108407eb3fb1b378163f08ca5b58492bd
######################################################################## 100.0%
==> Pouring curl-7.66.0.mojave.bottle.tar.gz
==> Caveats
curl is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have curl first in your PATH run:
  echo 'export PATH="/usr/local/opt/curl/bin:$PATH"' >> ~/.bash_profile

For compilers to find curl you may need to set:
  export LDFLAGS="-L/usr/local/opt/curl/lib"
  export CPPFLAGS="-I/usr/local/opt/curl/include"

For pkg-config to find curl you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/curl/lib/pkgconfig"


zsh completions have been installed to:
  /usr/local/opt/curl/share/zsh/site-functions
==> Summary
🍺  /usr/local/Cellar/curl/7.66.0: 456 files, 3.2MB
==> Installing tfcollins/formulae/i-i-o-oscilloscope dependency: jansson
==> Downloading https://homebrew.bintray.com/bottles/jansson-2.12.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Pouring jansson-2.12.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/jansson/2.12: 11 files, 157.5KB
==> Installing tfcollins/formulae/i-i-o-oscilloscope dependency: szip
==> Downloading https://homebrew.bintray.com/bottles/szip-2.1.1_1.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Pouring szip-2.1.1_1.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/szip/2.1.1_1: 11 files, 109.4KB
==> Installing tfcollins/formulae/i-i-o-oscilloscope dependency: hdf5
==> Downloading https://homebrew.bintray.com/bottles/hdf5-1.10.5_1.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/28/28ee1944f9b17a50bddbfbc1730d06373efaf2f188
######################################################################## 100.0%
==> Pouring hdf5-1.10.5_1.mojave.bottle.tar.gz
Warning: hdf5 dependency gcc was built with a different C++ standard
library (libstdc++ from clang). This may cause problems at runtime.
🍺  /usr/local/Cellar/hdf5/1.10.5_1: 256 files, 14.6MB
==> Installing tfcollins/formulae/i-i-o-oscilloscope dependency: libmatio
==> Downloading https://homebrew.bintray.com/bottles/libmatio-1.5.17.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/05/057efff5b22a8167a731ff318e4997bbe9d20b0199
######################################################################## 100.0%
==> Pouring libmatio-1.5.17.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/libmatio/1.5.17: 38 files, 875.2KB
==> Installing tfcollins/formulae/i-i-o-oscilloscope --HEAD
==> Cloning https://github.com/analogdevicesinc/iio-oscilloscope.git
Cloning into '/Users/miminashi/Library/Caches/Homebrew/i-i-o-oscilloscope--git'...
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
==> cmake ./CMakeLists.txt -DCMAKE_INSTALL_PREFIX='/usr/local/Cellar/i-i-o-oscilloscope/HEAD-
Last 15 lines from /Users/miminashi/Library/Logs/Homebrew/i-i-o-oscilloscope/01.HEAD-9159e07':
   used as include directory in directory /tmp/i-i-o-oscilloscope-20190930-48997-ec5r4x/plugins
   used as include directory in directory /tmp/i-i-o-oscilloscope-20190930-48997-ec5r4x/plugins
   used as include directory in directory /tmp/i-i-o-oscilloscope-20190930-48997-ec5r4x/plugins
   used as include directory in directory /tmp/i-i-o-oscilloscope-20190930-48997-ec5r4x/plugins
   used as include directory in directory /tmp/i-i-o-oscilloscope-20190930-48997-ec5r4x/plugins
   used as include directory in directory /tmp/i-i-o-oscilloscope-20190930-48997-ec5r4x/plugins
   used as include directory in directory /tmp/i-i-o-oscilloscope-20190930-48997-ec5r4x/plugins
   used as include directory in directory /tmp/i-i-o-oscilloscope-20190930-48997-ec5r4x/plugins
   used as include directory in directory /tmp/i-i-o-oscilloscope-20190930-48997-ec5r4x/plugins
LIBIIO_LIBRARIES
    linked by target "oscmain" in directory /tmp/i-i-o-oscilloscope-20190930-48997-ec5r4x
    linked by target "osc" in directory /tmp/i-i-o-oscilloscope-20190930-48997-ec5r4x

-- Configuring incomplete, errors occurred!
See also "/tmp/i-i-o-oscilloscope-20190930-48997-ec5r4x/CMakeFiles/CMakeOutput.log".

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/tfcollins/homebrew-formulae/issues

Incompatible with GR 3.9

Currently getting this issue while trying to install gr-iio:

==> Installing tfcollins/formulae/gr-iio --HEAD
==> Patching
==> Applying c35a071cb006d5bf1a0416422113b9a45ec96daa.patch
patching file lib/attr_sink_impl.cc
==> python3 -m venv --system-site-packages /usr/local/Cellar/gr-iio/HEAD-abb2816/libexec/venv
==> cmake .. -DPYTHON_EXECUTABLE=/usr/local/Cellar/gr-iio/HEAD-abb2816/libexec/venv/bin/python
Last 15 lines from /Users/mack/Library/Logs/Homebrew/gr-iio/02.cmake:
-- Found BISON: /usr/local/opt/bison/bin/bison (found suitable version "3.8.2", minimum required is "3.0.2") 
-- Found SWIG: /usr/local/bin/swig (found version "4.0.2")  
-- Found PythonLibs: /usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib (found version "3.9.12") 
CMake Error at swig/CMakeLists.txt:36 (include):
  include could not find requested file:

    GrSwig


CMake Error at swig/CMakeLists.txt:47 (GR_SWIG_MAKE):
  Unknown CMake command "GR_SWIG_MAKE".


-- Configuring incomplete, errors occurred!
See also "/tmp/gr-iio-20220330-44921-1l2o63g/build/CMakeFiles/CMakeOutput.log".

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/tfcollins/homebrew-formulae/issues

Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels.

From what I've gathered, it seems like this is likely related to gnuradio 3.9.

libad9361-iio build failed

brew install libad9361-iio failed by

==> Installing tfcollins/sdr/iio-oscilloscope dependency: tfcollins/sdr/libad9361-iio
==> cmake .. -DOSX_PACKAGE=OFF
==> make
Last 15 lines from /Users/nis/Library/Logs/Homebrew/libad9361-iio/02.make:
            snprintf(name, sizeof(name), "altvoltage%d", j);
            ^
/tmp/libad9361-iio-20230809-90214-c6uwyu/libad9361-iio-0.2/ad9361_fmcomms5_phase_sync.c:484:13: note: include the header <stdio.h> or explicitly provide a declaration for 'snprintf'
/tmp/libad9361-iio-20230809-90214-c6uwyu/libad9361-iio-0.2/ad9361_baseband_auto_rate.c:131:9: 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]
        len += snprintf(buf + len, FIR_BUF_SIZE - len, "RX 3 GAIN -6 DEC %d\n", dec);
               ^
/tmp/libad9361-iio-20230809-90214-c6uwyu/libad9361-iio-0.2/ad9361_baseband_auto_rate.c:131:9: note: include the header <stdio.h> or explicitly provide a declaration for 'snprintf'
1 error generated.
1 error generated.

Building on M1 with for GR 3.10

I've installed libiio and libad9361-iio using these formulae.
Then I try building gnuradio 3.10.2.0 using the brew core formula, (with the "ENABLE_GR_IIO" flag added)

It dosen't seem to like libiio for some reason:

ld: can't map file, errno=22 file '/Library/Frameworks/iio.framework' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [gr-iio/lib/libgnuradio-iio.3.10.2.0.dylib] Error 1
make[1]: *** [gr-iio/lib/CMakeFiles/gnuradio-iio.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Any ideas?

EDIT:
Narrowed it down:

timv@shafer lib % /opt/homebrew/Library/Homebrew/shims/mac/super/clang++  -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -O3 -DNDEBUG -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -dynamiclib -Wl,-headerpad_max_install_names -Xlinker -undefined -Xlinker dynamic_lookup -compatibility_version 3.10.2 -current_version 3.10.2 -o libgnuradio-iio.3.10.2.0.dylib -install_name /opt/homebrew/Cellar/gnuradio/3.10.2.0/lib/libgnuradio-iio.3.10.2.dylib "CMakeFiles/gnuradio-iio.dir/attr_sink_impl.cc.o" "CMakeFiles/gnuradio-iio.dir/attr_source_impl.cc.o" "CMakeFiles/gnuradio-iio.dir/attr_updater_impl.cc.o" "CMakeFiles/gnuradio-iio.dir/dds_control_impl.cc.o" "CMakeFiles/gnuradio-iio.dir/device_sink_impl.cc.o" "CMakeFiles/gnuradio-iio.dir/device_source_impl.cc.o" "CMakeFiles/gnuradio-iio.dir/iio_types.cc.o"  -Wl,-rpath,/opt/homebrew/Cellar/gnuradio/3.10.2.0/lib /Library/Frameworks/iio.framework ../../gr-blocks/lib/libgnuradio-blocks.3.10.2.0.dylib ../../gnuradio-runtime/lib/libgnuradio-runtime.3.10.2.0.dylib ../../gnuradio-runtime/lib/pmt/libgnuradio-pmt.3.10.2.0.dylib /opt/homebrew/lib/libboost_program_options-mt.dylib /opt/homebrew/lib/libboost_system-mt.dylib /opt/homebrew/lib/libboost_regex-mt.dylib /opt/homebrew/lib/libboost_thread-mt.dylib /opt/homebrew/lib/libspdlog.1.10.0.dylib /opt/homebrew/lib/libfmt.8.1.1.dylib /opt/homebrew/lib/libgmpxx.dylib /opt/homebrew/lib/libgmp.dylib /opt/homebrew/lib/libvolk.2.5.1.dylib -lm /opt/homebrew/lib/libsndfile.dylib -v
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Target: arm64-apple-darwin21.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
 "/Library/Developer/CommandLineTools/usr/bin/ld" -demangle -lto_library /Library/Developer/CommandLineTools/usr/lib/libLTO.dylib -dynamic -dylib -dylib_compatibility_version 3.10.2 -dylib_current_version 3.10.2 -arch arm64 -dylib_install_name /opt/homebrew/Cellar/gnuradio/3.10.2.0/lib/libgnuradio-iio.3.10.2.dylib -platform_version macos 12.0.0 12.3 -syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -w -o libgnuradio-iio.3.10.2.0.dylib -L/opt/homebrew/opt/libffi/lib -L/opt/homebrew/opt/[email protected]/lib -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/opt/sqlite/lib -L/opt/homebrew/opt/icu4c/lib -L/opt/homebrew/opt/berkeley-db/lib -L/opt/homebrew/opt/openblas/lib -L/opt/homebrew/opt/qt@5/lib -L/opt/homebrew/opt/qwt-qt5/lib -L/opt/homebrew/lib -L/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries -headerpad_max_install_names -undefined dynamic_lookup CMakeFiles/gnuradio-iio.dir/attr_sink_impl.cc.o CMakeFiles/gnuradio-iio.dir/attr_source_impl.cc.o CMakeFiles/gnuradio-iio.dir/attr_updater_impl.cc.o CMakeFiles/gnuradio-iio.dir/dds_control_impl.cc.o CMakeFiles/gnuradio-iio.dir/device_sink_impl.cc.o CMakeFiles/gnuradio-iio.dir/device_source_impl.cc.o CMakeFiles/gnuradio-iio.dir/iio_types.cc.o -rpath /opt/homebrew/Cellar/gnuradio/3.10.2.0/lib /Library/Frameworks/iio.framework ../../gr-blocks/lib/libgnuradio-blocks.3.10.2.0.dylib ../../gnuradio-runtime/lib/libgnuradio-runtime.3.10.2.0.dylib ../../gnuradio-runtime/lib/pmt/libgnuradio-pmt.3.10.2.0.dylib /opt/homebrew/lib/libboost_program_options-mt.dylib /opt/homebrew/lib/libboost_system-mt.dylib /opt/homebrew/lib/libboost_regex-mt.dylib /opt/homebrew/lib/libboost_thread-mt.dylib /opt/homebrew/lib/libspdlog.1.10.0.dylib /opt/homebrew/lib/libfmt.8.1.1.dylib /opt/homebrew/lib/libgmpxx.dylib /opt/homebrew/lib/libgmp.dylib /opt/homebrew/lib/libvolk.2.5.1.dylib -lm /opt/homebrew/lib/libsndfile.dylib -headerpad_max_install_names -lc++ -lSystem /Library/Developer/CommandLineTools/usr/lib/clang/13.1.6/lib/darwin/libclang_rt.osx.a
ld: can't map file, errno=22 file '/Library/Frameworks/iio.framework' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

build failed mac 10.14.5

I have already cloned, used cmake, make, and make install on the pre-reqs lipad9361-iio and libiio, into ~/git-repos/

Using mac mojave 10.14.5

Aarons-MBP:libiio aaronpycraft$ brew install --HEAD tfcollins/homebrew-formulae/i-i-o-oscilloscope
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
No changes to formulae.

==> Installing i-i-o-oscilloscope from tfcollins/formulae
==> Installing dependencies for tfcollins/formulae/i-i-o-oscilloscope: cmake, sqlite, python, libtiff, harfbuzz and curl
==> Installing tfcollins/formulae/i-i-o-oscilloscope dependency: cmake
==> Downloading https://homebrew.bintray.com/bottles/cmake-3.15.5.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/de/ded337f539d87466a83e50c4dee5ccd47356a3a4bc066a0cadbf4c8fc52c7179?__gda__=exp=1573696901~hmac=660b1949d636d89fb24
########################################                                  56.4%
curl: (56) LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60
######################################################################## 100.0%
==> Pouring cmake-3.15.5.mojave.bottle.tar.gz
==> Caveats
Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/cmake
==> Summary
🍺  /usr/local/Cellar/cmake/3.15.5: 5,801 files, 53.4MB
==> Installing tfcollins/formulae/i-i-o-oscilloscope dependency: sqlite
==> Downloading https://homebrew.bintray.com/bottles/sqlite-3.30.1.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/5e/5e6fef2d754e0e4009d502c40ad1846ac46937886b5f3fe89378cb838626d95e?__gda__=exp=1573697458~hmac=0adb2a68fbb68374070
######################################################################## 100.0%
==> Pouring sqlite-3.30.1.mojave.bottle.tar.gz
==> Caveats
sqlite is keg-only, which means it was not symlinked into /usr/local,
because macOS provides an older sqlite3.

If you need to have sqlite first in your PATH run:
  echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> ~/.bash_profile

For compilers to find sqlite you may need to set:
  export LDFLAGS="-L/usr/local/opt/sqlite/lib"
  export CPPFLAGS="-I/usr/local/opt/sqlite/include"

For pkg-config to find sqlite you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/sqlite/lib/pkgconfig"

==> Summary
🍺  /usr/local/Cellar/sqlite/3.30.1: 11 files, 3.9MB
==> Installing tfcollins/formulae/i-i-o-oscilloscope dependency: python
==> Downloading https://homebrew.bintray.com/bottles/python-3.7.5.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/bc/bcbdc3612a10d06facca7ec9499265731d530c8273b1a2dc28f16258d4410552?__gda__=exp=1573697460~hmac=0e0a53e8db41158c0e2
######################################################################## 100.0%
==> Pouring python-3.7.5.mojave.bottle.tar.gz
==> /usr/local/Cellar/python/3.7.5/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python/3.7.5/bin --install-l
==> /usr/local/Cellar/python/3.7.5/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python/3.7.5/bin --install-l
==> /usr/local/Cellar/python/3.7.5/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python/3.7.5/bin --install-l
==> Caveats
Python has been installed as
  /usr/local/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
  /usr/local/opt/python/libexec/bin

If you need Homebrew's Python 2.7 run
  brew install python@2

You can install Python packages with
  pip3 install <package>
They will install into the site-package directory
  /usr/local/lib/python3.7/site-packages

See: https://docs.brew.sh/Homebrew-and-Python
==> Summary
🍺  /usr/local/Cellar/python/3.7.5: 3,972 files, 60.7MB
==> Installing tfcollins/formulae/i-i-o-oscilloscope dependency: libtiff
==> Downloading https://homebrew.bintray.com/bottles/libtiff-4.1.0.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/dd/dd060521aa30fb2f4678c9ebab6362104a9a705d098a90eac4059743c93c8c16?__gda__=exp=1573697471~hmac=2665bb12bac05fb8475
######################################################################## 100.0%
==> Pouring libtiff-4.1.0.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/libtiff/4.1.0: 247 files, 3.6MB
==> Installing tfcollins/formulae/i-i-o-oscilloscope dependency: harfbuzz
==> Downloading https://homebrew.bintray.com/bottles/harfbuzz-2.6.4.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/b3/b3fb0c92dcc1bf0917903ce0adca5d4beffde1fe500e3c12098a48a3708213e0?__gda__=exp=1573697473~hmac=24f27f095e3bfec021a
######################################################################## 100.0%
==> Pouring harfbuzz-2.6.4.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/harfbuzz/2.6.4: 158 files, 10.8MB
==> Installing tfcollins/formulae/i-i-o-oscilloscope dependency: curl
==> Downloading https://homebrew.bintray.com/bottles/curl-7.67.0.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/3e/3e1fa3e2435503c0d67b447a4f20294459f90bc9279890ac80590617fe23657b?__gda__=exp=1573697475~hmac=86ebb576be7d68e1eba
######################################################################## 100.0%
==> Pouring curl-7.67.0.mojave.bottle.tar.gz
==> Caveats
curl is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have curl first in your PATH run:
  echo 'export PATH="/usr/local/opt/curl/bin:$PATH"' >> ~/.bash_profile

For compilers to find curl you may need to set:
  export LDFLAGS="-L/usr/local/opt/curl/lib"
  export CPPFLAGS="-I/usr/local/opt/curl/include"

For pkg-config to find curl you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/curl/lib/pkgconfig"


zsh completions have been installed to:
  /usr/local/opt/curl/share/zsh/site-functions
==> Summary
🍺  /usr/local/Cellar/curl/7.67.0: 457 files, 3.2MB
==> Installing tfcollins/formulae/i-i-o-oscilloscope --HEAD
==> Cloning https://github.com/analogdevicesinc/iio-oscilloscope.git
Updating /Users/aaronpycraft/Library/Caches/Homebrew/i-i-o-oscilloscope--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at 564a5a6 build: Install adi-osc icons
==> cmake ./CMakeLists.txt -DCMAKE_INSTALL_PREFIX='/usr/local/Cellar/i-i-o-oscilloscope/HEAD-564a5a6'
==> make install
Last 15 lines from /Users/aaronpycraft/Library/Logs/Homebrew/i-i-o-oscilloscope/02.make:
-- Installing: /usr/local/Cellar/i-i-o-oscilloscope/HEAD-564a5a6/share/osc/osc256.png
-- Installing: /usr/local/Cellar/i-i-o-oscilloscope/HEAD-564a5a6/share/osc/osc32.png
-- Installing: /usr/local/Cellar/i-i-o-oscilloscope/HEAD-564a5a6/share/osc/osc64.png
-- Installing: /usr/local/Cellar/i-i-o-oscilloscope/HEAD-564a5a6/share/osc/osc_capture.png
-- Installing: /usr/local/Cellar/i-i-o-oscilloscope/HEAD-564a5a6/share/osc/osc_generator.png
-- Installing: /usr/local/Cellar/i-i-o-oscilloscope/HEAD-564a5a6/share/osc/sawtooth.png
-- Installing: /usr/local/Cellar/i-i-o-oscilloscope/HEAD-564a5a6/share/osc/sine.png
-- Installing: /usr/local/Cellar/i-i-o-oscilloscope/HEAD-564a5a6/share/osc/square.png
-- Installing: /usr/local/Cellar/i-i-o-oscilloscope/HEAD-564a5a6/share/osc/triangle.png
CMake Error at cmake_install.cmake:157 (file):
  file cannot create directory: /usr/share/icons/hicolor/16x16/apps.  Maybe
  need administrative privileges.


make: *** [install] Error 1

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/tfcollins/homebrew-formulae/issues
`

not finding iio.h

Hi Travis,

thank you for making this formula for installing iio-oscilloscope available.

unfortunately, I am having trouble running the formula. I am running OSX 11.3.1 and think that everything is current. Below is the output from homebrew that says there is an issue with the installation. In this case it appears to be in finding iio.h.

do you have any thoughts on how I can troubleshoot the issue?

Thank you, Paul

[taiga 734 ] analog_devices : brew install --HEAD tfcollins/homebrew-formulae/iio-oscilloscope
==> Installing iio-oscilloscope from tfcollins/formulae
==> Downloading https://github.com/analogdevicesinc/libad9361-iio/archive/v0.2.tar.gz
Already downloaded: /Users/siqueira/Library/Caches/Homebrew/downloads/21df4020b46564678039f8624df307b6a0496b2f500ad8dc5e08e5d4fd8cf00a--libad9361-iio-0.2.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/szip/manifests/2.1.1_1
Already downloaded: /Users/siqueira/Library/Caches/Homebrew/downloads/9f9b3db3fcab3fb68882ccc2038a29d701f498977476b20f27c1c7cc74ec3d73--szip-2.1.1_1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/szip/blobs/sha256:1779ec8c3312993ef7e22679df6bbcd3adce9db28d3ad98adb54650c018ed294
Already downloaded: /Users/siqueira/Library/Caches/Homebrew/downloads/c0eb9d7b93db68febbb605908d87d63562093643c8b72d646ec06aff0656ea19--szip--2.1.1_1.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/hdf5/manifests/1.12.0_4
Already downloaded: /Users/siqueira/Library/Caches/Homebrew/downloads/8035852e2011c5acfc59a0508c54c616484e640f87cf19e8ee51994a4152b1f3--hdf5-1.12.0_4.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/hdf5/blobs/sha256:3302a30ba82ab91f4027f61ce82c867edbbcbe57dd4ce90ad56b91ecec826f82
Already downloaded: /Users/siqueira/Library/Caches/Homebrew/downloads/34fcf95533a9b266641054f91d5dd1d320f387b87903bd495cef3b7866aef019--hdf5--1.12.0_4.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/libmatio/manifests/1.5.21
Already downloaded: /Users/siqueira/Library/Caches/Homebrew/downloads/6c5cdbc822d33c904108beda6707f3cdad64eceb8b9d1fe669883e514d62e5b2--libmatio-1.5.21.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/libmatio/blobs/sha256:98a891d294f382a85d61c8d57381e02d1ecb0139af46c08335c8f2eaf5727d7d
Already downloaded: /Users/siqueira/Library/Caches/Homebrew/downloads/d31d81865ca540ab95de8f371f694d8c7ed46bbb0ee7fbf7ad51610208b26f2a--libmatio--1.5.21.big_sur.bottle.tar.gz
==> Cloning https://github.com/analogdevicesinc/iio-oscilloscope.git
Updating /Users/siqueira/Library/Caches/Homebrew/iio-oscilloscope--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at f500bb8 plugins/fmcomms11: Add support for the moved NCO frequency channel
==> Installing dependencies for tfcollins/formulae/iio-oscilloscope: libad9361-iio, szip, hdf5 and libmatio
==> Installing tfcollins/formulae/iio-oscilloscope dependency: libad9361-iio
==> cmake .. -DOSX_PACKAGE=OFF
==> make
Last 15 lines from /Users/siqueira/Library/Logs/Homebrew/libad9361-iio/02.make:
/tmp/libad9361-iio-20210524-5420-sl37m0/libad9361-iio-0.2/ad9361_multichip_sync.c:18:10: fatal error: 'iio.h' file not found
#include <iio.h>
         ^~~~~~~
1 error generated.
1 error generated.
make[2]: *** [CMakeFiles/ad9361.dir/ad9361_multichip_sync.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/ad9361.dir/ad9361_baseband_auto_rate.c.o] Error 1
/tmp/libad9361-iio-20210524-5420-sl37m0/libad9361-iio-0.2/ad9361_design_taps.c:18:10: fatal error: 'iio.h' file not found
#include <iio.h>
         ^~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/ad9361.dir/ad9361_design_taps.c.o] Error 1
make[1]: *** [CMakeFiles/ad9361.dir/all] Error 2
make: *** [all] Error 2

open failed in macos 13

After I brew install osc successfully, I meet the GTK version question like what you show about ubuntu20 in your web
image

When I try to brew uninstall gtk+, it goes wrong like the following
image

Unknown CMake command "GR_SWIG_MAKE"

macOS Monterey arm64 (M1) no Rosetta installed. I have installed HoRNDIS and then:

brew install --build-from-source tfcollins/homebrew-formulae/libiio
brew install --build-from-source tfcollins/homebrew-formulae/libad9361-iio
brew install --HEAD tfcollins/homebrew-formulae/gr-iio

The last statement has some errors:

Last 15 lines from /Users/codrut/Library/Logs/Homebrew/gr-iio/02.cmake:
-- Found BISON: /opt/homebrew/opt/bison/bin/bison (found suitable version "3.8.2", minimum required is "3.0.2") 
-- Found SWIG: /opt/homebrew/bin/swig (found version "4.0.2")  
-- Found PythonLibs: /opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib (found version "3.9.13") 
CMake Error at swig/CMakeLists.txt:36 (include):
  include could not find requested file:

    GrSwig


CMake Error at swig/CMakeLists.txt:47 (GR_SWIG_MAKE):
  Unknown CMake command "GR_SWIG_MAKE".


-- Configuring incomplete, errors occurred!
See also "/tmp/gr-iio-20220618-27479-16fjrw6/build/CMakeFiles/CMakeOutput.log".

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/tfcollins/homebrew-formulae/issues

Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels.

Big Sur Build Failure

Hi,
I have been trying to build iio on my macOS big Sur (11.6.2). I was following thread #5 to work around the gtkdatabox issue. I have manually installed gtkdatabox 0.9.3.1 and tried the 'fix-gtk-upgrade' branch. I am stuck at the following error.

$ HOMEBREW_NO_AUTO_UPDATE=1 brew install --HEAD tfcollins/homebrew-formulae/iio-oscilloscope --verbose
==> Downloading https://ghcr.io/v2/homebrew/core/gtkdatabox-prev1/manifests/0.9.3.1_1
/usr/local/Homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/3.3.9\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 11.6.2\)\ curl/7.64.1 --header Accept-Language:\ en --fail --retry 3 --header Accept:\ application/vnd.oci.image.index.v1\+json --header Authorization:\ Bearer\ QQ== --location --remote-time --output /Users/shreejiths/Library/Caches/Homebrew/downloads/23a988604d6c9865b4b038ebd695344d688da691e996115ecc7e361dbcce93f8--gtkdatabox-prev1-0.9.3.1_1.bottle_manifest.json.incomplete https://ghcr.io/v2/homebrew/core/gtkdatabox-prev1/manifests/0.9.3.1_1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 
Error: iio-oscilloscope: Failed to download resource "gtkdatabox-prev1_bottle_manifest"
Download failed: https://ghcr.io/v2/homebrew/core/gtkdatabox-prev1/manifests/0.9.3.1_1
``

I have the following setup
``
brew --version
Homebrew 3.3.9
Homebrew/homebrew-core (git revision 09c4cc6; last commit 2022-01-09)
Homebrew/homebrew-cask (git revision 412fb64; last commit 2022-01-09)
``

Thanks, 
Shreejith

Build failed on Ventura

Hello,

I have the following error:
`==> Installing tfcollins/formulae/iio-oscilloscope dependency: libad9361-iio
==> cmake .. -DOSX_PACKAGE=OFF
==> make
Last 15 lines from /Users/macbookpro/Library/Logs/Homebrew/libad9361-iio/02.make:
1 error generated.
1 error generated.
/tmp/libad9361-iio-20230520-59527-17yjxtm/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-20230520-59527-17yjxtm/libad9361-iio-0.2/ad9361_fmcomms5_phase_sync.c:484:13: note: include the header <stdio.h> or explicitly provide a declaration for 'snprintf'
make[2]: *** [CMakeFiles/ad9361.dir/ad9361_baseband_auto_rate.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
1 error generated.
[ 42%] Building C object CMakeFiles/ad9361.dir/filterdesigner/rtGetNaN.c.o
/usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang -DLIBAD9361_EXPORTS=1 -D_POSIX_C_SOURCE=199309L -Dad9361_EXPORTS -I/tmp/libad9361-iio-20230520-59527-17yjxtm/libad9361-iio-0.2 -I/usr/local/opt/libiio/Frameworks/iio.framework/Headers -fvisibility=hidden -O3 -DNDEBUG -std=c99 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -fPIC -F/usr/local/opt/libiio/Frameworks -MD -MT CMakeFiles/ad9361.dir/filterdesigner/rtGetNaN.c.o -MF CMakeFiles/ad9361.dir/filterdesigner/rtGetNaN.c.o.d -o CMakeFiles/ad9361.dir/filterdesigner/rtGetNaN.c.o -c /tmp/libad9361-iio-20230520-59527-17yjxtm/libad9361-iio-0.2/filterdesigner/rtGetNaN.c
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 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
https://github.com/tfcollins/homebrew-formulae/issues`

status?

Hey,

I recently got a Pluto SDR. In order to get started with Pluto, I would like to poke around with IIOscilloscope. I'm using MacOS Mojave and manage my dependencies with homebrew.

From the Pluto Wiki I understand that libad9361 and libiio have to be installed, before i-i-o-oscilloscope can be installed.

Unfortunately, I'm not able to install any of the libs with your formulas. Basically CMake is not able to sucessfully configure the projects.

Are the formulas still maintained? If so, have you been able to install the formualas?

Thanks,
Tobias

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.