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

Error during basic setup #80

Closed
mhdtouban opened this issue Mar 18, 2018 · 10 comments
Closed

Error during basic setup #80

mhdtouban opened this issue Mar 18, 2018 · 10 comments

Comments

@mhdtouban
Copy link

Am getting
Error during basic setup:

Neither directory contains a build file meson.build.

when running meson x --buildtype release --strip -Db_lto=tru
tried to reinstall it but this didn't help as am getting build is already installed.

MacOS: 10.13.3

@rom1v
Copy link
Collaborator

rom1v commented Mar 18, 2018

Neither directory contains a build file meson.build.

See #35.

build is already installed

Remove the build directory:

rm -rf x

@rom1v rom1v added the build label Mar 18, 2018
@mhdtouban
Copy link
Author

Got this error:

Dependency libavformat found: NO

app/meson.build:21:0: ERROR: Dependency 'libavformat' not found, tried Extra Frameworks and Pkg-Config:

Native dependency 'libavformat' not found

@rom1v
Copy link
Collaborator

rom1v commented Mar 18, 2018

Did you install the packages?

@mhdtouban
Copy link
Author

yes

Warning: sdl2 2.0.8 is already installed
Warning: ffmpeg 3.4.2 is already installed

@mhdtouban
Copy link
Author

and here is the full log:

Build started at 2018-03-18T13:29:27.492806
Main binary: /usr/local/opt/python/bin/python3.6
Python system: Darwin
The Meson build system
Version: 0.45.0
Source dir: /Users/abdullah/dev/java/scrcpy/scrcpy
Build dir: /Users/abdullah/dev/java/scrcpy/scrcpy/x
Build type: native build
Project name: scrcpy
Sanity testing C compiler: cc
Is cross compiler: False.
Sanity check compiler command line: cc /Users/abdullah/dev/java/scrcpy/scrcpy/x/meson-private/sanitycheckc.c -o /Users/abdullah/dev/java/scrcpy/scrcpy/x/meson-private/sanitycheckc.exe
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /Users/abdullah/dev/java/scrcpy/scrcpy/x/meson-private/sanitycheckc.exe
Native C compiler: cc (clang 9.0.0 "Apple LLVM version 9.0.0 (clang-900.0.39.2)")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /opt/local/bin/pkg-config (0.29.1)
Determining dependency 'libavformat' with pkg-config executable '/opt/local/bin/pkg-config'
Dependency libavformat found: NO

app/meson.build:21:0: ERROR: Dependency 'libavformat' not found, tried Extra Frameworks and Pkg-Config:

Native dependency 'libavformat' not found

@rom1v rom1v added the macos label Mar 18, 2018
@rom1v
Copy link
Collaborator

rom1v commented Mar 28, 2018

Thanks to @stek29, scrcpy is now available in Homebrew. Could you try:

brew install scrcpy

?

@rom1v rom1v closed this as completed Sep 24, 2018
clang-clang-clang added a commit to clang-clang-clang/scrcpy that referenced this issue Sep 27, 2019
@qumberrizvi
Copy link

qumberrizvi commented Aug 30, 2020

Please open it back. This issue persists on Ubuntu 20.04.

Tried meson d in the audio branch. Got:

The Meson build system
Version: 0.49.2
Source dir: /home/qumber/Projects/personal/scrcpy
Build dir: /home/qumber/Projects/personal/scrcpy/d
Build type: native build
Project name: scrcpy
Project version: undefined
Native C compiler: cc (gcc 7.5.0 "cc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Found CMake: NO
Dependency libavformat found: NO (tried pkgconfig)

app/meson.build:32:4: ERROR: Dependency "libavformat" not found, tried pkgconfig

A full log can be found at /home/qumber/Projects/personal/scrcpy/d/meson-logs/meson-log.txt

@Biswa96
Copy link
Contributor

Biswa96 commented Aug 30, 2020

libavformat is provided by ffmpeg.

@r-luo
Copy link

r-luo commented Feb 6, 2021

@Biswa96 I'm encountered the same issue and it persists after I did sudo apt install ffmpeg (installed the runtime dependencies)

@LeeBinder
Copy link

LeeBinder commented Dec 23, 2022

Did you install the packages?

The correct link now is https://github.com/Genymobile/scrcpy/blob/master/BUILD.md#mac-os

Yes, installed. Still, same problem trying to compile the latest v.1.25 in macOS (Intel), see here.

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

No branches or pull requests

6 participants