Package Details: vulkan-caps-viewer 2.02-1

Git Clone URL: https://aur.archlinux.org/vulkan-caps-viewer.git (read-only)
Package Base: vulkan-caps-viewer
Description: Vulkan Hardware Capability Viewer
Upstream URL: http://vulkan.gpuinfo.org/
Keywords: gpu vulkan
Licenses: GPL2
Submitter: 1ace
Maintainer: 1ace
Last Packager: 1ace
Votes: 42
Popularity: 1.68
First Submitted: 2016-02-21 21:17
Last Updated: 2019-10-08 22:27

Latest Comments

1 2 Next › Last »

yochananmarqos commented on 2019-10-08 23:50

Well, what about vulkan-headers-git then?

If the package requires qt5-base then there's no need for it to be in makedepends.

Building needs to be in the build() array, not in prepare().

Here's an improved PKGBUILD using a submodule.:

EDIT: It does need a little more tweaking as it complains at the mv command without doing a clean build.

pkgname=vulkan-caps-viewer
pkgver=2.02
pkgrel=1
pkgdesc='Vulkan Hardware Capability Viewer'
arch=('x86_64')
url="http://vulkan.gpuinfo.org"
license=('GPL2')
depends=('vulkan-icd-loader' 'qt5-base' 'qt5-x11extras')
makedepends=('git')
source=("$pkgname-$pkgver.tar.gz::https://github.com/SaschaWillems/VulkanCapsViewer/archive/$pkgver.tar.gz"
        'git+https://github.com/KhronosGroup/Vulkan-Headers.git')
sha1sums=('bd4edf5510968bd5c9c2bce0deb4c048b7ddf966'
          'SKIP')

prepare() {
  cd "$srcdir/Vulkan-Headers"
  git submodule init
  mv "$srcdir/Vulkan-Headers/"* "$srcdir/VulkanCapsViewer-$pkgver/Vulkan-Headers"

  # HACK: the last commit of 2.02 explicitely breaks the build; probably wasn't intended to be pushed out
  sed 's#"/Vulkan-Headers/include"#"./Vulkan-Headers/include"#' -i \
    "$srcdir/VulkanCapsViewer-$pkgver/vulkanCapsViewer.pro"
}

build() {
  if [ -d build ]
  then
    msg2 "Build dir already exist; performing an incremental build"
    msg2 "If you want to perform a clean build, please delete $(realpath build)"
    return
  fi

  mkdir build
  cd build
  export PREFIX="$pkgdir"
  qmake \
    QMAKE_CFLAGS="$CFLAGS" \
    QMAKE_CXXFLAGS="$CXXFLAGS" \
    QMAKE_LFLAGS="$LDFLAGS" \
    PREFIX=/usr \
    ../VulkanCapsViewer-$pkgver

  make
}

package() {
  make -C build INSTALL_ROOT="$pkgdir/" install

  # There's a bug preventing this from being installed automatically
  install -Dm644 VulkanCapsViewer-$pkgver/gfx/android_icon_256.png \
    "$pkgdir"/usr/share/icons/hicolor/256x256/apps/vulkanCapsViewer.png
}

1ace commented on 2019-10-08 23:08

No, the point is precisely to use the latest headers, regardless of what is currently shipped in the arch package.

yochananmarqos commented on 2019-10-08 22:52

Can the vulkan-headers package be used instead of the submodule? Isn't there a qmake flag to force it to use system libs?

1ace commented on 2019-10-08 19:09

I'm aware, I've already update the vulkan-caps-viewer-bin package, but there's an issue upstream with the tarball that prevents it from building.

I'm talking to the upstream maintainer to find a solution, and may have to hack it in the package to make it build, but I'll wait for now as I would prefer a clean upstream solution.

yochananmarqos commented on 2019-10-08 18:42

For some reason I can't flag anything out of date today. v2.02 is out: https://github.com/SaschaWillems/VulkanCapsViewer/releases/tag/2.02

EDIT: It turns out it is being marked out of date, but it doesn't show it here.

ssorgatem commented on 2018-10-02 10:18

It's failing to build for me:

' In file included from vulkanDeviceInfo.hpp:42, from vulkancapsviewer.h:14, vulkanresources.h:355:14: error: explicit specialization in non-namespace scope ‘class vulkanResources’ ^ vulkanresources.h:361:14: error: explicit specialization in non-namespace scope ‘class vulkanResources’ template<> ^ In file included from vulkancapsviewer.h:14, from main.cpp:1: GeneratedFiles/release/../../vulkanresources.h:355:14: error: explicit specialization in non-namespace scope ‘class vulkanResources’ template<> ^ template<> In file included from GeneratedFiles/release/../../vulkancapsviewer.h:14, GeneratedFiles/release/../../vulkanDeviceInfo.hpp: In member function ‘QJsonObject VulkanDeviceInfo::toJson(std::cxx11::string, std::cxx11::string, std::__cxx11::string)’: template<> ^ QJsonObject toJson(std::string fileName, std::string submitter, std::string comment) In file included from vulkancapsviewer.cpp:41: vulkancapsviewer.cpp: In member function ‘void vulkanCapsViewer::displayDevice(int)’: vulkancapsviewer.cpp:710:15: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<vulkandeviceinfo>::size_type’ {aka ‘long unsigned int’} [-make: *** [Makefile:1040: release/vulkancapsviewer.o] Error 1 '</vulkandeviceinfo>

HeroCC commented on 2018-08-30 02:25

@ecloud try the fix here: https://wiki.archlinux.org/index.php/AMDGPU#Enable_Southern_Islands_.28SI.29_and_Sea_Islands_.28CIK.29_support

ecloud commented on 2017-10-25 08:15

"Could not enumarted device count!" [sic]

It's a typo, bad grammar _and_ unexpected behavior all in one.

lspci says

02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Pitcairn PRO [Radeon HD 7850 / R7 265 / R9 270 1024SP]

It works fine for X11, wayland and OpenGL.

OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.2.2

But other Vulkan programs give VK_ERROR_INITIALIZATION_FAILED.

1ace commented on 2017-05-29 13:40

Just realized I forgot to reply to everyone lately:

krant: added (6 months ago ^^), thanks!

pums974: this error came from the server, not the client. I expect it's been solved a long time ago though.

hcorion: renaming packages is a pain (getting users to move to the new package), so I won't be doing this, but I'll try and think about it next time :)
lubosz has made a -git version of this package that compiles from source (with a couple needed changes to the sources to make it compile), which I was planing on doing at some point but didn't have the time (and kinda forgot). Thanks lubosz!

dkadioglu: just pushed your change, and I should've known it was needed. Like I said though, I don't use anything that shows these icons, so I couldn't see for myself it was broken.

dkadioglu commented on 2017-03-18 18:10

The icon is not shown in the menu in KDE. If I change the icon name in the PKGBUILD to vulkanCapsViewer, the same as it is named in the desktop file, and change the path where to copy it to /usr/share/icons/hicolor/256x256/apps then it works. Maybe you can check that and change it in the PKGBUILD. Thanks.