-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
Standalone Binary for MacOS just like Windows #3235
Comments
@Genxster1998 in contrast to scrcpy:
How do you know that Wormhole for Mac is using scrcpy source at core if there is a core difference to begin with? Can you please share links regarding your claim to follow and read? (at least their Mac app "only" weighs 124 MB, and their current Android app from October 14, 2021 only 6.8 MB) |
@LeeBinder I meant with technology idea ... |
@ Romain I am sorry to see what you just found out. Did they infringe upon the Apache license you have filed scrcpy under as per that section in your ReadMe? I don't see any official mention of scrcpy anywhere throughout their website. Their Google Pay Store's page discloses their full address (in UK). @Genxster1998 good job, you have sensitive detective whiskers! I'm not a dev so even if I looked at the source code, I wouldn't be able to tell the exact digital magic Romain is using for scrcpy. Sure it's doing some live runtime injection into Android components via adb, otherwise it wouldn't perform, but like Romain states in the ReadMe:
@rom1v would it be of any help if you had a chance to run macOS - would that enable you to compile all the components for a stand-alone package for Mac only containing scrcpy itself + the necessary dependencies (binaries, dylds, headers etc.) analog to the nicely small Windows zip package? |
@Genxster1998 thanks to neverpanic's detailed yet brief instructions, we can now build the stand-alone ourselves - it's really super-easy, see here and ff 👍 I have scrcpy stand-alone running perfectly in macOS Catalina :) |
sound that it's already to support Standalone Binary for MacOS? |
scrcpy for macOS |
@shuosiw, scrcpy v2.0 for macOS. P.S. |
@Coool zsh: bad CPU type in executable: ./scrcpy ,pls support Apple silicon m1&m2,pls update,thx |
@Coool can you tell me , how to build a standalone binary for macOS(Apple silicon m1&m2)? |
Please update to v2.2 or refer to the provided tutorial for instructions. Thank you very much. |
Please update to v2.4 or refer to the provided tutorial for instructions. Thank you very much. |
For anyone looking to build the standalone binary themselves, here is a quick build script that I confirmed on an arm64 macOS. |
Hi @muvaf Thank you for the condensed simplifiedscript. Even when I run it on my Intel Mac right form the "root" of my user account's home directory ~, I get:
I do have meson installed:
meson also installed the latest nasm and ninja as deps, so that can't be it, either. Changing
Why does it complain with build directory None. Any idea? |
Hi @muvaf Thank you for the condensed simplifiedscript. Even when I run it on my Intel Mac right form the "root" of my user account's home directory ~, I get:
I do have the latest meson release installed:
meson also installed the latest nasm and ninja as deps. cmake is installed, too (not sure it that's even needed)
so none of that can't be it, either. Changing
|
@LeeBinder You need to clone this repo, copy the script into it and run it. The meson.build it's looking for is at the top level of this repo. |
Refs #5306 (we need a GitHub Actions script for macOS). |
Error:
meson-log.txt - click to expandMain binary: /usr/local/opt/python@3.13/bin/python3.13
Build Options: -Db_staticpic=true -Db_lto=true -Dportable=true -Dcompile_server=false -Dprebuilt_server=prebuilt/scrcpy-server-v2.7 -Dc_args=-I/Users/lee/deps-static/libusb-install/include -Dbuildtype=release -Dstrip=True
Python system: Darwin
The Meson build system
Version: 1.6.0
Source dir: /Users/lee
Build dir: /Users/lee/build-macos-static
Build type: native build
meson.build:1:0: ERROR: Unknown options: "compile_server, portable, prebuilt_server" Can you share the files(s) that need changes and the correct working lines, please? |
@LeeBinder You don't need to copy cd ~/scrcpy-master
chmod +x build.sh
./build.sh |
ah OK - YES, now it ran all the way through, and scrcpy is working just fine 💯. Thank you @muvaf - well done 👍 Do you have any idea that this means? Do you get this warning, too?
|
Please see #5515 and help for the macOS static build. |
Please test the latest macOS binary here: #5515 |
Static genuine/ original build by Romain now also for new Macs with Apple Silicon AArch64 (M*) chip, with builds for Intel Macs still in the works here. Latest v.3.0 as of today Su. Nov. 23, 2024 at https://github.com/Genymobile/scrcpy/releases/tag/v3.0 |
@LeeBinder Latest is the official release now 😉 |
Ah OK - congrats, Romain 👍 However, the zip should correctly be labeled |
Yes, I know, same for Linux. I'll change when there will be more than 1 target released 😉 |
Here I mentioned |
OK, I see. |
Its very deterrent that MacOS users have to install a pathetic package manager which itself cost 3-4GB storage and take immense time to update repo like Homebrew , Macports to install scrcpy .
Is it not going to get solved #1733
Please Close it if its not possible at all .
Others are cashing it out like paid software Wormhole for mac performing same thing essentially using scrcpy source at core .
The text was updated successfully, but these errors were encountered: