kibsoft / QtMEL

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

Problem when building qtMEL on Ubuntu #22

Open marcosuma opened 10 years ago

marcosuma commented 10 years ago

Hi everyone, I am trying to compile qtmel library on Ubuntu, because .deb packages does not work on my system. I downloaded the library source code from GitHub repo but I had to modify it to compile it successfully; but when I tried to include that library on the cameraExample code it did not work. I have also tried to use the .a that came with the code and they did not work. Did anyone try to do that? Thanks in advance, Marco

kibsoft commented 10 years ago

Could you provide more information?

angelosalatino commented 10 years ago

Hi, I work with @marcosuma. We have downloaded the QtMEL (from here: https://dl.dropboxusercontent.com/u/77719957/QtMEL_Library.zip) and even if it is written on the web site that for Linux platform is partially done, we have tried to compile the examples on Ubuntu with the ffmpeg and opencv compiled, without any success. We have followed three ways: 1) use the examples with the compiled version of QtMEL by linking the static libraries in the .pro file of the example 2) tried to compile QtMEL on ubuntu (downloading the tar.gz archive). There were some issues with type (conflicts on AVBuffer and so on). At the end, we have solved them and compiled the library. However the generated library couldn't be used in the examples. 3) we have tried to use the .deb packages, but we were unable to install them due to some dependencies. No one of the three ways worked. Do exist a kind of procedure that allows to work on ubuntu? Thank you in advance.

marcosuma commented 10 years ago

This is what happen when i try to open qtmel library project in qt and i try to compile, after setting correctly .pro file. It seems to be errors caused by types redefinition. http://imageshack.com/a/img541/5746/ulg2.png

kibsoft commented 10 years ago

Got it. As I said before it happens because you use newest version of LibAV. You have to use http://ffmpeg.zeranoe.com/builds/source/ffmpeg/ffmpeg-git-14d94a1.tar.bz2 only this version.

marcosuma commented 10 years ago

Ok, I'll try soon

marcosuma commented 10 years ago

Ok, now compilation was successfull. But when I try to compile CameraExample, it unexpectedly finish immediately; in debug mode i can see the following error: https://imagizer.imageshack.us/v2/1146x651q90/856/66fi.png the .pro file is the following: https://imagizer.imageshack.us/v2/1146x651q90/812/qg2y.png What about?

kibsoft commented 10 years ago

Did you build LibAV with h264 support?

marcosuma commented 10 years ago

Yes, i compiled ffmpeg with the following "configure": ./configure --enable-gpl --enable-libass --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libspeex --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3 --enable-shared