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 #1863

Closed
ExplorerBoom opened this issue Oct 27, 2020 · 4 comments

Comments

@ExplorerBoom
Copy link

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

developer@developer:~/scrcpy$ make -f ./Makefile.CrossWindows 
./gradlew clean

BUILD SUCCESSFUL in 2s
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.55.3
Source dir: /home/developer/scrcpy
Build dir: /home/developer/scrcpy/build-server
Build type: native build
Project name: scrcpy
Project version: 1.16
C compiler for the host machine: cc (gcc 10.2.0 "cc (Ubuntu 10.2.0-13ubuntu1) 10.2.0")
C linker for the host machine: cc ld.bfd 2.35.1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program ./scripts/build-wrapper.sh found: YES
Build targets in project: 2

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

BUILD SUCCESSFUL in 12s
26 actionable tasks: 26 executed
make -C prebuilt-deps prepare-win32
make[1]: Entering directory '/home/developer/scrcpy/prebuilt-deps'
SDL2-2.0.12: 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: FAILED
sha256sum: WARNING: 1 computed checksum did NOT match
make[1]: *** [Makefile:13: prepare-ffmpeg-shared-win32] Error 1
make[1]: Leaving directory '/home/developer/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.55.3
Source dir: /home/developer/scrcpy
Build dir: /home/developer/scrcpy/build-win32
Build type: cross build
Project name: scrcpy
Project version: 1.16
C compiler for the build machine: cc (gcc 10.2.0 "cc (Ubuntu 10.2.0-13ubuntu1) 10.2.0")
C linker for the build machine: cc ld.bfd 2.35.1
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 shared or static library 'avcodec-58' not found

A full log can be found at /home/developer/scrcpy/build-win32/meson-logs/meson-log.txt
make: *** [Makefile.CrossWindows:54: build-win32] Error 1

Help please

@rom1v
Copy link
Collaborator

rom1v commented Oct 27, 2020

Probably related to #1753.

ffmpeg-4.3.1-win32-shared.zip: verifying checksum...
ffmpeg-4.3.1-win32-shared.zip: FAILED
sha256sum: WARNING: 1 computed checksum did NOT match
make[1]: *** [Makefile:13: prepare-ffmpeg-shared-win32] Error 1

Where did you download ffmpeg-4.3.1-win32-shared.zip from?

@ExplorerBoom
Copy link
Author

ffmpeg is installed. This is not enough?

developer@developer:~$ sudo apt install ffmpeg libsdl2-2.0-0 adb
[sudo] password for developer: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
adb is already the newest version (1:8.1.0+r23-8).
ffmpeg is already the newest version (7:4.3.1-4ubuntu1).
libsdl2-2.0-0 is already the newest version (2.0.12+dfsg1-4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

@npes87184
Copy link
Contributor

npes87184 commented Oct 28, 2020

Well, you are cross compiling windows build. You can not use linux shared library for linking.

If you want to build windows platform now, you can try this PR #1838 or using MXE in commit.

@explorerboom86
Copy link

Thank you very much

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

4 participants