install_release.sh fails in meson command
Environment
- OS: ubuntu 16.04LTS
- scrcpy version: trying to build v2.0 manually
- installation method: install_release.sh
- device model: n/a
- Android version: n/a
Describe the bug Trying to manually build v2.0 as the latest available for my ubuntu 16.04LTS is 1.25
The following steps were done,
- git clone https://github.com/Genymobile/scrcpy
- cd scrcpy
- git checkout tags/v2.0 -b v2.0
- ./install_release.sh
and meson is complaining about [Errno 2] No such file or directory: '/home/twong/Workspace/open-sources/scrcpy/setup'
$ meson --version
0.29.0
~/Workspace/open-sources/scrcpy$ ./install_release.sh
[scrcpy] Downloading prebuilt server...
--2023-04-27 18:01:52-- https://github.com/Genymobile/scrcpy/releases/download/v1.25/scrcpy-server-v1.25
Resolving github.com (github.com)... 192.30.255.113
Connecting to github.com (github.com)|192.30.255.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/111583593/56d38689-d880-43f5-983d-76d677072f25?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230428%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230428T010152Z&X-Amz-Expires=300&X-Amz-Signature=b1a5858c8d2ec9a03f07fd3804917aee1cec0ed53fdd672be4f833bf42c1a918&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=111583593&response-content-disposition=attachment%3B%20filename%3Dscrcpy-server-v1.25&response-content-type=application%2Foctet-stream [following]
--2023-04-27 18:01:52-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/111583593/56d38689-d880-43f5-983d-76d677072f25?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230428%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230428T010152Z&X-Amz-Expires=300&X-Amz-Signature=b1a5858c8d2ec9a03f07fd3804917aee1cec0ed53fdd672be4f833bf42c1a918&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=111583593&response-content-disposition=attachment%3B%20filename%3Dscrcpy-server-v1.25&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.110.133, 185.199.111.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 42151 (41K) [application/octet-stream]
Saving to: ‘scrcpy-server’
scrcpy-server 100%[=======================================================================>] 41.16K --.-KB/s in 0.003s
2023-04-27 18:01:53 (11.9 MB/s) - ‘scrcpy-server’ saved [42151/42151]
[scrcpy] Verifying prebuilt server...
scrcpy-server: OK
[scrcpy] Building client...
Error during basic setup:
[Errno 2] No such file or directory: '/home/twong/Workspace/open-sources/scrcpy/setup'
Your meson version is way too old. It should even refuse to build: https://github.com/Genymobile/scrcpy/blob/cb20bcb16f4ca191e237c8744a7c2e6d29701d60/meson.build#L3
run this command to solve your issue
sudo apt-get install meson -y && sudo apt-get install cmake -y
run this command to solve your issue
Yeah no, not on Ubuntu 16.04.
If ChatGPT said this would work, it is wrong.