Menu

#834 MediaInfo GUI fails to build on OpenBSD

Crash
closed-fixed
None
5
2014-03-08
2014-03-08
No

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?

1 Attachments

Discussion

  • Jerome Martinez

    Jerome Martinez - 2014-03-08

    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?

     
  • Dmitrij D. Czarkoff

    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.

     
  • Jerome Martinez

    Jerome Martinez - 2014-03-08
    • status: open --> closed-fixed
    • assigned_to: Jerome Martinez
     
  • Jerome Martinez

    Jerome Martinez - 2014-03-08
     

Log in to post a comment.

MongoDB Logo MongoDB