alexcaoys / notes-superbird

19 stars 2 forks source link

Run-time dependency libdrm found: NO (tried pkgconfig and cmake) #2

Closed Fexiven closed 3 months ago

Fexiven commented 3 months ago
The Meson build system
Version: 1.3.1
Source dir: /root/buildroot/output/build/wlroots-0.16.2
Build dir: /root/buildroot/output/build/wlroots-0.16.2/build
Build type: cross build
Project name: wlroots
Project version: 0.16.2
C compiler for the host machine: /root/buildroot/output/host/bin/aarch64-buildroot-linux-gnu-gcc (gcc 12.3.0 "aarch64-buildroot-linux-gnu-gcc.br_real (Buildroot 2024.05-rc2-43-g8b8f5e3366) 12.3.0")
C linker for the host machine: /root/buildroot/output/host/bin/aarch64-buildroot-linux-gnu-gcc ld.bfd 2.40
C compiler for the build machine: /usr/bin/gcc (gcc 13.2.0 "gcc (Ubuntu 13.2.0-23ubuntu4) 13.2.0")
C linker for the build machine: /usr/bin/gcc ld.bfd 2.42
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: aarch64
Host machine cpu: cortex-a53
Target machine cpu family: aarch64
Target machine cpu: cortex-a53
Compiler for C supports arguments -Wundef: YES
Compiler for C supports arguments -Wlogical-op: YES
Compiler for C supports arguments -Wmissing-include-dirs: YES
Compiler for C supports arguments -Wold-style-definition: YES
Compiler for C supports arguments -Wpointer-arith: YES
Compiler for C supports arguments -Winit-self: YES
Compiler for C supports arguments -Wstrict-prototypes: YES
Compiler for C supports arguments -Wimplicit-fallthrough=2: YES
Compiler for C supports arguments -Wendif-labels: YES
Compiler for C supports arguments -Wstrict-aliasing=2: YES
Compiler for C supports arguments -Woverflow: YES
Compiler for C supports arguments -Wmissing-prototypes: YES
Compiler for C supports arguments -Walloca: YES
Compiler for C supports arguments -Wno-missing-braces: YES
Compiler for C supports arguments -Wno-missing-field-initializers: YES
Compiler for C supports arguments -Wno-unused-parameter: YES
Compiler for C supports arguments -fmacro-prefix-map=/prefix/to/hide=: YES
Found pkg-config: YES (/root/buildroot/output/host/bin/pkgconf) 1.6.3
Run-time dependency wayland-server found: YES 1.22.0
Found CMake: /usr/bin/cmake (3.28.3)
Run-time dependency libdrm found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency libdrm

output/build/wlroots-0.16.2/meson.build:109:6: ERROR: Neither a subproject directory nor a libdrm.wrap file was found.

A full log can be found at /root/buildroot/output/build/wlroots-0.16.2/build/meson-logs/meson-log.txt
make: *** [package/pkg-generic.mk:273: /root/buildroot/output/build/wlroots-0.16.2/.stamp_configured] Error 1

What am i missing here? How can i get the meson libdrm library installed and working?

alexcaoys commented 3 months ago

Looks like a Buildroot dependencies problem. you might want to check out buildroot manual as well.

But essentially, installing the libdrm-dev package on the host should fix it.

Fexiven commented 3 months ago

Sadly its not done by just installing libdrm-dev

root@buildkit:~/buildroot# /root/buildroot/output/host/bin/pkgconf --modversion libdrm
Package libdrm was not found in the pkg-config search path.
Perhaps you should add the directory containing `libdrm.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libdrm', required by 'virtual:world', not found
Fexiven commented 3 months ago

i found out whats wrong... i had to run make libdrm. I was just to lazy to make clean