-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
ninja error #2862
Comments
Does it still happen on current What is your SDL version? |
sudo apt install ffmpeg libsdl2-2.0.0 client build dependenciessudo apt install make gcc pkg-config meson |
thank you for your reply |
Is this version wrong? |
The problem is that Ubuntu 16.04 is very very old (16.04 is not even supported anymore by Ubuntu I think), and packages a very old version of SDL. Since recent changes, scrcpy uses SDL functions which were not available back then. It might be possible to fix compilation issues, either by disabling some features or rewriting them differently with old APIs (will check later). In any case (and independently of scrcpy), you should really consider to upgrade your distribution. |
ok,this is my work pc,Upgrading the system is a difficult thing,do you have time to fix this problem? |
I have similar situation on Ubuntu 16.04 |
new error,Is this a problem with the ffmpeg version? |
25/26] Linking target app/scrcpy |
For these FFmpeg errors, you must use a version prior to: 5d9e96d (v1.17 should work I guess, I'm on phone so it's not easy to check). |
Can't solve,i guess FFmpeg maybe misconfigured, |
I tried to check to dev.wip, but there are still errors |
Run-time dependency libavformat found: YES 58.76.100 ../app/meson.build:86:4: ERROR: Invalid version of dependency, need 'sdl2' ['>= 2.0.5'] found '2.0.4'. A full log can be found at /home/Data/scrcpy/x/meson-logs/meson-log.txt |
It looks like you set some restrictions on the version |
I successfully ran scrcpy |
thank you for your support |
Environment
Describe the bug
A clear and concise description of what the bug is.
ninja error
On errors, please provide the output of the console (and
adb logcat
if relevant).build error
dell@softdell:/home/Data/scrcpy/x$ ninja
[0/3] Generating server/scrcpy-server with a custom command
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/7.0.2/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 463ms
35 actionable tasks: 35 up-to-date
[1/3] Compiling C object app/scrcpy.p/src_icon.c.o
FAILED: app/scrcpy.p/src_icon.c.o
ccache cc -Iapp/scrcpy.p -Iapp -I../app -I../app/src -I/usr/include/x86_64-linux-gnu -I/usr/include/SDL2 -I/usr/include/libusb-1.0 -flto=16 -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c11 -O3 -D_REENTRANT -MD -MQ app/scrcpy.p/src_icon.c.o -MF app/scrcpy.p/src_icon.c.o.d -o app/scrcpy.p/src_icon.c.o -c ../app/src/icon.c
../app/src/icon.c: In function ‘to_sdl_pixel_format’:
../app/src/icon.c:172:38: error: ‘SDL_PIXELFORMAT_ARGB32’ undeclared (first use in this function)
case AV_PIX_FMT_ARGB: return SDL_PIXELFORMAT_ARGB32;
^
../app/src/icon.c:172:38: note: each undeclared identifier is reported only once for each function it appears in
../app/src/icon.c:173:38: error: ‘SDL_PIXELFORMAT_RGBA32’ undeclared (first use in this function)
case AV_PIX_FMT_RGBA: return SDL_PIXELFORMAT_RGBA32;
^
../app/src/icon.c:174:38: error: ‘SDL_PIXELFORMAT_ABGR32’ undeclared (first use in this function)
case AV_PIX_FMT_ABGR: return SDL_PIXELFORMAT_ABGR32;
^
../app/src/icon.c:175:38: error: ‘SDL_PIXELFORMAT_BGRA32’ undeclared (first use in this function)
case AV_PIX_FMT_BGRA: return SDL_PIXELFORMAT_BGRA32;
^
../app/src/icon.c: In function ‘load_from_path’:
../app/src/icon.c:217:9: warning: implicit declaration of function ‘SDL_CreateRGBSurfaceWithFormatFrom’ [-Wimplicit-function-declaration]
SDL_CreateRGBSurfaceWithFormatFrom(frame->data[0],
^
../app/src/icon.c:217:9: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
Please do not post screenshots of your terminal, just post the content as text instead.
The text was updated successfully, but these errors were encountered: