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

Can't use scrcpy after setting path #315

Closed
supavit28 opened this issue Oct 30, 2018 · 5 comments
Closed

Can't use scrcpy after setting path #315

supavit28 opened this issue Oct 30, 2018 · 5 comments

Comments

@supavit28
Copy link

supavit28 commented Oct 30, 2018

After I follow this #105, I still can't use scrcpy. I will explain it here hope someone can fix it for me. (I use scrcpy-win64-v1.4 prebuilt version for windows to mirror Oculus Go to notebook)

  1. I try to set path of scrcpy as shown below
    1
  2. My directory contain as follows
    2
  3. I can run adb and scrcpy -h without problem.
    3
    4
  4. But when i run scrcpy, it shows as follow
    5
  5. Also when I go scrcpy directory, I can run it without any problem.
    6

Sorry for messing issue by closing and reopening it, I am newbie about Github.

@supavit28 supavit28 reopened this Oct 30, 2018
@rom1v
Copy link
Collaborator

rom1v commented Oct 30, 2018

#278 (comment)

The problem is that scrcpy pushes the scrcpy-server.jar that it finds in . (your current directory). If you start scrcpy from PATH, it expects scrcpy-server.jar to be in ., i.e. the current directory, the one from where you call (the Windows version is "portable", it overrides the server path).

If you want your scrcpy-server.jar to be in a directory other than ., you need to give its full path in the env variable SCRCPY_SERVER_PATH.

@supavit28
Copy link
Author

supavit28 commented Oct 30, 2018

@rom1v Thanks for your respond.

I am understand what cause the problem now by reading this paragraph.

The problem is that scrcpy pushes the scrcpy-server.jar that it finds in . (your current directory). If you start scrcpy from PATH, it expects scrcpy-server.jar to be in ., i.e. the current directory, the one from where you call (the Windows version is "portable", it overrides the server path).

But sorry I am dump. I don't know how to set SCRCPY_SERVER_PATH. Does it look like this one (For my case) ??
8
Actually I set above as env variable. It said something like

C:\adb>scrcpy
scrcpy-server.jar: 1 file pushed. 1.8 MB/s (18802 bytes in 0.010s)
Abort !!

(sorry I don't have screenshoot of this)

@rom1v
Copy link
Collaborator

rom1v commented Oct 30, 2018

The variable value should be D:\Supavit\scrcpy\scrcpy-server.jar.

@supavit28
Copy link
Author

@rom1v Thanks I will try it. I don't have that android with me now.

@supavit28
Copy link
Author

It is solved now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants