[libav-tools] Fail to build avprobe.c by myself...

JIA Pei jp4work at gmail.com
Sun Jul 29 01:21:10 CEST 2012


Hi, all:

Sorry for my naive question again. I just cannot successfully build the
file avprobe.c,
with the other 3 .h files including: config.h, cmdutils.h,
cmdutils_common_opts.h .

Errors are telling

> make all
> Building target: avprobe
> Invoking: GCC C++ Linker
> g++ -L/usr/lib/i386-linux-gnu -o "avprobe"  ./avprobe.o   -lavutil
> -lavdevice -lavfilter -lavformat -lavcodec
> ./avprobe.o: In function `open_input_file':
> /home/pei/MyPrograms/C++/Eclipse/QtJPAVCSR/avprobe/Debug/../avprobe.c:298:
> undefined reference to `format_opts'
> /home/pei/MyPrograms/C++/Eclipse/QtJPAVCSR/avprobe/Debug/../avprobe.c:300:
> undefined reference to `print_error'
> /home/pei/MyPrograms/C++/Eclipse/QtJPAVCSR/avprobe/Debug/../avprobe.c:303:
> undefined reference to `format_opts'
> /home/pei/MyPrograms/C++/Eclipse/QtJPAVCSR/avprobe/Debug/../avprobe.c:311:
> undefined reference to `print_error'
> ./avprobe.o: In function `show_help':
> /home/pei/MyPrograms/C++/Eclipse/QtJPAVCSR/avprobe/Debug/../avprobe.c:390:
> undefined reference to `log_callback_help'
> /home/pei/MyPrograms/C++/Eclipse/QtJPAVCSR/avprobe/Debug/../avprobe.c:392:
> undefined reference to `show_help_options'
> /home/pei/MyPrograms/C++/Eclipse/QtJPAVCSR/avprobe/Debug/../avprobe.c:394:
> undefined reference to `show_help_children'
> ./avprobe.o: In function `main':
> /home/pei/MyPrograms/C++/Eclipse/QtJPAVCSR/avprobe/Debug/../avprobe.c:430:
> undefined reference to `parse_loglevel'
> /home/pei/MyPrograms/C++/Eclipse/QtJPAVCSR/avprobe/Debug/../avprobe.c:433:
> undefined reference to `init_opts'
> /home/pei/MyPrograms/C++/Eclipse/QtJPAVCSR/avprobe/Debug/../avprobe.c:438:
> undefined reference to `show_banner'
> /home/pei/MyPrograms/C++/Eclipse/QtJPAVCSR/avprobe/Debug/../avprobe.c:439:
> undefined reference to `parse_options'
> ./avprobe.o:(.rodata+0x7c8): undefined reference to `show_license'
> ./avprobe.o:(.rodata+0x82c): undefined reference to `show_version'
> ./avprobe.o:(.rodata+0x840): undefined reference to `show_formats'
> ./avprobe.o:(.rodata+0x854): undefined reference to `show_codecs'
> ./avprobe.o:(.rodata+0x868): undefined reference to `show_bsfs'
> ./avprobe.o:(.rodata+0x87c): undefined reference to `show_protocols'
> ./avprobe.o:(.rodata+0x890): undefined reference to `show_filters'
> ./avprobe.o:(.rodata+0x8a4): undefined reference to `show_pix_fmts'
> ./avprobe.o:(.rodata+0x8b8): undefined reference to `show_sample_fmts'
> ./avprobe.o:(.rodata+0x8cc): undefined reference to `opt_loglevel'
> ./avprobe.o:(.rodata+0x8e0): undefined reference to `opt_loglevel'
> ./avprobe.o:(.rodata+0x9a8): undefined reference to `opt_default'
> collect2: ld returned 1 exit status
> make: *** [avprobe] Error 1
> **** Build Finished ****


Probably, I've already included all the linked libraries required by
avprobe.c, right?

Anyway, can anybody give me some suggestions?

Cheers
Pei



-- 

Pei JIA

Email: jp4work at gmail.com
cell:    +1 604-362-5816

Welcome to Vision Open
http://www.visionopen.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libav.org/pipermail/libav-tools/attachments/20120728/d3f43e7f/attachment.html>


More information about the libav-tools mailing list