LGhassen / cosmographia

Automatically exported from code.google.com/p/cosmographia
0 stars 0 forks source link

failure to build with ffmpeg support on Linux #24

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. get Cosmographia sources
2. get QTFFMPEGWRAPPER sources and put them under thirdparty 
3. edit cosmographia.pro to enable FFMPEG support
4. build

What is the expected output? What do you see instead?
Expected: program compiles
What I see: compilation errors
How to fix it:
- add "using namespace ffmpeg;" to the end of ffmpeg.h (see 
http://code.google.com/p/qtffmpegwrapper/issues/detail?id=2&colspec=ID%20Type%20
Status%20Priority%20Milestone%20Owner%20Summary%20Opened%20Closed%20Modified )
- add in -DSTDC_CONSTANT_MACROS to CXXFLAGS in cosmographia.pro
- move the methods "unsigned getWidth();" and "unsigned getHeight();" in 
QVideoEncoder into the public section (they are being used in Cosmographia.cpp)

What version of the product are you using? On what operating system?
latest SVN, Ubuntu 12.04 64bits

Please provide any additional information below.
QTFFMPEGWRAPPER does not seem to be maintained anymore ( 
http://code.google.com/p/qtffmpegwrapper/issues/list ). Issue 1 and 2 seems to 
be old issues. Therefore, it would probably be best if the package was imported 
into cosmographia and fixed there (that's only 5 source files: QVideoEncoder.h, 
QVideoEncoder.cpp, QVideoDecoder.h, QVideoDecoder.cpp, ffmpeg.h. The ffmpeg 
library itself should of course not be delivered with Cosmographia).

Original issue reported on code.google.com by bernard....@gmail.com on 4 Mar 2013 at 5:36