[Libav-user] Undefined reference to `av_opt_set' when linking the FFMPEG-library with -lx264-flag
Anders Branderud
anders.branderud at gmail.com
Sun Mar 18 17:45:51 CET 2012
Hello!
Using 'Extern C' solved many of the problems, however one code line is
still causing an error.
Here follows the compilation and the error:
Invoking: GCC C++ Linker
g++ -o "videofecencode" ./sockets/PracticalSocket.o
./sockets/UDPEchoClient.o ./sockets/UDPEchoServer.o
./openfeclib/lib_stable/reed-solomon_gf_2_8/of_reed-solomon_gf_2_8.o
./openfeclib/lib_stable/ldpc_staircase/of_rand.o ./FecFunctionality.o
./videofecencoder.o -lm -lx264 -lpthread -lavformat -lavcodec -lavutil
-lopenfec
./videofecencoder.o: In function `video_encode_example':
/home/anders/workspace/videofecencode/Debug/../videofecencoder.cc:247:
undefined reference to `av_opt_set'
I followed these instructions in order to install FFMPEG and X264:
http://ubuntuforums.org/showthread.php?t=786095
Here is my code:
https://docs.google.com/document/d/1DbNpoy0MHNjS3ZV-6plaVdbmvW6g08riqtIz6fBO3ZE/edit
I appreciate help!
-- *Kind regards, Anders
*
[Personal blog] Will of the
Creator<http://www.proofexistencegod.com/will-of-god/will-of-god/> :
Logical
reasons - based on scientific premises - for the existence of a Super
intelligent and Orderly Creator and that He hasn't left His sapient
creatures without an Instruction Manual - Torah ['books of Moses'] - to
ascertain, and aspire to, His purpose.
[Company] Anders Branderud IT Solutions - www.abitsolutions.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120318/c6c8e24e/attachment.html>
More information about the Libav-user
mailing list