-
-
Notifications
You must be signed in to change notification settings - Fork 11.5k
adb: error: cannot stat 'scrcpy-server.jar': No such file or directory #567
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
Comments
Hi, @H1-N1 What's your operating system? Thanks. |
Many people are annoyed on Windows with this problem. The cause is that it looks for We should change that for Windows: if |
Windows @npes87184 |
@rom1v or just add args that take care of server path |
@H1-N1 What did you do exactly? Here is how it works. If you launch If instead you added the |
@rom1v |
From which directory do you start What is the exact value assigned to your |
I also get this error on Ubuntu, where scrcpy looks in |
@Karottenbaum If you There was an issue: 53310a9. |
Thanks, it's working with that commit. Sorry for the trouble! |
@rom1v using the official v1.9 tag, both if manually passing -Dportable=false or applying the fix in 53310a9 I still get a failure during build with the following message.
I'm a bit rusty with C, but from what I remember, using #define to declare a macro, accepts only 1 parameter, so server.c at lines 18 and 19 look wrong to me:
and the ninja build fails due to this. Am I missing something? |
@hrk You also need the commit before: bcd0a87.
In C, you can concatenate string literals by just writing them one after the other: const char *s = "hello" " world" "!"; This is what the macro does. |
Wow, didn't know about that. And didn't notice the spelling mistake. :) Thank you, it's working now. |
v1.9 fixes the problem by searching in the same directory as the binary on Windows, so I'm closing. |
hi
when i start scrcpy from a process with administrator privileges i get this error
adb: error: cannot stat 'scrcpy-server.jar': No such file or directory
i dont now how to add full path in the env variable SCRCPY_SERVER_PATH !!!
thanks
The text was updated successfully, but these errors were encountered: