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
scrcpy-noconsole compiled #1975
Comments
#define WINDOWS_NOCONSOLE |
(Please post console content as text instead of screenshot.) What do you mean "it still didn't work"? If you double click on the generated scrcpy.exe, it opens a new terminal?
(Here your command did not work, either |
this is meson_options.txt rm-rf X will still pop up the terminal interface after compilation |
|
I use the following instruction, is the instruction wrong?Please help to have a look!Thank you for the |
You should not modify
|
Use this directive to change the config file.I compiled with NinjA-Cx and still didn't generate the Scrcpy-noconsole $ meson x --buildtype release --strip -Db_lto=true -Dwindows_noconsole=true #define WINDOWS_NOCONSOLE |
No but it should generate See Line 117 in d6078cf
|
Scrcpy.exe was produced, but after the operation or the first pop-up terminal to cast screen。Makefile.crosswindows also exists in the instructions you say.Do not know the reason for the inversion cannot generate no Console software |
Could you please help me to see if this process is correct?I checked with meson Configrue X that it had been modified.The generated EXe is not the No Console。
|
It seems ok. The difference between console and noconsole is basically a link flag. I had to change it on a MinGW upgrade on Debian: 18f2e33 I never tested to build the "no console" Windows version from Windows (I always cross-compile from Linux). |
It seems that you can create a file CreateObject("Wscript.Shell").Run "cmd /c scrcpy.exe", 0, false It will start the normal Does someone know if it's expected to work on all Windows? (cc @npes87184) |
I'm using a screen-free device with a built-in service, so I want to compile without ADB.Exe without terminal has not been able to be programmed @npes87184 您这边在win10的msys下能实现吗? |
Sorry, I always cross-compile from Linux, too. |
Sorry, I am not familiar with this. |
OK. Does it work on your Windows? |
works, but it's better to leave everything as it is and not change anything |
Why? If it works, I much prefer a one-line script than compiling another binary with ifdefs. It simplifies a lot. |
program start delay |
How long does it take? Few milliseconds? |
I mean - the time for the appearance of mirroring on the desktop reaches 1 second or more. The times are not always the same. |
The start time is mainly the execution of the app_process on the device and codec initialization. The wrapper vbs script is negligible. (Isn't it for you?) |
This simplifies the build system. Refs <#1975 (comment)
This simplifies the build system. Refs <#1975 (comment)>
You can't pass parameters to scrcpy.exe this way!! The only way to pass parameters is hard-coding them. J. |
Yes, this should be improved: https://stackoverflow.com/a/17443309/1987178 But the only purpose of no-console is to start scrcpy without console by double-clicking on a file, so it should not be a big deal if the parameters are hardcoded. |
I configured windows_noconsole to be true in meson_options. Ninja-cx compiled, but it still didn't work.
The text was updated successfully, but these errors were encountered: