Page 1 of 1

mediainfo fails to compile [solved]

Posted: 22. May 2014, 16:53
by ibka
Hi

I try to install mediainfo in 14.1 XFCE edition and openbox beta1 with spi but it fails with:

Code: Select all

../../../Source/Common/Core.cpp: In member function 'MediaInfoLib::String Core::StreamName(MediaInfoLib::stream_t)':
../../../Source/Common/Core.cpp:391:10: error: 'Stream_Chapters' was not declared in this scope
     case Stream_Chapters: return __T("Chapters");
          ^
make: *** [Core.o] Error 1
fakeroot -- sh mediainfo.SlackBuild Failed
libmediainfo and libzen is installed.
Any idea what it could be?
it was no problem to install it in 14.0

Re: mediainfo fails to compile

Posted: 23. May 2014, 09:37
by laprjns
Fails here will same error. Looks like there is a bug in the source package. The latest mediainfo version 0.7.69 does however builds and runs here. Do the following:

Code: Select all

 # VERSION=0.7.69 slapt-src -i mediainfo-gui
If it fails to download the source (as it did for me) you can manually download the source and but in in the slackbuild build directory:

Code: Select all

cd /usr/src/slapt-src/multimedia/mediainfo-gui/
root[mediainfo-gui]# wget http://mediaarea.net/download/source/mediainfo/0.7.69/mediainfo_0.7.69.tar.bz2
Then rerun the slapt-src command

Code: Select all

root[mediainfo-gui]# VERSION=0.7.69 slapt-src -i mediainfo-gui
Note that I have built mediainfo-gui, as it provides a gui interface to mediainfo. Both mediainfo and mediainfo-gui slackbuilds use the same source so you can build either package using the method I described above, just makesure that the 0.7.69 source package is in the correct build directory

Re: mediainfo fails to compile

Posted: 23. May 2014, 17:08
by ibka
Thanks!
Well i build 0.7.69 with my own SLKBUILD instead, and now i can put it in my own local repository.
This way i don't need to build it on every computer i want use it on.