Genymobile / Genymobile/scrcpy
"sudo ninja -Cx install" consistently failing on Ubuntu 16.04
- Dominant language
- C
- Stars
- 150k
- Forks
- 13.8k
- Avg merge
- 4d 13h
- Merged PRs (30d)
- 2
Description
- [Yes, no such issue reported ] I have read the [FAQ](https://github.com/Genymobile/scrcpy/blob/master/FAQ.md).
- [[Yes, no such issue reported for -v1.16- ] I have searched in existing [issues](https://github.com/Genymobile/scrcpy/issues).
**Environment**
- OS: [Ubuntu 16.04]
- scrcpy version: [latest version with "scrcpy-server-v1.16"]
- installation method: [e.g. manual build, Ubuntu 16_04 Linux]
- device model:irrelevant
- Android version: [irrelevant]
**Describe the bug**
I'm trying to install scrcpy on Ubuntu 16.04, I've tied many combinations of building and installing scrcpy as described in both previous version of BUILD.md, with scrcpy-server-v1.14 I found on GitHub on Monday August 3rd, as well as the current version with scrcpy-server-v1.16. However I never tried to build the scrcpy-server, though {{ ninja -Cx }} sometimes even though I always choose to use the "prebuilt server" rather than building one, erroneously blows up with the following error
Could not determine the dependencies of task \\s\
':server:compileReleaseJavaWithJavac'.
> SDK location not found. Define location with an
ANDROID_SDK_ROOT environment variable or by setting the \\s\
sdk.dir path in your project's local properties file at \\s\
'/home/uID/wk/scrcpy-wk/scrcpy/local.properties'.
I tweaked the installation process with all the relevant tweaks suggested in the current BUILD.md document, most importantly the suggested fix to avoid problems with older version of {{ meson }} used on Ununtu 16.04 installing {{ python3-pip }} and subsequently {{ pip3 install meson }}, as well as by running one, two or all three suggested tweaks {{ "ninja reconfigure", "meson --reconfigure" and "meson setup --wipe" }} with the latter actually beeing {{ meson setup --wipe x --buildtype release --strip -Db_lto=true -Dprebuilt_server=/usr/local/bin/scrcpy-server }} which finally enable able me to bring the process to the last step {{ sudo ninja -Cx install }}. However, at this point I consistently keep getting the following error:
ninja: fatal: ninja version (1.5.1) incompatible with build \\s\
file ninja_required_version version (1.7.1).
(BTW: the {{ \\\s\ }} mark above is a line-concatenation sign indicating that
a space is allowed between the two parts (lines) separated by it.)
Contributor guide
No contributing guide indexed for this repository
Research direction
Read BUILD.md first and reproduce the documented setup on Ubuntu 16.04, focusing on the meson setup commands and the final `sudo ninja -Cx install` step. Compare the generated `ninja_required_version` with the installed Ninja version and confirm that the documented installation path completes successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, c, python, ubuntu
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100