I am creating a MediaInfo port for OpenBSD. So far I got libzen, libmediainfo and mediainfo CLI built with no problems, but GUI fails to build with rather obscure error message:
In file included from ../../../Source/GUI/Common/GUI_Main_Common_Core.cpp:8:
../../../Source/GUI/Common/GUI_Main_Common_Core.h:44: error: expected ',' or '...' before numeric constant
../../../Source/GUI/Common/GUI_Main_Common_Core.cpp:17: error: expected ',' or '...' before numeric constant
../../../Source/GUI/Common/GUI_Main_Common_Core.cpp: In constructor 'GUI_Main_Common_Core::GUI_Main_Common_Core(Core)':
../../../Source/GUI/Common/GUI_Main_Common_Core.cpp:20: error: invalid conversion from 'int' to 'Core'
I'm using "mediainfo_0.7.67.tar.bz2". GCC 4.2.1. What info could I also provide to help investigating this bug?
I think _C is already defined somewhere by your distro (which is normal, the name I am using is definitely stupid).
I changed the name to another (stupid too but I have no imagination :) ) name, could you try this patch?
I was absolutely sure "C" was not defined. Turns out it was. Anyway, I built the GUI after replacing "_C" with "Core" throughout sources (there were more files with it). FWIW my patch attached.
Thanks!