GhostNaN / mpvpaper

A video wallpaper program for wlroots based wayland compositors.
GNU General Public License v3.0
713 stars 21 forks source link

getting an error while building the application #41

Closed Rishabh672003 closed 1 year ago

Rishabh672003 commented 1 year ago

image

heres the full log from $HOME/.cache/yay/mpvpaper/src/build/meson-logs/meson-log.txt -

Build started at 2023-01-21T23:18:23.003194
Main binary: /usr/bin/python
Build Options: -Dprefix=/usr
Python system: Linux
The Meson build system
Version: 1.0.0
Source dir: /home/rishabh/.cache/yay/mpvpaper/src/mpvpaper-1.3
Build dir: /home/rishabh/.cache/yay/mpvpaper/src/build
Build type: native build
Project name: mpvpaper
Project version: undefined
-----
Detecting compiler via: cc --version
compiler returned <Popen: returncode: 0 args: ['cc', '--version']>
compiler stdout:
cc (GCC) 12.2.1 20230111
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

compiler stderr:

Running command: cc -E -dM -
-----
Detecting linker via: cc -Wl,--version -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -march=native -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection
linker returned <Popen: returncode: 0 args: ['cc', '-Wl,--version', '-Wl,-O1,--sort-common,-...>
linker stdout:
GNU ld (GNU Binutils) 2.40
Copyright (C) 2023 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.

linker stderr:
collect2 version 12.2.1 20230111
/usr/bin/ld -plugin /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/lto-wrapper -plugin-opt=-fresolution=/tmp/cc959MTU.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../lib/Scrt1.o /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../lib/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/crtbeginS.o -L/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1 -L/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../.. --version -O1 --sort-common --as-needed -z relro -z now -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../lib/crtn.o

Sanity testing C compiler: cc
Is cross compiler: False.
Sanity check compiler command line: cc sanitycheckc.c -o sanitycheckc.exe -march=native -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -D_FILE_OFFSET_BITS=64 -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command:  /home/rishabh/.cache/yay/mpvpaper/src/build/meson-private/sanitycheckc.exe
C compiler for the host machine: cc (gcc 12.2.1 "cc (GCC) 12.2.1 20230111")
C linker for the host machine: cc ld.bfd 2.40
detecting CPU family based on trial='x86_64'
-----
Detecting compiler via: cc --version
compiler returned <Popen: returncode: 0 args: ['cc', '--version']>
compiler stdout:
cc (GCC) 12.2.1 20230111
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

compiler stderr:

Running command: cc -E -dM -
-----
Detecting linker via: cc -Wl,--version -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -march=native -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection
linker returned <Popen: returncode: 0 args: ['cc', '-Wl,--version', '-Wl,-O1,--sort-common,-...>
linker stdout:
GNU ld (GNU Binutils) 2.40
Copyright (C) 2023 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.

linker stderr:
collect2 version 12.2.1 20230111
/usr/bin/ld -plugin /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/lto-wrapper -plugin-opt=-fresolution=/tmp/ccCd7Cl0.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../lib/Scrt1.o /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../lib/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/crtbeginS.o -L/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1 -L/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../.. --version -O1 --sort-common --as-needed -z relro -z now -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../lib/crtn.o

Sanity testing C compiler: cc
Is cross compiler: False.
Sanity check compiler command line: cc sanitycheckc.c -o sanitycheckc.exe -march=native -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -D_FILE_OFFSET_BITS=64 -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command:  /home/rishabh/.cache/yay/mpvpaper/src/build/meson-private/sanitycheckc.exe
C compiler for the build machine: cc (gcc 12.2.1 "cc (GCC) 12.2.1 20230111")
C linker for the build machine: cc ld.bfd 2.40
detecting CPU family based on trial='x86_64'
detecting CPU family based on trial='x86_64'
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: x86_64
Host machine cpu: x86_64
Target machine cpu family: x86_64
Target machine cpu: x86_64
Running compile:
Working directory:  /home/rishabh/.cache/yay/mpvpaper/src/build/meson-private/tmpt8mflqmj
Command line:  cc /home/rishabh/.cache/yay/mpvpaper/src/build/meson-private/tmpt8mflqmj/testfile.c -o /home/rishabh/.cache/yay/mpvpaper/src/build/meson-private/tmpt8mflqmj/output.exe -march=native -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -D_FILE_OFFSET_BITS=64 -O0 -Wl,--start-group -ldl -Wl,--end-group -Wl,--allow-shlib-undefined -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now 

Code:
 int main(void) { return 0; }

Compiler stdout:

Compiler stderr:

Library dl found: YES
Pkg-config binary for 1 is not cached.
Pkg-config binary missing from cross or native file, or env var undefined.
Trying a default Pkg-config fallback at pkg-config
Found pkg-config: /usr/bin/pkg-config (1.8.0)
Determining dependency 'wayland-protocols' with pkg-config executable '/usr/bin/pkg-config'
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --modversion wayland-protocols` -> 0
1.31
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --cflags wayland-protocols` -> 0

env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --libs wayland-protocols` -> 0

env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --libs wayland-protocols` -> 0

Run-time dependency wayland-protocols found: YES 1.31
Pkg-config binary for 1 is cached.
Determining dependency 'wayland-client' with pkg-config executable '/usr/bin/pkg-config'
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --modversion wayland-client` -> 0
1.21.0
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --cflags wayland-client` -> 0

env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --libs wayland-client` -> 0
-L/usr/lib -lwayland-client
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --libs wayland-client` -> 0
-lwayland-client
detecting CPU family based on trial='x86_64'
Running compile:
Working directory:  /home/rishabh/.cache/yay/mpvpaper/src/build/meson-private/tmp2h3oeecd
Command line:  cc /home/rishabh/.cache/yay/mpvpaper/src/build/meson-private/tmp2h3oeecd/testfile.c -o /home/rishabh/.cache/yay/mpvpaper/src/build/meson-private/tmp2h3oeecd/output.exe -march=native -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -D_FILE_OFFSET_BITS=64 -O0 -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now 

Code:
 #include<stdio.h>

        int main(void) {
            printf("%ld\n", (long)(sizeof(void *)));
            return 0;
        }
Compiler stdout:

Compiler stderr:
 In file included from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from /home/rishabh/.cache/yay/mpvpaper/src/build/meson-private/tmp2h3oeecd/testfile.c:1:
/usr/include/features.h:412:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
  412 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
      |    ^~~~~~~

Program stdout:

8

Program stderr:

Running compile:
Working directory:  /home/rishabh/.cache/yay/mpvpaper/src/build/meson-private/tmpob1a20mh
Command line:  cc /home/rishabh/.cache/yay/mpvpaper/src/build/meson-private/tmpob1a20mh/testfile.c -o /home/rishabh/.cache/yay/mpvpaper/src/build/meson-private/tmpob1a20mh/output.obj -c -march=native -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -D_FILE_OFFSET_BITS=64 -O0 --print-search-dirs 

Code:

Compiler stdout:
 install: /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/
programs: =/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu/12.2.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../x86_64-pc-linux-gnu/bin/
libraries: =/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../x86_64-pc-linux-gnu/lib/x86_64-pc-linux-gnu/12.2.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../x86_64-pc-linux-gnu/lib/../lib/:/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../../x86_64-pc-linux-gnu/12.2.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../lib/:/lib/x86_64-pc-linux-gnu/12.2.1/:/lib/../lib/:/usr/lib/x86_64-pc-linux-gnu/12.2.1/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../x86_64-pc-linux-gnu/lib/:/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../../:/lib/:/usr/lib/

Compiler stderr:

Run-time dependency wayland-client found: YES 1.21.0
Pkg-config binary for 1 is cached.
Determining dependency 'wayland-egl' with pkg-config executable '/usr/bin/pkg-config'
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --modversion wayland-egl` -> 0
18.1.0
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --cflags wayland-egl` -> 0

env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --libs wayland-egl` -> 0
-L/usr/lib -lwayland-egl -lwayland-client
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --libs wayland-egl` -> 0
-lwayland-egl -lwayland-client
Run-time dependency wayland-egl found: YES 18.1.0
Pkg-config binary for 1 is cached.
Determining dependency 'egl' with pkg-config executable '/usr/bin/pkg-config'
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --modversion egl` -> 0
1.5
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --cflags egl` -> 0

env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --libs egl` -> 0
-L/usr/lib -lEGL
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --libs egl` -> 0
-lEGL
Run-time dependency egl found: YES 1.5
Pkg-config binary for 1 is cached.
Determining dependency 'mpv' with pkg-config executable '/usr/bin/pkg-config'
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --modversion mpv` -> 0
2.0.0
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --cflags mpv` -> 1

pkg-config error with 'mpv': Could not generate cargs for mpv:
Package ffnvcodec was not found in the pkg-config search path.
Perhaps you should add the directory containing `ffnvcodec.pc'
to the PKG_CONFIG_PATH environment variable
Package 'ffnvcodec', required by 'mpv', not found

Dependency lookup for mpv with method 'pkgconfig' failed: Could not generate cargs for mpv:
Package ffnvcodec was not found in the pkg-config search path.
Perhaps you should add the directory containing `ffnvcodec.pc'
to the PKG_CONFIG_PATH environment variable
Package 'ffnvcodec', required by 'mpv', not found

CMake binary for 1 is not cached
CMake binary missing from cross or native file, or env var undefined.
Trying a default CMake fallback at cmake
Found CMake: /usr/bin/cmake (3.25.2)
Extracting basic cmake information
CMake Toolchain: Calling CMake once to generate the compiler state
Calling CMake (['/usr/bin/cmake']) in /home/rishabh/.cache/yay/mpvpaper/src/build/meson-private/__CMake_compiler_info__ with:
  - "--trace-expand"
  - "--trace-format=json-v1"
  - "--no-warn-unused-cli"
  - "--trace-redirect=cmake_trace.txt"
  - "-G"
  - "Ninja"
  - "-DCMAKE_TOOLCHAIN_FILE=/home/rishabh/.cache/yay/mpvpaper/src/build/meson-private/__CMake_compiler_info__/CMakeMesonTempToolchainFile.cmake"
  - "."
Try CMake generator: auto
Calling CMake (['/usr/bin/cmake']) in /home/rishabh/.cache/yay/mpvpaper/src/build/meson-private/cmake_mpv with:
  - "--trace-expand"
  - "--trace-format=json-v1"
  - "--no-warn-unused-cli"
  - "--trace-redirect=cmake_trace.txt"
  - "-DCMAKE_TOOLCHAIN_FILE=/home/rishabh/.cache/yay/mpvpaper/src/build/meson-private/cmake_mpv/CMakeMesonToolchainFile.cmake"
  - "."
  -- Module search paths:    ['/', '/opt', '/usr', '/usr/local']
  -- CMake root:             /usr/share/cmake
  -- CMake architectures:    ['libpyldb-util.cpython-310-x86-64-linux-gnu.so', 'libpyldb-util.cpython-310-x86-64-linux-gnu.so.2', 'libpyldb-util.cpython-310-x86-64-linux-gnu.so.2.6.1', 'libpytalloc-util.cpython-310-x86-64-linux-gnu.so', 'libpytalloc-util.cpython-310-x86-64-linux-gnu.so.2', 'libpytalloc-util.cpython-310-x86-64-linux-gnu.so.2.3.4', 'libsamba-policy.cpython-310-x86-64-linux-gnu.so', 'libsamba-policy.cpython-310-x86-64-linux-gnu.so.0', 'libsamba-policy.cpython-310-x86-64-linux-gnu.so.0.0.1']
  -- CMake lib search paths: ['lib', 'lib32', 'lib64', 'libx32', 'share', 'lib/libpyldb-util.cpython-310-x86-64-linux-gnu.so', 'lib/libpyldb-util.cpython-310-x86-64-linux-gnu.so.2', 'lib/libpyldb-util.cpython-310-x86-64-linux-gnu.so.2.6.1', 'lib/libpytalloc-util.cpython-310-x86-64-linux-gnu.so', 'lib/libpytalloc-util.cpython-310-x86-64-linux-gnu.so.2', 'lib/libpytalloc-util.cpython-310-x86-64-linux-gnu.so.2.3.4', 'lib/libsamba-policy.cpython-310-x86-64-linux-gnu.so', 'lib/libsamba-policy.cpython-310-x86-64-linux-gnu.so.0', 'lib/libsamba-policy.cpython-310-x86-64-linux-gnu.so.0.0.1']
Preliminary CMake check failed. Aborting.
Run-time dependency mpv found: NO (tried cmake)

mpvpaper-1.3/meson.build:9:0: ERROR: Dependency lookup for mpv with method 'pkgconfig' failed: Could not generate cargs for mpv:
Package ffnvcodec was not found in the pkg-config search path.
Perhaps you should add the directory containing `ffnvcodec.pc'
to the PKG_CONFIG_PATH environment variable
Package 'ffnvcodec', required by 'mpv', not found
GhostNaN commented 1 year ago

Did you look at the error?

Package ffnvcodec was not found in the pkg-config search path. Perhaps you should add the directory containing `ffnvcodec.pc' to the PKG_CONFIG_PATH environment variable Package 'ffnvcodec', required by 'mpv', not found

You are missing ffnvcodec which is part of ffmpeg

GhostNaN commented 1 year ago

I just looked into the issue. It's dumb, but just install ffnvcodec-headers to meet the dependency.

GhostNaN commented 1 year ago

If the above solved your issue, please close the issue. As I have no control over mpv dependencies or that package in the AUR.

Rishabh672003 commented 1 year ago

yeah i am pretty dumb thanks for the help

GhostNaN commented 1 year ago

yeah i am pretty dumb thanks for the help

You're good mate. What's dumb is mpv suddenly having a hard dependency for a NVIDIA codec. But that's an upstream package maintainer issue now.

Next time when you have an error you don't understand, don't be afraid to just look it up.