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

Mac M1 version #2223

Closed
ghost opened this issue Dec 3, 2021 · 22 comments · Fixed by #2476
Closed

Mac M1 version #2223

ghost opened this issue Dec 3, 2021 · 22 comments · Fixed by #2476
Assignees
Labels
Enhancement Request Or feature requests. Open-ended requests are better suited for discussions.

Comments

@ghost
Copy link

ghost commented Dec 3, 2021

Hi

I have a MacBook Pro M1 having a M1 ARM processor.
I can't find a version of audacity for my Mac. The intel version doesn't do anything (it doesn't start). I have no Intel processor, that's all I know. It's the Apple M1 processor I have. Mac OS is latest version too.

Is there somebody who can provide a version?

@crsib
Copy link
Contributor

crsib commented Dec 3, 2021

Itel version runs just fine for me. Do you have Rosetta 2 installed?

@ghost
Copy link
Author

ghost commented Dec 4, 2021

Sorry i'm not an expert.
What are you talking about?

I just tried audacity intel version but it doesn't do anything.

@LWinterberg
Copy link
Member

Rosetta 2 is a program that allows Intel programs to run on M1 macs: https://support.apple.com/en-us/HT211861

@LWinterberg LWinterberg added the Enhancement Request Or feature requests. Open-ended requests are better suited for discussions. label Dec 5, 2021
@andrew-jolley
Copy link

I agree that the Intel version works on M1, but an Apple Silicon or Universal version would improve performance even more

@foxt
Copy link

foxt commented Dec 12, 2021

Using Audacity on my M1 laptop runs at 100% cpu scrolling around, playing audio and the UI runs at 3 frames per second.

@Ein-Tim
Copy link

Ein-Tim commented Dec 13, 2021

I support this, especially exporting could be much faster if the app would be optimized for M1 Macs.

@crsib
Copy link
Contributor

crsib commented Dec 13, 2021

Using Audacity on my M1 laptop runs at 100% cpu scrolling around, playing audio and the UI runs at 3 frames per second.

This is an issue that I'm working on right now. I'm afraid it is not related to Rosetta and won't be fixed by ARM build.

We do plan on adding ARM builds anyway :-)

@Ein-Tim
Copy link

Ein-Tim commented Dec 13, 2021

@crsib

Okay, thanks for your kind & fast response! Appreciate your work!

@andrew-jolley
Copy link

@crsib ok thank you. That’d be great to see soon!

@taxilian
Copy link

For those unaware, apps run in rosetta 2 -- while amazingly performant -- still use meaningfully more battery and cpu than those running native arm.

That said, are there things that those of us in the community with development experience and m1 macs can do to help?

@EETagent
Copy link

EETagent commented Dec 26, 2021

Snímek obrazovky 2021-12-26 v 19 58 06

Snímek obrazovky 2021-12-26 v 20 00 44

I just compiled latest Audacity from a source and it works great so far natively on Apple Silicon.
Everything for ARM64 support is already in place.

Steps for those who want to try before official release

cmake -DCMAKE_BUILD_TYPE=Release -Daudacity_use_mad="off" -Daudacity_use_id3tag=off ..

In cmake-proxies/cmake-modules/AudacityDependencies.cmake
replacelist( APPEND settings "arch=x86_64" ) list( APPEND settings ENV "CONAN_CMAKE_SYSTEM_PROCESSOR=x86_64")
with armv8

In cmake-proxies/libsbsms/CMakeLists.txt set( ENABLE_SSE NO)
In cmake-proxies/libsoxr/CMakeLists.txt delete SIMD
In lib-src/libsoxr/src/util32s.c delete SIMD

Edit: Forgot to write, in CMakeLists, replace CMAKE_OSX_ARCHITECTURES with arm64, better to use this branch #2343

@SteveDaulton
Copy link
Member

I just compiled latest Audacity from a source and it works great so far natively on Apple Silicon.

Can you quantify the performance benefit?

@jacop5
Copy link

jacop5 commented Dec 27, 2021

I just compiled latest Audacity from a source and it works great so far natively on Apple Silicon.
Everything for ARM64 support is already in place.

I tried doing all your steps @EETagent but XCode just doesn't build it in the end...
Schermata 2021-12-27 alle 15 01 04

It seems like it tries to build x86 things but fails... I don't know since I am not a a programmer and I need this for school...

@EETagent
Copy link

EETagent commented Dec 28, 2021

I do not have Xcode installed, nor Rosseta 2, so i can't comment on that or Intel build performance, used Unix Makefiles generator for building

https://send.vis.ee/download/b0ffe22ebd4f508e/#M95jVCRPSFQSxQqgQaLzcQ

If the application's launch is completely broken, and doesn't even bring up an unknown developer's window, you'll need to codesign it yourself

Snímek obrazovky 2021-12-28 v 10 17 58

xattr -cr /Applications/Audacity.app

codesign --force --deep --preserve-metadata=entitlements,requirements,flags,runtime --sign - "/Applications/Audacity.app/Contents/MacOS/Audacity"

codesign --force --deep --preserve-metadata=entitlements,requirements,flags,runtime --sign - "/Applications/Audacity.app/Contents/MacOS/Wrapper"

@jacop5
Copy link

jacop5 commented Dec 28, 2021

Amazing! Thanks a lot!
I can't use FFmpeg for some reason though.

@EETagent
Copy link

EETagent commented Dec 28, 2021

Amazing! Thanks a lot!
I can't use FFmpeg for some reason though.

image

image

You can compile FFmpeg yourself and then link Audacity against your libavcodec dynamic library from settings, FFmpeg exports works fine from my testing

https://ffmpeg.org/releases/ffmpeg-4.3.1.tar.xz 4.3.1 works for me, master doesn't, I haven't tested another versions or ffmpeg from homebrew

@jacop5
Copy link

jacop5 commented Dec 28, 2021

You can compile FFmpeg yourself and then link Audacity against your libavcodec dynamic library from settings, FFmpeg exports works fine from my testing
https://ffmpeg.org/releases/ffmpeg-4.3.1.tar.xz 4.3.1 works for me, master doesn't, I haven't tested another versions or ffmpeg from homebrew

Great, I'll let you know as soon as I get it working

@jacop5
Copy link

jacop5 commented Dec 28, 2021

I managed to get it working by using the ffmpeg version I had previously installed via Homebrew by pointing to /opt/homebrew/Cellar/ffmpeg/4.4.1_3/lib/libavcodec.58.134.100.dylib.

@Ein-Tim
Copy link

Ein-Tim commented Dec 28, 2021

@danielktdoranie & @jacop5

Did you see #2223 (comment)?

@LWinterberg
Copy link
Member

Please refrain from adding endless +1 comments. ARM support is planned and +1 comments won't make it go any faster.

@jacop5
Copy link

jacop5 commented Dec 28, 2021

@danielktdoranie & @jacop5

Did you see #2223 (comment)?

Yes, I did. But since Audacity is really popular and M1 macs have been out for a while I was expecting to find an official build... and most of all, I expected it to work without lagging

But I found a workaround for the Rosetta build

@danielktdoranie
Copy link

@danielktdoranie & @jacop5

Did you see #2223 (comment)?

Yep. Poster says “it’s coming” so is next Christmas. Should already be done.

@audacity audacity locked and limited conversation to collaborators Dec 28, 2021
@audacity audacity deleted a comment from danielktdoranie Dec 28, 2021
@audacity audacity deleted a comment from danielktdoranie Dec 28, 2021
@audacity audacity deleted a comment from jacop5 Dec 28, 2021
@audacity audacity deleted a comment from danielktdoranie Dec 28, 2021
@audacity audacity deleted a comment from danielktdoranie Dec 28, 2021
@audacity audacity unlocked this conversation Jan 11, 2022
@crsib crsib mentioned this issue Jan 12, 2022
6 tasks
@crsib crsib mentioned this issue Jan 25, 2022
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Request Or feature requests. Open-ended requests are better suited for discussions.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants