libvmaf woe

ERROR: libvmaf >= 1.3.9 not found using pkg-config

test.c:3:54: error: _compute_vmaf‘ undeclared (first use in this function); did you mean ‘compute_vmaf‘?

even though that method is found in libvmaf.a, you can see it by running nm on the file.

This meant “in linux, ar somehow creates a .a file that mingw can still use, whoa, in os x, it can’t so creates a halfhearted one, *because* it was using the normal ar not the mingw cross one”

fix

https://github.com/Netflix/vmaf/issues/296

ibrary define global symbols)

/Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-g++ -s -o vmafossexec  /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/main.o libvmaf.a -pthread

/Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/lib/gcc/i686-w64-mingw32/8.2.0/../../../../i686-w64-mingw32/bin/ld: /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/main.o: in function `Z11run_wrapperPciiS_S_S_S_S_bbbbbbbS_iib’:

/Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/src/main.cpp:163: undefined reference to `read_frame’

/Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/lib/gcc/i686-w64-mingw32/8.2.0/../../../../i686-w64-mingw32/bin/ld: /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/src/main.cpp:163: undefined reference to `compute_vmaf’

collect2: error: ld returned 1 exit status

make[1]: *** [vmafossexec] Error 1

One thought on “libvmaf woe”

  1. it/wrapper/src/main.cpp
    ar rcs libvmaf.a /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/alloc.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/alignment.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/frame.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/file_io.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/cpu.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/convolution.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/convolution_avx.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/psnr_tools.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/adm.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/adm_tools.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/ansnr.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/ansnr_tools.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/vif.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/vif_tools.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/motion.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/psnr.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/math_utils.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/convolve.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/decimate.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/ssim_tools.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/ssim.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/ms_ssim.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/moment.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/svm.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/combo.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/all.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/vmaf.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/darray.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/libvmaf.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/pugixml.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/blur_array.o /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/win32/vmaf_git/wrapper/obj/cpu_info.o ../ptools/m2convertrep.o ../ptools/m2pythontools.o ../ptools/m2ser.o ../ptools/m2streamdataenc.o ../ptools/midassocket.o ../ptools/timeconv.o ../ptools/valprotocol2.o ../ptools/valpython.o
    warning: /Library/Developer/CommandLineTools/usr/bin/ranlib: warning for library: libvmaf.a the table of contents is empty (no object file members in the library define global symbols)

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.