Package Details: mangohud-nonvidia 0.7.0-1

Git Clone URL: https://aur.archlinux.org/mangohud-nonvidia.git (read-only, click to copy)
Package Base: mangohud-nonvidia
Description: A Vulkan overlay layer for monitoring FPS, temperatures, CPU/GPU load and more (without NVIDIA support).
Upstream URL: https://github.com/flightlessmango/MangoHud
Keywords: hud vulkan
Licenses: MIT
Conflicts: mangoapp, mangoapp-nonvidia, MangoHud-common, MangoHud-common-wayland, MangoHud-common-x11, mangohud-nonvidia-common, mangohud-nonvidia-common-wayland, mangohud-nonvidia-common-x11, mangohud-nonvidia-wayland, mangohud-nonvidia-x11, MangoHud-wayland, MangoHud-x11
Replaces: mangoapp-nonvidia, mangohud-nonvidia-common, mangohud-nonvidia-common-wayland, mangohud-nonvidia-common-x11, mangohud-nonvidia-wayland, mangohud-nonvidia-x11
Submitter: realchonk
Maintainer: realchonk
Last Packager: realchonk
Votes: 6
Popularity: 0.002017
First Submitted: 2022-03-18 18:24 (UTC)
Last Updated: 2023-10-05 17:13 (UTC)

Latest Comments

1 2 Next › Last »

tfl5034 commented on 2023-08-27 01:19 (UTC)

I think the following patch would fix that specific error, but I ran into additional spd related errors that I didn't fix.

diff --git a/.SRCINFO b/.SRCINFO
index 51d73b9..6b9b252 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = mangohud-nonvidia
    pkgdesc = A Vulkan overlay layer for monitoring FPS, temperatures, CPU/GPU load and more (without NVIDIA support).
    pkgver = 0.6.9.1
-   pkgrel = 1
+   pkgrel = 2
    url = https://github.com/flightlessmango/MangoHud
    arch = x86_64
    arch = aarch64
@@ -24,12 +24,14 @@ pkgbase = mangohud-nonvidia
    source = https://wrapdb.mesonbuild.com/v2/imgui_1.81-1/get_patch#/imgui-1.81-1-wrap.zip
    source = Vulkan-Headers-1.2.158.tar.gz::https://github.com/KhronosGroup/Vulkan-Headers/archive/v1.2.158.tar.gz
    source = https://wrapdb.mesonbuild.com/v2/vulkan-headers_1.2.158-2/get_patch#/vulkan-headers-1.2.158-2-wrap.zip
+   source = 3f8f036ee8773ae1af23dd0848b6ab487b5ac7de.patch
    sha256sums = SKIP
    sha256sums = SKIP
    sha256sums = f7c619e03a06c0f25e8f47262dbc32d61fd033d2c91796812bf0f8c94fca78fb
    sha256sums = 6d00b442690b6a5c5d8f898311daafbce16d370cf64f53294c3b8c5c661e435f
    sha256sums = 53361271cfe274df8782e1e47bdc9e61b7af432ba30acbfe31723f9df2c257f3
    sha256sums = 860358cf5e73f458cd1e88f8c38116d123ab421d5ce2e4129ec38eaedd820e17
+   sha256sums = de977780b66afed7736784afea30e3159e9d77c57940254484a2c7ab95105ce8

 pkgname = mangohud-nonvidia
    depends = mangohud-nonvidia-common
diff --git a/3f8f036ee8773ae1af23dd0848b6ab487b5ac7de.patch b/3f8f036ee8773ae1af23dd0848b6ab487b5ac7de.patch
new file mode 100644
index 0000000..f507c8f
--- /dev/null
+++ b/3f8f036ee8773ae1af23dd0848b6ab487b5ac7de.patch
@@ -0,0 +1,21 @@
+From 3f8f036ee8773ae1af23dd0848b6ab487b5ac7de Mon Sep 17 00:00:00 2001
+From: FlightlessMango <flightlessmangoyt@gmail.com>
+Date: Sun, 7 May 2023 23:01:10 +0200
+Subject: [PATCH] params: add cstdint header
+
+---
+ src/overlay_params.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/overlay_params.h b/src/overlay_params.h
+index 8fa2485eb7..0878dca5b4 100644
+--- a/src/overlay_params.h
++++ b/src/overlay_params.h
+@@ -5,6 +5,7 @@
+ #include <string>
+ #include <vector>
+ #include <unordered_map>
++#include <cstdint>
+ 
+ #ifdef __cplusplus
+ extern "C" {
diff --git a/PKGBUILD b/PKGBUILD
index e4b698a..30e639d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
 pkgname=('mangohud-nonvidia' 'mangoapp-nonvidia' 'mangohud-nonvidia-common')
 pkgbase=mangohud-nonvidia
 pkgver=0.6.9.1
-pkgrel=1
+pkgrel=2
 _imgui_ver=1.81
 _vulkan_ver=1.2.158
 pkgdesc="A Vulkan overlay layer for monitoring FPS, temperatures, CPU/GPU load and more (without NVIDIA support)."
@@ -18,13 +18,15 @@ source=("git+https://github.com/flightlessmango/MangoHud.git#commit=${_commit}"
         "https://github.com/ocornut/imgui/archive/refs/tags/v${_imgui_ver}/imgui-${_imgui_ver}.tar.gz"
         "https://wrapdb.mesonbuild.com/v2/imgui_${_imgui_ver}-1/get_patch#/imgui-${_imgui_ver}-1-wrap.zip"
         "Vulkan-Headers-${_vulkan_ver}.tar.gz::https://github.com/KhronosGroup/Vulkan-Headers/archive/v${_vulkan_ver}.tar.gz"
-        "https://wrapdb.mesonbuild.com/v2/vulkan-headers_${_vulkan_ver}-2/get_patch#/vulkan-headers-${_vulkan_ver}-2-wrap.zip")
+        "https://wrapdb.mesonbuild.com/v2/vulkan-headers_${_vulkan_ver}-2/get_patch#/vulkan-headers-${_vulkan_ver}-2-wrap.zip"
+        "3f8f036ee8773ae1af23dd0848b6ab487b5ac7de.patch")
 sha256sums=('SKIP'
             'SKIP'
             'f7c619e03a06c0f25e8f47262dbc32d61fd033d2c91796812bf0f8c94fca78fb'
             '6d00b442690b6a5c5d8f898311daafbce16d370cf64f53294c3b8c5c661e435f'
             '53361271cfe274df8782e1e47bdc9e61b7af432ba30acbfe31723f9df2c257f3'
-            '860358cf5e73f458cd1e88f8c38116d123ab421d5ce2e4129ec38eaedd820e17')
+            '860358cf5e73f458cd1e88f8c38116d123ab421d5ce2e4129ec38eaedd820e17'
+            'de977780b66afed7736784afea30e3159e9d77c57940254484a2c7ab95105ce8')

 pkgver() {
   cd "$srcdir/MangoHud"
@@ -46,6 +48,9 @@ prepare() {
   # Use system cmocka instead of subproject
   sed -i "s/  cmocka = subproject('cmocka')//g" meson.build
   sed -i "s/cmocka_dep = cmocka.get_variable('cmocka_dep')/cmocka_dep = dependency('cmocka')/g" meson.build
+
+  # Patches to fix GCC 13.1.1 errors
+  git apply "$srcdir/3f8f036ee8773ae1af23dd0848b6ab487b5ac7de.patch"
 }

 build() {

tfl5034 commented on 2023-08-27 01:01 (UTC)

@edtoml, this error seems related to https://github.com/flightlessmango/MangoHud/issues/1015

edtoml commented on 2023-06-14 12:11 (UTC) (edited on 2023-06-14 12:11 (UTC) by edtoml)

This gets build errors on an up to date Arch, all the 'sub packages' get the same error. Ideas anyone?

Found ninja-1.11.1 at /usr/bin/ninja
INFO: autodetecting backend as ninja                                                                
INFO: calculating backend command to run: /usr/bin/ninja -C /home/ed/.cache/yay/mangohud-nonvidia/src/build
ninja: Entering directory `/home/ed/.cache/yay/mangohud-nonvidia/src/build'
[1/69] Generating src/overlay.frag.spv.h with a custom command
../MangoHud/src/overlay.frag
[10/69] Generating src/overlay.vert.spv.h with a custom command
../MangoHud/src/overlay.vert
[53/69] Compiling C++ object amdgpu.p/tests_test_amdgpu.cpp.o
FAILED: amdgpu.p/tests_test_amdgpu.cpp.o 
c++ -Iamdgpu.p -I. -I../MangoHud -I../MangoHud/include -Isubprojects/imgui-1.81 -I../MangoHud/subprojects/imgui-1.81 -I../MangoHud/subprojects/imgui-1.81/backends -flto=auto -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c++14 -Werror=missing-declarations -Werror=return-type -Wno-unused-parameter -fno-math-errno -fno-trapping-math -Wno-non-virtual-dtor -Wno-missing-field-initializers -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DPACKAGE_VERSION="v0.6.9"' -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 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -fPIE -DSPDLOG_SHARED_LIB -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -DTEST_ONLY -MD -MQ amdgpu.p/tests_test_amdgpu.cpp.o -MF amdgpu.p/tests_test_amdgpu.cpp.o.d -o amdgpu.p/tests_test_amdgpu.cpp.o -c ../MangoHud/tests/test_amdgpu.cpp
In file included from ../MangoHud/tests/../src/amdgpu.h:8,
                 from ../MangoHud/tests/test_amdgpu.cpp:9:
../MangoHud/tests/../src/overlay_params.h:229:21: error: ‘uint32_t’ is not a member of ‘std’; did you mean ‘wint_t’?
  229 |    std::vector<std::uint32_t> fps_limit;
      |                     ^~~~~~~~
      |                     wint_t
../MangoHud/tests/../src/overlay_params.h:229:21: error: ‘uint32_t’ is not a member of ‘std’; did you mean ‘wint_t’?
  229 |    std::vector<std::uint32_t> fps_limit;
      |                     ^~~~~~~~
      |                     wint_t
../MangoHud/tests/../src/overlay_params.h:229:29: error: template argument 1 is invalid
  229 |    std::vector<std::uint32_t> fps_limit;
      |                             ^
../MangoHud/tests/../src/overlay_params.h:229:29: error: template argument 2 is invalid
[61/69] Compiling C++ object src/libMangoApp.so.p/app_layer.cpp.o
../MangoHud/src/app/layer.cpp: In function ‘VkResult overlay_CreateInstance(const VkInstanceCreateInfo*, const VkAllocationCallbacks*, VkInstance_T**)’:
../MangoHud/src/app/layer.cpp:162:15: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  162 |         system(command.c_str());
      |         ~~~~~~^~~~~~~~~~~~~~~~~
[62/69] Compiling C++ object amdgpu.p/src_amdgpu.cpp.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...

realchonk commented on 2022-12-25 02:52 (UTC)

Sorry for the delay, I was busy unbricking my laptop. @anagram3k thanks for the solution, it's already pushed.

anagram3k commented on 2022-12-23 19:36 (UTC)

Changing the line:

ln -sf "$srcdir/imgui-$_imgui_ver" "$_srcdir/subprojects/imgui"

to:

ln -sf "$srcdir/imgui-$_imgui_ver" "$_srcdir/subprojects/imgui-$_imgui_ver"

worked for me.

caseyjp1 commented on 2022-12-21 05:47 (UTC)

Fails to build for me:

Checking for function "dlopen" : YES Checking for function "clock_gettime" : YES Checking for size of "void*" : 8

MangoHud-0.6.8/meson.build:251:0: ERROR: Automatic wrap-based subproject downloading is disabled

A full log can be found at /home/USER/.cache/yay/mangohud-nonvidia/src/build/meson-logs/meson-log.txt ==> ERROR: A failure occurred in build(). Aborting... -> error making: mangohud-nonvidia

realchonk commented on 2022-10-11 08:21 (UTC)

tfl5034, I hope this fixed it. Sorry for the inconvenience.

tfl5034 commented on 2022-10-11 04:05 (UTC) (edited on 2022-10-11 04:09 (UTC) by tfl5034)

Hi, the latest update didn't work for me. I have the same issue as bonohub13. I'm wondering if you also need to update the .SRCINFO file. Also the pkgrel variable should be bumped up.

realchonk commented on 2022-08-19 23:12 (UTC)

Thanks @bonohub13, I think I fixed it.

bonohub13 commented on 2022-08-19 22:23 (UTC)

I tried to recreate the issue by rebuilding it inside a Docker container, and managed to recreate it.

Here's the output when it failed to build:

Library spdlog found: YES
Run-time dependency spdlog found: YES 1.10.0
Program glslangValidator found: YES (/usr/sbin/glslangValidator)
Compiler for C supports link arguments -Wl,-Bsymbolic-functions: YES 
Compiler for C supports link arguments -Wl,-z,relro: YES 
Compiler for C supports link arguments -Wl,--exclude-libs,ALL: YES 
Compiler for C supports link arguments -lGL: YES 
Configuring MangoHud.json using configuration
Configuring mangohud using configuration
Configuring libMangoApp.json using configuration
Program appstreamcli found: NO

MangoHud-0.6.8/data/meson.build:7:0: ERROR: Program 'appstreamcli' not found or not executable