Comments (5)
I'm currently using the distribution-packaged (Ubuntu) version of scrcpy
The packaged version is very very old. You should always run the latest version ๐
a way to pass an installation prefix directory to the build systems (ninja and meson).
During your meson setup:
meson setup builddir --prefix=/your/prefix/directory
./build-auto/app/scrcpy -s xxxxxxxxxxx
You can run without installing:
./run build-auto -s xxxxxxxxxxx
(check the content of the run
script)
from scrcpy.
I actually worked this out while I was opening the issue, but it occurred to me that somebody else might benefit from the answer, and having the full question in there would make the whole thing more discoverable, so...
Turns out you can run the executable right out of the build directory; you just have to specify the path to the scrcpy-server
file. This file is provided in the build directory, but the scrcpy
invocation doesn't look for it there. If you just want a quick and dirty way to run, you can just run this in the build directory:
SCRCPY_SERVER_PATH="./scrcpy-server" ./build-auto/app/scrcpy
I wrote up this simple shell script which should make things a little friendlier; I put mine in ${HOME}/.local/bin/scrcpy-homedir
, but it'll work from any directory.
#!/bin/sh
base_directory="${HOME}/build/scrcpy"
###############################################################################
###############################################################################
SCRCPY_SERVER_PATH="${base_directory}/scrcpy-server" ${base_directory}/build-auto/app/scrcpy ${*}
## EOF
########
from scrcpy.
You can run without installing:
./run build-auto -s xxxxxxxxxxx
Ah, OK. That seems to produce the same result, but less fiddly than my version. :) Thanks for the help! So, just to close the loop, this is what I'm updating the shell script to:
#!/bin/sh
base_directory="${HOME}/build/scrcpy"
###############################################################################
###############################################################################
${base_directory}/run build-auto ${*}
## EOF
########
from scrcpy.
But it is still better to build and install.
If x
is your builddir:
ninja -Cx
sudo ninja -Cx install
I don't want to run an arbitrary "make install"-type command that puts who knows what files in who knows which directories.
It installs the files documented here
Here are the relevant lines in meson:
Lines 177 to 193 in 206809a
Lines 12 to 13 in 206809a
from scrcpy.
Ah OK...yeah, that's the info I was looking for.
I made it as far as https://github.com/Genymobile/scrcpy/blob/master/doc/linux.md; too bad I didn't go one more link 'cause "build.md" is linked on that page. ๐
Excellent; so, it looks like what I'm after is probably to add something to the meson command line so it installs into my ${HOME}/.local
prefix.
from scrcpy.
Related Issues (20)
- adb devices can see my phone, but scrcpy can't. I need help HOT 2
- Press Hold via Mouse with default params not holding long enough HOT 2
- Can anyone help me with ERROR: Could not create default video encoder for h264
- Scrcpy client for Android HOT 2
- If debugging the client
- โBโ key not working in SCRCPY HOT 2
- HyperOS 1.0.1.0 mouse controls stopped working HOT 6
- show taps is not showing while i touched with scrcpy
- Please help add a frame rate function for non screen projection printing๏ผA command similar to this: scrcpy --print-fps --no-display
- scrcpy not accepting input from keyboard / mouse. HOT 3
- what is the best configuration for minecraft bedrock? HOT 1
- Bug: after OS update, Honor Magic4 pro can't be mirrored with screen turned off using ScrCpy (closes right away), but can be via Android Studio HOT 1
- Different frame rate when i cast my device with the screen off HOT 1
- Unexpected behaviour of `--crop` argument HOT 1
- [Alt Gr] doesn't work with -K parameter HOT 15
- The resolution goes from 1366x768 to 1360x768 HOT 6
- Scrcpy LOCK MOUSE
- Can't scrcpy mirror the screen when the screen displays the password? HOT 4
- Mouse/Keyboard/Audio not working HOT 3
- Audio stopping from smartphone while using scrcpy HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scrcpy.