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
Feature Request: M1 build for macOS #469
Comments
I've no problem adding support for M1 chips, but afaik, github environment runs on x86_64, and not sure how to cross compile to M1. Also, I'll be not able to test it because I haven't a M1 MacBook, so I'll keep supporting x86_64 until homebrew remove the support for it, and then, if nobody take the lead of Mac development, I'll just remove Mac support.
Yes, as minor as buying a 1300 USD MacBook 😐 |
Actual user testing will depend on implicated humans being available, and we should take your comment as a request for volunteers. At the same time, it is possible to cross compile, using Intel CPUs. I looked into this for another project, but if I remember it was XCode based. Found it: simonguest/quick-camera#21 The only thing I can see right now as a possible blocker is needing to upgrade the project to Qt6. |
Take it and multiply by 1e6. |
Saw that the project has a .cirrus.yml in the root. Does this project currently uses Cirrus CI? They now offering m1 mac build environment for public projects. I tried to modify the existing .cirrus.yml for m1 build environment and modify for current build.sh for m1 in my fork:
Then program can then start with the akvirtualcamera plugin compiled on the m1 too, but i did not test many other features. If such approach is considered acceptable, I can see if i can polish the method further and submit a pull request. Thanks. |
@gandergo So basically no code changes were required?
This changes won't affect the build in FreeBSD, right? because I remember Cirrus was very limited for free builds.
Their are using the --deep flag, is this flag necessary? if so it can be added here. Also , thanks! |
@hipersayanX sorry for my late reply. Have been away last week.
Yes, I only changed those build configurations. But I only tried some features like using it with the M1 build of virtual camera.
The Mac M1 build can be defined as a separate build task like here. From the Cirrus CI doc here, it should not affect the existing limits for the builds of FreeBSD.
Yes, I think this flag is necessary. I did try adding this flag during the build as in here, but it does not work and Mac on M1 still refuses to open the binary, unless I self-sign the binary again locally after the build. I still have not found out the cause on why this local re-signing is necessary. |
It is what it is 🤷♂️ , to make a binary work for other users, the binary must be code signed, and for code signing you must register with an Apple ID and pay for the service, me as many other FOSS developers won't waste their time and money on that, most FOSS developers don't make enough money to care about such things. |
So what is the latest - can we use this on M1 Macs yes or no? |
At this point having someone try building it on an M* Mac would be good and then identify any issues. @rcoenen if you are able to try building and documenting any build or run issues, I think that would be useful starting point. Also there are now M1 runners and Pi compatible ARM runners:
Contributions to fix this up would be useful. Myself, I don't have access to an ARM based Mac right now, to test locally. Edit: Taking a quick look, but don't have much time. Seeing if this works out as a good reference: |
I was about to write an answer here but at the end I decided to create an issue webcamoid/WebcamoidIssues#60.
Me too and don't expecting to have one in the short time, not even in long time. |
Well, I've tried but
So I reached a dead point with this issue. Here are the results. |
I haven’t been able to contribute much recently due to day job. |
I will try with Cirrus later. |
And there you have, Webcamoid packages for the ARM based Macs, but can't test it so not sure if works or not. |
did not work for me on macbook air m1. i guess its a code signing thing:
so i tried this ...but it didnt help. webcamoid.txt <--- crash report |
@boli maybe leaving it unsigned by default would help? the other option would be contacting with the guy maintaining the homebrew formulae and tell him to compile straight from the sources instead of downloading it from the binary, that way users will be able to install Webcamoid from homebrew. I can't do nothing more beside that, I can't even test Webcamoid in Mac anymore, so now the development is on Mac community hands only. |
The source code compile fine and should be able to work fine in Mac, but binary packages won't be provided anymore. |
Why, @hipersayanX? |
@RokeJulianLockhart read webcamoid/WebcamoidIssues#60, Webcamoid has $0 financial support, it's absolutely impossible for me to pay for code signing or buy a Mac, I had not any other option. |
good day gentlemen, i will be glad to support compile and sign the code, if you can guide me through the the binary files |
@abibars the documentation for code signing is here (I can't help you there because I never done that), the certificate can be bought in the sites listed here. |
This feature request is simply to have support for ARM build targets, for macOS.
I did search through the issues and also running 'file' against the main binary in the package suggests the target is still only x86_64. It is possible that I missed something in my search.
Given that there is already support for Android and Raspberry Pi (based on this), I would imagine the necessary adjustments would be minor?
BTW I do see that QT Creator does support 'Apple Silicon': https://www.qt.io/blog/qt-on-apple-silicon , though only from Qt 6.2 onwards, which is now released: https://www.qt.io/product/qt6
Depends on webcamoid/WebcamoidIssues#47
The text was updated successfully, but these errors were encountered: