Skip to content
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

app/meson.build:59:4: ERROR: C shared or static library 'avcodec-58' not found #2122

Closed
Alberto2021 opened this issue Feb 15, 2021 · 2 comments

Comments

@Alberto2021
Copy link

Alberto2021 commented Feb 15, 2021

I get error on command 'make -f ./Makefile.CrossWindows '

I appreciate if somebody could help me.

I can see it was resolved here #1863 but I still have the issue

ubuntu@DESKTOP-NN0F9ON:~/scrcpy$ make -f Makefile.CrossWindows
./gradlew clean
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details

BUILD SUCCESSFUL in 16s
2 actionable tasks: 2 up-to-date
rm -rf "build-server" "build-win32" "build-win64"
"build-win32-noconsole" "build-win64-noconsole" "dist"
[ -d "build-server" ] || ( mkdir "build-server" &&
meson "build-server"
--buildtype release -Dcompile_app=false )
The Meson build system
Version: 0.53.2
Source dir: /home/ubuntu/scrcpy
Build dir: /home/ubuntu/scrcpy/build-server
Build type: native build
Project name: scrcpy
Project version: 1.17
C compiler for the host machine: cc (gcc 9.3.0 "cc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0")
C linker for the host machine: cc ld.bfd 2.34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program ./scripts/build-wrapper.sh found: YES (/home/ubuntu/scrcpy/server/./scripts/build-wrapper.sh)
Build targets in project: 2

Found ninja-1.10.0 at /usr/bin/ninja
ninja -C "build-server"
ninja: Entering directory `build-server'
[0/1] Generating scrcpy-server with a custom command.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 15s
24 actionable tasks: 24 executed
make -C prebuilt-deps prepare-win32
make[1]: Entering directory '/home/ubuntu/scrcpy/prebuilt-deps'
SDL2-2.0.14: not found
SDL2-devel-2.0.14-mingw.tar.gz: not found, downloading...
--2021-02-15 13:47:11-- https://libsdl.org/release/SDL2-devel-2.0.14-mingw.tar.gz
Resolving libsdl.org (libsdl.org)... 2604:a880:1:20::181:e001, 192.241.223.99
Connecting to libsdl.org (libsdl.org)|2604:a880:1:20::181:e001|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11299071 (11M) [application/x-gzip]
Saving to: ‘SDL2-devel-2.0.14-mingw.tar.gz’

SDL2-devel-2.0.14-mingw.tar.g 100%[=================================================>] 10.78M 3.09MB/s in 3.8s

2021-02-15 13:47:15 (2.87 MB/s) - ‘SDL2-devel-2.0.14-mingw.tar.gz’ saved [11299071/11299071]

SDL2-devel-2.0.14-mingw.tar.gz: verifying checksum...
SDL2-devel-2.0.14-mingw.tar.gz: OK
Extracting SDL2-devel-2.0.14-mingw.tar.gz...
ffmpeg-4.3.1-win32-shared: not found
ffmpeg-4.3.1-win32-shared.zip: not found, downloading...
--2021-02-15 13:47:16-- https://github.com/Genymobile/scrcpy/releases/download/v1.16/ffmpeg-4.3.1-win32-shared.zip
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-releases.githubusercontent.com/111583593/76736600-3c95-11eb-9e4f-f262d9f2615e?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210215%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210215T124716Z&X-Amz-Expires=300&X-Amz-Signature=a5bacc45e15d42a540da459873a728a6cbc36fecc061cafc5ae8db2a4c1124c2&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=111583593&response-content-disposition=attachment%3B%20filename%3Dffmpeg-4.3.1-win32-shared.zip&response-content-type=application%2Foctet-stream [following]
--2021-02-15 13:47:17-- https://github-releases.githubusercontent.com/111583593/76736600-3c95-11eb-9e4f-f262d9f2615e?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210215%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210215T124716Z&X-Amz-Expires=300&X-Amz-Signature=a5bacc45e15d42a540da459873a728a6cbc36fecc061cafc5ae8db2a4c1124c2&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=111583593&response-content-disposition=attachment%3B%20filename%3Dffmpeg-4.3.1-win32-shared.zip&response-content-type=application%2Foctet-stream
Resolving github-releases.githubusercontent.com (github-releases.githubusercontent.com)... 185.199.109.154, 185.199.108.154, 185.199.111.154, ...
Connecting to github-releases.githubusercontent.com (github-releases.githubusercontent.com)|185.199.109.154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 25602387 (24M) [application/octet-stream]
Saving to: ‘ffmpeg-4.3.1-win32-shared.zip’

ffmpeg-4.3.1-win32-shared.zip 100%[=================================================>] 24.42M 3.38MB/s in 7.6s

2021-02-15 13:47:25 (3.20 MB/s) - ‘ffmpeg-4.3.1-win32-shared.zip’ saved [25602387/25602387]

ffmpeg-4.3.1-win32-shared.zip: verifying checksum...
ffmpeg-4.3.1-win32-shared.zip: OK
Extracting ffmpeg-4.3.1-win32-shared.zip...
./prepare-dep: line 33: unzip: command not found
make[1]: *** [Makefile:13: prepare-ffmpeg-shared-win32] Error 127
make[1]: Leaving directory '/home/ubuntu/scrcpy/prebuilt-deps'
make: [Makefile.CrossWindows:51: prepare-deps-win32] Error 2 (ignored)
[ -d "build-win32" ] || ( mkdir "build-win32" &&
meson "build-win32"
--cross-file cross_win32.txt
--buildtype release --strip -Db_lto=true
-Dcrossbuild_windows=true
-Dcompile_server=false
-Dportable=true )
The Meson build system
Version: 0.53.2
Source dir: /home/ubuntu/scrcpy
Build dir: /home/ubuntu/scrcpy/build-win32
Build type: cross build
Project name: scrcpy
Project version: 1.17
C compiler for the build machine: cc (gcc 9.3.0 "cc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0")
C linker for the build machine: cc ld.bfd 2.34
C compiler for the host machine: /usr/bin/i686-w64-mingw32-gcc (gcc 9.3.0 "i686-w64-mingw32-gcc (GCC) 9.3-win32 20200320")
C linker for the host machine: /usr/bin/i686-w64-mingw32-gcc ld.bfd 2.34
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: x86
Host machine cpu: i686
Target machine cpu family: x86
Target machine cpu: i686
Library SDL2 found: YES
Library SDL2main found: YES

app/meson.build:59:4: ERROR: C library 'avcodec-58' not found

A full log can be found at /home/ubuntu/scrcpy/build-win32/meson-logs/meson-log.txt
make: *** [Makefile.CrossWindows:54: build-win32] Error 1
ubuntu@DESKTOP-NN0F9ON:~/scrcpy$ make -f Makefile.CrossWindows
./gradlew clean

BUILD SUCCESSFUL in 1s
2 actionable tasks: 2 executed
rm -rf "build-server" "build-win32" "build-win64"
"build-win32-noconsole" "build-win64-noconsole" "dist"
[ -d "build-server" ] || ( mkdir "build-server" &&
meson "build-server"
--buildtype release -Dcompile_app=false )
The Meson build system
Version: 0.53.2
Source dir: /home/ubuntu/scrcpy
Build dir: /home/ubuntu/scrcpy/build-server
Build type: native build
Project name: scrcpy
Project version: 1.17
C compiler for the host machine: cc (gcc 9.3.0 "cc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0")
C linker for the host machine: cc ld.bfd 2.34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program ./scripts/build-wrapper.sh found: YES (/home/ubuntu/scrcpy/server/./scripts/build-wrapper.sh)
Build targets in project: 2

Found ninja-1.10.0 at /usr/bin/ninja
ninja -C "build-server"
ninja: Entering directory `build-server'
[0/1] Generating scrcpy-server with a custom command.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 7s
24 actionable tasks: 23 executed, 1 up-to-date
make -C prebuilt-deps prepare-win32
make[1]: Entering directory '/home/ubuntu/scrcpy/prebuilt-deps'
SDL2-2.0.14: found
ffmpeg-4.3.1-win32-shared: not found
ffmpeg-4.3.1-win32-shared.zip: found
ffmpeg-4.3.1-win32-shared.zip: verifying checksum...
ffmpeg-4.3.1-win32-shared.zip: OK
Extracting ffmpeg-4.3.1-win32-shared.zip...
./prepare-dep: line 33: unzip: command not found
make[1]: *** [Makefile:13: prepare-ffmpeg-shared-win32] Error 127
make[1]: Leaving directory '/home/ubuntu/scrcpy/prebuilt-deps'
make: [Makefile.CrossWindows:51: prepare-deps-win32] Error 2 (ignored)
[ -d "build-win32" ] || ( mkdir "build-win32" &&
meson "build-win32"
--cross-file cross_win32.txt
--buildtype release --strip -Db_lto=true
-Dcrossbuild_windows=true
-Dcompile_server=false
-Dportable=true )
The Meson build system
Version: 0.53.2
Source dir: /home/ubuntu/scrcpy
Build dir: /home/ubuntu/scrcpy/build-win32
Build type: cross build
Project name: scrcpy
Project version: 1.17
C compiler for the build machine: cc (gcc 9.3.0 "cc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0")
C linker for the build machine: cc ld.bfd 2.34
C compiler for the host machine: /usr/bin/i686-w64-mingw32-gcc (gcc 9.3.0 "i686-w64-mingw32-gcc (GCC) 9.3-win32 20200320")
C linker for the host machine: /usr/bin/i686-w64-mingw32-gcc ld.bfd 2.34
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: x86
Host machine cpu: i686
Target machine cpu family: x86
Target machine cpu: i686
Library SDL2 found: YES
Library SDL2main found: YES

app/meson.build:59:4: ERROR: C library 'avcodec-58' not found

@rom1v
Copy link
Collaborator

rom1v commented Feb 15, 2021

unzip: command not found

sudo apt install unzip

@Alberto2021
Copy link
Author

Thanks a lot. It’s working!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants