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

amdgpu.h not found. #689

Closed
andy155 opened this issue Feb 18, 2022 · 4 comments
Closed

amdgpu.h not found. #689

andy155 opened this issue Feb 18, 2022 · 4 comments

Comments

@andy155
Copy link

andy155 commented Feb 18, 2022

FAILED: src/libMangoHud.so.p/gpu.cpp.o
ccache c++ -Isrc/libMangoHud.so.p -Isrc -I../../src -I../../include -Isubprojects/imgui-1.81 -I../../subprojects/imgui-1.81 -I../../subprojects/imgui-1.81/backends -I../../subprojects/spdlog-1.8.5/include -I../../subprojects/Vulkan-Headers-1.2.158/include -I. -I/usr/include/libdrm -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++14 -O3 -Werror=return-type -fno-math-errno -fno-trapping-math -Wno-non-virtual-dtor -Wno-missing-field-initializers -Wno-format-truncation -fPIC -pthread -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DPACKAGE_VERSION="v0.6.6"' -DSPDLOG_COMPILED_LIB -DNDEBUG -DSPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_INFO -D_GNU_SOURCE -DHAVE_PTHREAD -DUSE_GCC_ATOMIC_BUILTINS -DHAVE_TIMESPEC_GET -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE '-DMANGOHUD_ARCH="64bit"' -DHAVE_NVML -DHAVE_XNVCTRL -DHAVE_X11 -DHAVE_DBUS -DHAVE_LIBDRM_AMDGPU -DVK_USE_PLATFORM_XLIB_KHR -MD -MQ src/libMangoHud.so.p/gpu.cpp.o -MF src/libMangoHud.so.p/gpu.cpp.o.d -o src/libMangoHud.so.p/gpu.cpp.o -c ../../src/gpu.cpp
../../src/gpu.cpp:18:10: schwerwiegender Fehler: libdrm/amdgpu.h: Datei oder Verzeichnis nicht gefunden
18 | #include <libdrm/amdgpu.h>
| ^~~~~~~~~~~~~~~~~
Kompilierung beendet.

----libdrm/amdgpu.h: File or directory not found. This is obvious on an Nvidia system. How can I fix this ?

x11-drivers/nvidia-drivers-510.54
Linux version 5.16.9-gentoo (gcc (Gentoo 11.2.0 p1) 11.2.0, GNU ld (Gentoo 2.37_p1 p2) 2.37) #2 SMP PREEMPT Wed Feb 16 06:18:19 CET 2022

@andy155 andy155 changed the title amggpu.h not found. amdgpu.h not found. Feb 18, 2022
@jackun
Copy link
Collaborator

jackun commented Feb 18, 2022

#include <libdrm/amdgpu.h>

Build libdrm with amdgpu support, or how it works on gentoo ....

Or add -Dwith_libdrm_amdgpu=disabled as meson argument

@andy155
Copy link
Author

andy155 commented Feb 18, 2022

Danke! <3

@andy155 andy155 closed this as completed Feb 18, 2022
@thesamesam
Copy link

In future, if you hit a problem with Gentoo ebuilds, please file a bug in Gentoo so we can fix it! Thanks a bunch both. Reported downstream as https://bugs.gentoo.org/849749 and we'll get it sorted.

@andy155
Copy link
Author

andy155 commented Jun 7, 2022

Sry at that time I had built the Git version directly, no ebuild ;)

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

3 participants