Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Big Sur Build Failure #15

Closed
shreejithshanker opened this issue Jan 10, 2022 · 7 comments
Closed

Big Sur Build Failure #15

shreejithshanker opened this issue Jan 10, 2022 · 7 comments

Comments

@shreejithshanker
Copy link

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
@tfcollins tfcollins changed the title build failed Big Sur Build Failure Jan 10, 2022
@tfcollins
Copy link
Owner

tfcollins commented Jan 10, 2022

I think you are using the upstream gkdatabox which does not function with the current IIO-Scope.

Can you build as follows:

git clone -b fix-gtk-upgrade https://github.com/tfcollins/homebrew-formulae.git
cd homebrew-formulae
brew install --verbose --build-from-source ./gtkdatabox-prev1.rb
# if necessary: brew link --overwrite gtkdatabox-prev1
brew install --verbose --build-from-source ./iio-oscilloscope.rb

@shreejithshanker
Copy link
Author

Thanks, Travis. That makes sense, let me try this and get back to you.

@shreejithshanker
Copy link
Author

Hi Travis,
It worked! Had to add HOMEBREW_NO_AUTO_UPDATE=1 as a prefix since otherwise, brew automatically overwrites the formulae with the latest one. Also had to link it explicitly using the brew link.

On a side note, it does issue an error right at the start
Cask 'iio-oscilloscope' is unreadable: wrong constant name #<Class:0x00007fa8bb132c78>
I hope this is not something to be worries about.

Thanks for the help! .

@tfcollins
Copy link
Owner

I haven't seen this error. Are you just typing "osc" or some other command to launch IIO-Scope?

@shreejithshanker
Copy link
Author

Hi Travis,
This was while using brew install, but despite the error, it builds fine. I was wondering if it points to something.

Best,
Shreejith

@JoeyGlasserCS
Copy link

JoeyGlasserCS commented Nov 8, 2022

How would I do the same steps but for linux? I'm getting the same gtkdatabox error and I'm trying to rebuild from the old gtk file.

I think you are using the upstream gkdatabox which does not function with the current IIO-Scope.

Can you build as follows:

git clone -b fix-gtk-upgrade https://github.com/tfcollins/homebrew-formulae.git
cd homebrew-formulae
brew install --verbose --build-from-source ./gtkdatabox-prev1.rb
# if necessary: brew link --overwrite gtkdatabox-prev1
brew install --verbose --build-from-source ./iio-oscilloscope.rb

@tfcollins
Copy link
Owner

@JoeyGlasserCS Linux isn't really supported. I would just build libgtkdatabox0_0.9.3.1-2 and libgtkdatabox-dev_0.9.3.1-2 from source or find pre-built packages for your OS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants