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

java xsd xml validation woe

org.xml.sax.SAXParseException; systemId: file:/…/gedcomx.xsd; lineNumber: 622; columnNumber: 62; cos-nonambig: WC[##any] and “http://gedcomx.org/v1/”:link (or elements from their substitution group) violate “Unique Particle Attribution”. During validation against this schema, ambiguity would be created for those two particles.

meant “validate with saxparser instead” (wait what???)

https://stackoverflow.com/a/53787288/32453

ffmpeg cross compile woe

compiling sources/Base/Util.cpp
compiling sources/Base/Timezone.cpp
In file included from ./include/Base/Util.h:20:0,
from sources/Base/Util.cpp:17:
./include/Base/Parameters.h: In static member function ‘static const Base::Parameters& Base::Util::Environment()’:
./include/Base/Parameters.h:83:172: warning: argument 1 null where non-null expected [-Wnonnull]
const std::string& setString(const std::string& key, const char* value, std::size_t size = std::string::npos) { return setParameter(key, value, size == std::string::npos ? strlen(value) : size); }
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include/c++/7.1.0/cstring:42:0,
from ./include/Base/Mona.h:24,
from ./include/Base/Util.h:19,
from sources/Base/Util.cpp:17:
/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include/string.h:64:18: note: in a call to function ‘size_t strlen(const char*)’ declared here
size_t __cdecl strlen(const char *_Str);
^~~~~~

compiling sources/FlashWriter.cpp
compiling sources/Base/IPAddress.cpp
compiling sources/Base/BufferPool.cpp
sources/Base/IPAddress.cpp:22:10: fatal error: Iphlpapi.h: No such file or directory
#include <Iphlpapi.h>
^~~~~~~~~~~~
compilation terminated.
Makefile:90: recipe for target ‘tmp/Release/Base/IPAddress.o’ failed
make[1]: *** [tmp/Release/Base/IPAddress.o] Error 1
compiling sources/Base/UDPSocket.cpp
compiling sources/Base/Thread.cpp

 

meant this

Roger's meanderings, notes to himself, bug reports, and other things