carlosonunez / obs-installer-for-apple-silicon

Conveniently build and install OBS from source on your ultra-fast Apple M1 MacBook or Mac
206 stars 22 forks source link

FATAL: This installer only works on Apple M1 Macs #1

Closed willyk0 closed 3 years ago

willyk0 commented 3 years ago

I get error FATAL: This installer only works on Apple M1 Macs on a M1 Macbook Air

this_is_not_an_m1_mac() { test "$(uname)" != "Darwin" || test "$(uname -p)" != "arm64" }

I assume the error is that uname -p returns "arm", not "arm64"

% uname -p arm

carlosonunez commented 3 years ago

Thanks for the issue! Which M1 Mac are you installing it on? On MacBooks, uname -p returns arm64. On Jun 23, 2021, 8:42 AM -0500, willyk0 @.***>, wrote:

I get error FATAL: This installer only works on Apple M1 Macs on a M1 Macbook Air this_is_not_an_m1_mac() { test "$(uname)" != "Darwin" || test "$(uname -p)" != "arm64" } I assume the error is that uname -p returns "arm", not "arm64" % uname -p arm — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

willyk0 commented 3 years ago

Pasting directly from "About this Mac", sorry for the spanish localization (I expect it's enough understandable)

Nombre del modelo: MacBook Air Identificador del modelo: MacBookAir10,1 Chip: Apple M1 Cantidad total de núcleos: 8 (4 de rendimiento y 4 de eficiencia) Memoria: 8 GB Versión del firmware del sistema: 6723.120.36 Versión del cargador del sistema operativo: 6723.120.36

willyk0 commented 3 years ago

BTW, changing "arm64" to "arm" works for me flawlessly.

carlosonunez commented 3 years ago

That's crazy interesting. I'll fix.

carlosonunez commented 3 years ago

Fixed. Closing. Let me know if you encounter any other issues!

mxmrlt commented 3 years ago

I think

this_is_not_an_m1_mac() {
  test "$(uname)" != "Darwin" ||
    (test "$(uname -p)" != "arm64" &&
    test "$(uname -p)" != "arm")
}

would be better.

My MacBook Pro M1 shows "arm" so the test fails.

carlosonunez commented 3 years ago

Thanks for the submission! Mind putting in a quick PR for that? On Jun 23, 2021, 2:30 PM -0500, ethali @.***>, wrote:

I think this_is_not_an_m1_mac() { test "$(uname)" != "Darwin" || (test "$(uname -p)" != "arm64" && test "$(uname -p)" != "arm") } would be better. My MacBook Pro M1 shows "arm" so the test fails. — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.

jensenharris commented 3 years ago

I think

this_is_not_an_m1_mac() {
  test "$(uname)" != "Darwin" ||
    (test "$(uname -p)" != "arm64" &&
    test "$(uname -p)" != "arm")
}

would be better.

My MacBook Pro M1 shows "arm" so the test fails.

Yes, this is the right fix. Currently, the build process short circuits if uname -p is arm

RayPS commented 2 years ago

I still having the same issue.

$ uname Darwin $ uname -p arm

Screenshot 2021-09-07 at 02 09 25@2x

Screenshot 2021-09-07 at 02 11 43@2x

RayPS commented 2 years ago

After bypassing this_is_not_an_m1_mac(), I got this error

OBS_VERSION=27.1.0-rc2 ./install.sh

[Tue Sep  7 02:01:08 CST 2021] INFO: Installing build dependencies
Warning: Treating cmake as a formula. For the cask, use homebrew/cask/cmake
==> Downloading https://download.videolan.org/vlc/3.0.16/macosx/vlc-3.0.16-intel64.dmg
Already downloaded: /Users/ray/Library/Caches/Homebrew/downloads/b28e39f23e2e1663a9a9209a61bd63716e57c8636a6713aa43b7fc3e40320ffd--vlc-3.0.16-intel64.dmg
==> Installing Cask vlc
==> Moving App 'VLC.app' to '/Applications/VLC.app'
==> Linking Binary 'vlc.wrapper.sh' to '/opt/homebrew/bin/vlc'
🍺  vlc was successfully installed!
Warning: akeru-inc/tap/xcnotary 0.4.8 is already installed and up-to-date.
To reinstall 0.4.8, run:
  brew reinstall xcnotary
Warning: cmake 3.21.2 is already installed and up-to-date.
To reinstall 3.21.2, run:
  brew reinstall cmake
Warning: cmocka 1.1.5 is already installed and up-to-date.
To reinstall 1.1.5, run:
  brew reinstall cmocka
Warning: ffmpeg 4.4_2 is already installed and up-to-date.
To reinstall 4.4_2, run:
  brew reinstall ffmpeg
Warning: qt@5 5.15.2 is already installed and up-to-date.
To reinstall 5.15.2, run:
  brew reinstall qt@5
Warning: swig 4.0.2 is already installed and up-to-date.
To reinstall 4.0.2, run:
  brew reinstall swig
Error: Cannot install under Rosetta 2 in ARM default prefix (/opt/homebrew)!
To rerun under ARM use:
    arch -arm64 brew install ...
To install under x86_64, install Homebrew into /usr/local.
[Tue Sep  7 02:01:37 CST 2021] FATAL: Unable to install one or more OBS dependencies. See log above for more details.
carlosonunez commented 2 years ago

Is the shell that you ran this from running in Rosetta mode? uname -m to confirm. On Sep 6, 2021, 13:15 -0500, Ray @.***>, wrote:

After bypassing this_is_not_an_m1_mac(), I got this error OBS_VERSION=27.1.0-rc2 ./install.sh

[Tue Sep 7 02:01:08 CST 2021] INFO: Installing build dependencies

Warning: Treating cmake as a formula. For the cask, use homebrew/cask/cmake

==> Downloading https://download.videolan.org/vlc/3.0.16/macosx/vlc-3.0.16-intel64.dmg

Already downloaded: /Users/ray/Library/Caches/Homebrew/downloads/b28e39f23e2e1663a9a9209a61bd63716e57c8636a6713aa43b7fc3e40320ffd--vlc-3.0.16-intel64.dmg

==> Installing Cask vlc

==> Moving App 'VLC.app' to '/Applications/VLC.app'

==> Linking Binary 'vlc.wrapper.sh' to '/opt/homebrew/bin/vlc'

🍺 vlc was successfully installed!

Warning: akeru-inc/tap/xcnotary 0.4.8 is already installed and up-to-date.

To reinstall 0.4.8, run:

brew reinstall xcnotary

Warning: cmake 3.21.2 is already installed and up-to-date.

To reinstall 3.21.2, run:

brew reinstall cmake

Warning: cmocka 1.1.5 is already installed and up-to-date.

To reinstall 1.1.5, run:

brew reinstall cmocka

Warning: ffmpeg 4.4_2 is already installed and up-to-date.

To reinstall 4.4_2, run:

brew reinstall ffmpeg

Warning: @.*** 5.15.2 is already installed and up-to-date.

To reinstall 5.15.2, run:

brew reinstall @.***

Warning: swig 4.0.2 is already installed and up-to-date.

To reinstall 4.0.2, run:

brew reinstall swig

Error: Cannot install under Rosetta 2 in ARM default prefix (/opt/homebrew)!

To rerun under ARM use:

arch -arm64 brew install ...

To install under x86_64, install Homebrew into /usr/local.

[Tue Sep 7 02:01:37 CST 2021] FATAL: Unable to install one or more OBS dependencies. See log above for more details. — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

RayPS commented 2 years ago

No, I'm using iTerm 2 and zsh

$ uname -m arm64