Hi All,

Forewarning...
I'm a novice at all this. I am an engineer, but a hardware/system one.
I have very little experience with software and related tools.

I'm attempting to add a driver for the Pico to Pulseview on OSX (12.4,
Monterey). I've managed to get the latest release of Pulseview to
build using the sigrok-native-macosx script (the homebrew approach
described here:
https://sigrok.org/wiki/Mac_OS_X

I'm now attempting to follow these instructions:
https://github.com/pico-coder/sigrok-pico/blob/main/SigrokBuildNotes.md

I cloned libsigrok, then ran autogen.sh, configure, then make. I get
this error from make:

  CXXLD    bindings/ruby/sigrok.bundle
ld: library not found for -lruby.3.1
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [bindings/ruby/sigrok.bundle] Error 1
make: *** [all] Error 2

I have ruby installed with homebrew:

----

dan@Daniels-MacBook-Air libsigrok % brew info ruby
ruby: stable 3.1.2 (bottled), HEAD [keg-only]
Powerful, clean, object-oriented scripting language
https://www.ruby-lang.org/
/usr/local/Cellar/ruby/3.1.2 (15,996 files, 41MB)
  Poured from bottle on 2022-06-07 at 12:02:19
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/ruby.rb
License: Ruby
==> Dependencies
Build: pkg-config ✔
Required: libyaml ✔, openssl@1.1 ✔, readline ✔
==> Options
--HEAD
Install HEAD version
==> Caveats
By default, binaries installed by gem will be placed into:
  /usr/local/lib/ruby/gems/3.1.0/bin

You may want to add this to your PATH.

ruby 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 ruby first in your PATH, run:
  echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.zshrc

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

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

----

I also checked to see which ruby:

dan@Daniels-MacBook-Air libsigrok % which ruby
/usr/local/opt/ruby/bin/ruby
dan@Daniels-MacBook-Air libsigrok % ls -ld /usr/local/opt/ruby
lrwxr-xr-x  1 dan  admin  20 Jun  7 12:02 /usr/local/opt/ruby@ ->
../Cellar/ruby/3.1.2

----

I'm stuck :(. There must be something very basic I'm missing...
I'd be grateful for some help.

I'm also confused by the instructions I'm intending to follow. I think
I understand steps 1-9. But, I'm not quite sure what to do after that
to build pulseview. If I use the script I originally used, I *think*
it'll use the default version of libsigrok (without the new driver).
If someone could be more specific on what I should do, I'd appreciate
that guidance.

Dan


_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to