-
-
Notifications
You must be signed in to change notification settings - Fork 11k
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
./install_release.sh
found [Errno 2] No such file or directory: '/home/V01.NET/uidq3640/app/scrcpy/build-auto'
#2616
Comments
What is the result of: pwd
echo $USER
echo $HOME after you execute the install_release script? |
uidq3640@hzh2187u:~/app/scrcpy$ pwd uidq3640@hzh2187u:~/app/scrcpy$ echo $USER uidq3640@hzh2187u:~/app/scrcpy$ echo $HOME yes problem happen after I execute the install_release script? |
What is the result of IIRC some old versions of meson expected the build directory to pre-exist. What if you create it: diff --git a/install_release.sh b/install_release.sh
index 9158bdd4..d4e307a6 100755
--- a/install_release.sh
+++ b/install_release.sh
@@ -12,6 +12,7 @@ echo "$PREBUILT_SERVER_SHA256 scrcpy-server" | sha256sum --check
echo "[scrcpy] Building client..."
rm -rf "$BUILDDIR"
+mkdir "$BUILDDIR"
meson "$BUILDDIR" --buildtype release --strip -Db_lto=true \
-Dprebuilt_server=scrcpy-server
cd "$BUILDDIR" |
uidq3640@hzh2187u:~/app/scrcpy$ meson --version |
Oh, ok, that's very (very (very)) old. The build requires at least 0.48 anyway, so even if you bypass this problem you'll get other issues: Line 3 in c96f5c7
Install a newer |
[scrcpy] Downloading prebuilt server... scrcpy-server 100%[===================>] 36.46K --.-KB/s in 0.1s 2021-09-13 16:55:29 (360 KB/s) - ‘scrcpy-server’ saved [37330/37330] [scrcpy] Verifying prebuilt server... Found ninja-1.10.2.git at /usr/bin/ninja |
Could you try with these changes: diff --git a/app/src/decoder.c b/app/src/decoder.c
index aa5018b3..7c67e836 100644
--- a/app/src/decoder.c
+++ b/app/src/decoder.c
@@ -1,5 +1,6 @@
#include "decoder.h"
+#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include "events.h"
diff --git a/app/src/recorder.c b/app/src/recorder.c
index c98b6b8c..3b5fe070 100644
--- a/app/src/recorder.c
+++ b/app/src/recorder.c
@@ -1,6 +1,8 @@
#include "recorder.h"
#include <assert.h>
+#include <libavcodec/avcodec.h>
+#include <libavformat/avformat.h>
#include <libavutil/time.h>
#include "util/log.h" (Which distribution do you use?) |
I have the same problem on Ubuntu 16.04, is it related to the ffmpeg lib version?
|
16.04 is too old. You could try to upgrade meson at least, but I'm not sure this will be sufficient. |
The text was updated successfully, but these errors were encountered: