Package Details: lib32-vmaf 3.0.0-1

Git Clone URL: https://aur.archlinux.org/lib32-vmaf.git (read-only, click to copy)
Package Base: lib32-vmaf
Description: Perceptual video quality assessment algorithm based on multi-method fusion (32 bit)
Upstream URL: https://github.com/Netflix/vmaf/
Licenses: BSD
Submitter: oxalin
Maintainer: oxalin
Last Packager: oxalin
Votes: 4
Popularity: 0.090809
First Submitted: 2020-05-12 13:00 (UTC)
Last Updated: 2024-02-26 00:06 (UTC)

Latest Comments

« First ‹ Previous 1 2

sl1pkn07 commented on 2020-08-14 13:57 (UTC) (edited on 2020-08-14 13:58 (UTC) by sl1pkn07)

@sl1pkn07 : with the official PKGBUILD, do you have a vcs_version.h file created under ./src/vmaf-1.5.2/libvmaf/build/include ? This is what your error message is pointing at.

that is because try to build the code outside the source tree. the "configure" script execute git, and not found the sources in the build folder

oxalin commented on 2020-07-12 05:51 (UTC)

@sl1pkn07 : with the official PKGBUILD, do you have a vcs_version.h file created under ./src/vmaf-1.5.2/libvmaf/build/include ? This is what your error message is pointing at.

oxalin commented on 2020-07-12 05:39 (UTC)

@sl1pkn07 : this is not a proper fix. This reverts the library and executable packages split, re-enables useless check(), uses arch-meson which I prefer not to use (it is a wrapper over meson), etc.

Reinstalling the packages did not show any problem on my system. I'll have a deeper look at this in the next few days. Stay tune.

sl1pkn07 commented on 2020-07-06 15:00 (UTC) (edited on 2020-07-06 15:01 (UTC) by sl1pkn07)

fixed with

# Maintainer: Alexandre Demers <alexandre.f.demers@gmail.com>

pkgname=lib32-vmaf
pkgver=1.5.2
pkgrel=1
pkgdesc='Perceptual video quality assessment algorithm based on multi-method fusion (32 bit)'
arch=('x86_64')
url='https://github.com/Netflix/vmaf/'
license=('BSD')
depends=(
        "vmaf"
        'lib32-gcc-libs'
    )
makedepends=(
        'meson'
#        'meson-cross-x86-linux-gnu>=1.0.4'
        'ninja'
    )
source=("vmaf-${pkgver}.tar.gz"::"https://github.com/Netflix/vmaf/archive/v${pkgver}.tar.gz")
sha256sums=('5f7785da0b0d66b2513ce11d3f81d0a9b3f79d49483c4652fde3a31c13f644da')

prepare() {
    mkdir -p "vmaf-${pkgver}/libvmaf/build"
}

build() {
    export CC="gcc -m32"
    export CXX="g++ -m32"
    export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"

    arch-meson "vmaf-${pkgver}/libvmaf/build" "vmaf-${pkgver}/libvmaf" \
        --prefix=/usr \
        --libdir=lib32 \
        -D enable_docs=false

    ninja -v -C "vmaf-${pkgver}/libvmaf/build"
}

check() {
    ninja -v -C "vmaf-${pkgver}/libvmaf/build" test
}

package() {
    DESTDIR="$pkgdir" ninja -v -C "vmaf-${pkgver}/libvmaf/build" install

    install -D -m755 "vmaf-${pkgver}/libvmaf/build/tools"/vmaf_{feature,rc} -t "${pkgdir}/usr/bin"

    # Use the same naming scheme as the one in the lib32-shaderc-git package for coherence
    # Arch wiki suggest to use the "-32" suffix for 32 bit executables: https://wiki.archlinux.org/index.php/32-bit_package_guidelines
    for i in "${pkgdir}/usr/bin/"*; do
        mv "$i" "$i"-32
    done

    rm -r "$pkgdir"/usr/{include,share}

    install -D -m644 "vmaf-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

sl1pkn07 commented on 2020-07-06 14:46 (UTC)

[45/88] /usr/bin/meson --internal vcstagger ../include/vcs_version.h.in include/vcs_version.h 1.5.2 /tmp/makepkg/lib32-vmaf/src/vmaf-1.5.2/libvmaf/include @VCS_TAG@ '(.*)' /usr/bin/git --git-dir /tmp/makepkg/lib32-vmaf/src/vmaf-1.5.2/libvmaf/../.git describe --tags --long --match '?.*.*' --always
fatal: no es un repositorio git: '/tmp/makepkg/lib32-vmaf/src/vmaf-1.5.2/libvmaf/../.git'

FAILED: src/25a6634@@vmaf_rc@sha/libvmaf.rc.c.o 
gcc -m32 -Isrc/25a6634@@vmaf_rc@sha -Isrc -I../src -I../src/third_party/ptools/opencontainers_1_8_4/include -I../src/feature -I../src/feature/common -I../src/third_party/ptools -Iinclude -I../include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c99 -O3 -D_GNU_SOURCE -march=native -O2 -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -pthread -pedantic -DOC_NEW_STYLE_INCLUDES -MD -MQ 'src/25a6634@@vmaf_rc@sha/libvmaf.rc.c.o' -MF 'src/25a6634@@vmaf_rc@sha/libvmaf.rc.c.o.d' -o 'src/25a6634@@vmaf_rc@sha/libvmaf.rc.c.o' -c ../src/libvmaf.rc.c
En el fichero incluido desde ../include/libvmaf/libvmaf.rc.h:27,
                 desde ../src/libvmaf.rc.c:26:
../include/libvmaf/feature.h:24:1: aviso: la definición de datos no tiene tipo o clase de almacenamiento
   24 | vmaf_feature_dictionary_set(VmafFeatureDictionary **dict, char *key, char *val);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/libvmaf/feature.h:24:1: aviso: el tipo de dato por defecto es ‘int’ en la declaración de ‘vmaf_feature_dictionary_set’ [-Wimplicit-int]
En el fichero incluido desde ../src/libvmaf.rc.c:33:
../src/model.h:63:3: aviso: redefinición de la definición de tipo ‘VmafModel’ [-Wpedantic]
   63 | } VmafModel;
      |   ^~~~~~~~~
En el fichero incluido desde ../include/libvmaf/libvmaf.rc.h:25,
                 desde ../src/libvmaf.rc.c:26:
../include/libvmaf/model.h:22:26: nota: la declaración previa de ‘VmafModel’ estaba aquí
   22 | typedef struct VmafModel VmafModel;
      |                          ^~~~~~~~~
../src/libvmaf.rc.c:38:10: error fatal: vcs_version.h: No existe el fichero o el directorio
   38 | #include "vcs_version.h"
      |          ^~~~~~~~~~~~~~~
compilación terminada.