Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#70825 - [usd] usdview should also be included in the package
Attached to Project:
Community Packages
Opened by Ashley Ruglys (ashley) - Wednesday, 12 May 2021, 20:19 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Tuesday, 25 May 2021, 21:09 GMT
Opened by Ashley Ruglys (ashley) - Wednesday, 12 May 2021, 20:19 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Tuesday, 25 May 2021, 21:09 GMT
|
DetailsDescription: I'm not 100% sure if this is in the scope for the package, but I would like to be able to use the usdview executable.
I haven't tested this on a chroot, but I believe this requires pyside2 to be installed. A QT user interface compiler also needs to be installed for the build. As https://github.com/PixarAnimationStudios/USD/issues/1419 mentions, USD expects `pyside2-uic` to be installed, but arch doesn't package it as qt5-base provides a `uic` binary. We need to provide a wrapper for the PKGFILE: ``` #!/bin/sh exec uic-qt5 -g python "$@" ``` and then use it like: --- old/PKGBUILD 2021-05-12 22:00:15.616557009 +0200 +++ PKGBUILD 2021-05-12 21:23:23.859873903 +0200 @@ -7,8 +7,8 @@ pkgdesc="3D VFX pipeline interchange fil arch=('x86_64') url="https://graphics.pixar.com/usd/docs/index.html" license=('Apache') -depends=('boost-libs' 'glew' 'openexr' 'opensubdiv' 'python') -makedepends=('boost' 'cmake' 'intel-tbb' 'ninja') +depends=('boost-libs' 'glew' 'openexr' 'opensubdiv' 'python' 'pyside2') +makedepends=('boost' 'cmake' 'intel-tbb' 'ninja' 'qt5-base') provides=("usd=${pkgver}") source=("$pkgname-$pkgver.tar.gz::https://github.com/PixarAnimationStudios/USD/archive/v${pkgver}.tar.gz") sha256sums=('165d0e1e45385076121268eba0da2a0ba4a7e5c2b8eab9ab26fb2fcd81a1a478') @@ -20,9 +20,10 @@ build() { -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr \ -DPXR_USE_PYTHON_3=ON \ - -DPXR_BUILD_IMAGING=OFF \ + -DPXR_BUILD_IMAGING=ON \ -DPXR_BUILD_TESTS=OFF \ - -DPXR_BUILD_MONOLITHIC=ON + -DPXR_BUILD_MONOLITHIC=ON \ + -DPYSIDEUICBINARY:PATH="$srcdir/../uic-wrapper" ninja -C build } ``` |
This task depends upon
I changed it to the name pyside2-uic which it looks for by default and set the path hint PYSIDE_BIN_DIR to $srcdir. See attached diff.
If the uic wrapper is needed at runtime then this will not work.