Hi Klaus,

Sorry for chiming in late here.

Homebrew already has a formula for sigrok, so you can actually just install
the bottled binary or build it using the formula. All of the formulas
should use the latest release version and they support building from source
with the latest version from git. For example, to install the latest
version of  libsigrokdecode from the git master branch, simply do this:

brew install --head -s libsigrokdecode

I realise that this might not be sufficient if you want to hack sigrok
yourself. In that case, you need to set the PKG_CONFIG_PATH environment
variable as Christian pointed out.

Cheers,
Andreas


On Sat, Jan 8, 2022 at 1:06 PM kllei <kl...@arcor.de> wrote:

> Hi Christian,
>
> Thanks for your hint! Strange for me but I am not very much experianced…
>
> I found the Path correction in the sigrok-native-macosx script and added
> libzip with success at least for now. Will go further down the part.
> Seems to be differences in actual versions of packages.
>
> # PKG_CONFIG_PATH will need to point to pkg-config files of Homebrew's
> # keg-only formulae.
> P="$PREFIX/lib/pkgconfig"
> for FORMULA in libffi python@3 "$QTVER" *libzip*; do
>     P="$P:$(brew --prefix "$FORMULA")/lib/pkgconfig“
> done
>
> best regards
> Klaus
>
> Am 07.01.2022 um 21:41 schrieb Christian Eisendle <christ...@eisendle.net
> >:
>
> Hi Klaus,
>
> I guess the issue is that the package config file (libzip.pc) is located
> in the libzip installation folder.
>
> iMac-LAN:macosx klaus$ brew list libzip
> /usr/local/Cellar/libzip/1.8.0_1/bin/zipcmp
> /usr/local/Cellar/libzip/1.8.0_1/bin/zipmerge
> /usr/local/Cellar/libzip/1.8.0_1/bin/ziptool
> /usr/local/Cellar/libzip/1.8.0_1/include/ (2 files)
> /usr/local/Cellar/libzip/1.8.0_1/lib/libzip.5.4.dylib
> /usr/local/Cellar/libzip/1.8.0_1/lib/cmake/ (4 files)
> /usr/local/Cellar/libzip/1.8.0_1/lib/pkgconfig/libzip.pc
> /usr/local/Cellar/libzip/1.8.0_1/lib/ (2 other files)
> /usr/local/Cellar/libzip/1.8.0_1/share/man/ (124 files)
> iMac-LAN:macosx klaus$
>
>
> pkg-config won't find it there without updating the PKG_CONFIG_PATH
> environment variable
> or manually copying the pc file to the system-wide pkg config path.
>
> Regards,
> Christian.
>
>
>
> _______________________________________________
> sigrok-devel mailing list
> sigrok-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sigrok-devel
>
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to