Menu

#857 MediaInfo CLI fails to build on FreeBSD

Crash
open
nobody
None
5
2014-06-22
2014-06-21
the-chorus
No

My apologies. I attempted to research and find a fix for this myself, but the code is just too far above my abilities to understand.

This is the error when attempting to compile on FreeBSD-9.2-amd64:


libtool: compile: g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libmediainfo\" -DVERSION=\"0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_HDIAINFO_LIBCURL_NO -DMEDIAINFO_LIBMMS_NO -I../../../Source/ThirdParty/md5 -I../../../Source/ThirdParty/tinyxml2 -I../../../Source/ThirdParty/base64 -fPIC -O2 -MT MediaInfo_Internal.lo -MD -MP -MF .deps/MediaInfo_Internal.Tpo -c ../../../Source/MediaInfo/MediaInfo_Internal.cpp -o MediaInfo_Internal.o


../../../Source/MediaInfo/MediaInfo_Internal.cpp: In member function 'size_t MediaInfoLib::MediaInfo_Internal::Open_Buffer_Init(ZenLib::int64u, const MediaInfoLib::String&)':


../../../Source/MediaInfo/MediaInfo_Internal.cpp:692: error: cannot convert 'const char' to 'const wchar_t' in assignment


*** [MediaInfo_Internal.lo] Error code 1


1 error


./CLI_Compile.sh: ./libmediainfo-config: not found


Problem while compiling MediaInfoLib

Discussion

  • the-chorus

    the-chorus - 2014-06-21

    I forgot to mention that this is the latest MediaInfo CLI version 0.7.69 attempting to compile from downloaded source code at:

    http://mediaarea.net/download/binary/mediainfo/0.7.69/MediaInfo_CLI_0.7.69_GNU_FromSource.tar.bz2

    FreeBSD does maintain a port of MediaInfo CLI 0.7.52 that compiles and works just fine to this day (June 20, 2014). I just can't seem to get the latest tarball to compile.

     
  • Jerome Martinez

    Jerome Martinez - 2014-06-21

    Ho... I did not compile the non-Unicode version for a while (why is it compile with --disable-unicode?)

    the line your are providing is no more in use in the current development version, and you'll get more errors if you try to patch.

    Next version should be compilable.
    MediaInfoLib patch, ZenLib patch
    (Don't spend time to try them with 0.7.69 source, they are not compatible)

     
  • the-chorus

    the-chorus - 2014-06-22

    I understand. I did not specifically add the --disable-unicode to the compile, but maybe that is the way FreeBSD 9.2 is set up by default. I may try again for fun just to see if I can get it to work, but it sounds like I should just wait for the next version, which is certainly fine.

    Thank you for your post and your excellent program.

     

Log in to post a comment.

MongoDB Logo MongoDB