kibsoft / QtMEL

Qt Media Encoding Library
GNU Lesser General Public License v2.1
67 stars 16 forks source link

Build QtMel with MSVC x64 problem #27

Open GMolini opened 9 years ago

GMolini commented 9 years ago

Hi, Im trying to build QtMel and its proving to be quite of a nightmare :P

First I had redefinitions errors, like the issue raised by @marcosuma, and reading that thread made me understand that I had to download the http://ffmpeg.zeranoe.com/builds/source/ffmpeg/ffmpeg-git-14d94a1.tar.bz2 version of libav. The problem is that I am not able to compile it, because when I try ./configure --toolchain=msvc it says that --toolchain is an unknown option. (As instructed in the ffmpeg install page). I have been able to compile the latest ffmpeg, although as stated before that doesnt seem to work here.

Do you know how to succesfully compile your code with MSVC x64? Thank you very much!

GMolini commented 9 years ago

Ok I actually managed to download the win64 dev version of that version of ffmpeg. (I downloaded this one http://ffmpeg.zeranoe.com/builds/win64/dev/ffmpeg-git-14d94a1-win64-dev.7z) Now I have the following error:

qrc_resources.obj:-1: error: LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in mousehelper_win.obj

I have read that this is due to compiling release version against dlls that are debug or viceversa. But I cant understand which library is giving the problem. Im trying to compile in release. OpenCV was compiled in release, and I have used it without problems in another project. Do you know why this could be happening?

Could any of the other libraries there be the problem? -ldsound, -lole32, -lwinmm...

A second error message also appears: qrc_resources.obj:-1: error: LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MT_StaticRelease' in abstractgrabber.obj

Any ideas? Im pretty stuck Thanks again!