#854 Build with CMake and MinGW on Windows

Incorrect_result
open
nobody
None
5
2014-06-09
2014-06-05
Ivan Romanov
No

Hello.

Not it is not possible to build libmediainfo on Windows with MinGW so I did some cmake fixes for this. You can look at my repo https://github.com/drizt/libmediainfo-all-inclusive with these fixes. For building I used Windows 7 x64, Command Line, MinGW from Qt-5.2.1 and sure CMake.

Discussion

  • Great!

    I actually did not touch to CMake files for a long time, it is good that someone who really use CMake can modify them.
    If you agree, I'll add the CMake files to MediaInfo official repository.

    Did you change something else?

    (And I definitely need to use Git and GitHub... :( )

     
  • Ivan Romanov
    Ivan Romanov
    2014-06-05

    I only added #include <time.h> to zenlib to fix compilation on MinGW.

     
  • Ivan Romanov
    Ivan Romanov
    2014-06-05

    It will very good if you will add CMake files to MediaInfo official repository. I can/want do some improvments.

     
  • I can/want do some improvements.

    It would be appreciated.

     
  • Ivan Romanov
    Ivan Romanov
    2014-06-07

    Do you use zlib 1.2.5 in all inclusive archive? Now the latest version is 1.2.8. It is correctly building with MinGW so you can just update zlib in your all inclusive archive.

     
  • Ivan Romanov
    Ivan Romanov
    2014-06-09

    I finished cmake scripts for ZenLib and MediaInfoLib. Take these from my git repo. I tested it on Windows/MinGW and Linux.