rexxster / qtffmpegwrapper

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

Can't compile QVideoEncoder #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. remove paths from config.pro 
2. qmake config.pro
3. make

What do you see instead?

The QVideoEncoding compilation fails:
g++ -m64 -Wl,-O1 -o config QVideoEncoder.o QVideoDecoder.o    -L/usr/lib 
-lavutil -lavcodec -lavformat -lswscale -lQtGui -lQtCore -lpthread 
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 0 has invalid symbol index 11
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 1 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 2 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 3 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 4 has invalid symbol index 11
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 5 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 6 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 7 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 8 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 9 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 10 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 11 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 12 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 13 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 14 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 15 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 16 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 17 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 18 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 19 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 20 has invalid symbol index 20
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/../../../crt1.o: In 
function `_start':
(.text+0x20): undefined reference to `main'
QVideoEncoder.o: In function `QVideoEncoder::createFile(QString, unsigned int, 
unsigned int, unsigned int, unsigned int)':
QVideoEncoder.cpp:(.text+0x2fc): undefined reference to `guess_format'
QVideoEncoder.cpp:(.text+0x654): undefined reference to `guess_format'
collect2: ld returned 1 exit status
make: *** [config] Fehler 1

However, it works, if I remove the two guess_format calls from QVideoEncoder.cpp

What version of the product are you using? On what operating system?

System configuration: Debian wheezy
with 
ii  ffmpeg                                5:0.8-0.1                        
audio/video encoder, streaming server & audio/video file converter.
ii  gstreamer0.10-ffmpeg                  1:0.10.11-4.1                    
FFmpeg plugin for GStreamer
rc  libavcodec51                          0.svn20080206-18                 
ffmpeg codec library
ii  libavdevice52                         5:0.6.3-0.0                      
ffmpeg device handling library
rc  libavfilter0                          4:0.5.2-1                        
ffmpeg video filtering library
ii  libavformat52                         5:0.6.3-0.0                      
ffmpeg file format library
ii  libavutil49                           4:0.5.2-6                        
ffmpeg utility library
ii  libswscale0                           5:0.6.3+git20110613-0.1          
ffmpeg video scaling library

Original issue reported on code.google.com by benib...@googlemail.com on 4 Aug 2011 at 10:07

GoogleCodeExporter commented 8 years ago
It seems you are using a newer version of ffmpeg than the one against which 
QtFFmpegWrapper was tested. The function 'guess_format' has been renamed 
av_guess_format in recent versions of ffmpeg.

The release 2011-09-21 fixes this problem: it is built against a recent ffmpeg, 
and the wrapper classes were adapted accordingly.

Try again the new wrapper.

Original comment by droggen on 21 Sep 2011 at 9:06