Hmm, alright. I got it to work, but I had to add -lfaac, -lmp3lame, and a few
other ones in order to compile. Since these seem like things that go along
nicely with ffmpeg, I was wondering if anyone had a working pkg-config
setting that would get the necessary files without the manual specification.

Anyway, thanks a lot for the help.


John Li-10 wrote:
> 
> I can compile your code with 
>  gcc -o test test_scan.c -lm -lz -lavcodec -lavformat -lavutil
> Not sure if this is the best place to ask questions on pkg-config
> 
> 
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of sngardner
> Sent: Tuesday, 24 March 2009 2:13 PM
> To: [email protected]
> Subject: Re: [libav-user] Library linking (avcodec, avformat)
> 
> 
> You are on the right track, I am a little confused as to why pkg-config
> didn't pick those up though. Does anyone have any idea what libs I need to
> specify to have pkg-config give me all the flags I need?
> 
> Thanks a lot for the help.
> 
> 
> sngardner wrote:
>> 
>> Hey Guys -
>> 
>> I am working on making some simple code for a class project I have, but
>> I've run into some issues getting things to compile correctly. I am using
>> the latest SVN (r18168). 
>> 
>> The code I am using is really simple, but it errors out (with undefined
>> references) whenever I call even the simplest libav method. In this case,
>> all I am calling is av_register_all().
>> 
>> /usr/local/lib/libavformat.a(matroskadec.o): In function
>> `matroska_decode_buffer':
>> /home/sam/workspace/CS640.Project.Main/ffmpeg/libavformat/matroskadec.c:896:
>> undefined reference to `inflateInit_'
>> /home/sam/workspace/CS640.Project.Main/ffmpeg/libavformat/matroskadec.c:905:
>> undefined reference to `inflate'
>> /home/sam/workspace/CS640.Project.Main/ffmpeg/libavformat/matroskadec.c:908:
>> undefined reference to `inflateEnd'
>> 
>> ... more of the same
>> 
>> Does anyone have any idea what might be going on? I used 
>> http://ubuntuforums.org/showthread.php?t=786095  this  method to compile
>> and build everything, and I just used a simple pkg-config in my makefile
>> to get the library locations.
>> 
>> If anyone has seen anything like this, I'd really appreciate any help you
>> could give me. I am really at my wits end with this. I've attached my
>> Makefile and source, if it would help anyone 
>> 
>>  http://www.nabble.com/file/p22654321/Makefile Makefile 
>> 
>>  http://www.nabble.com/file/p22654321/test_scan.c test_scan.c 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Library-linking-%28avcodec%2C-avformat%29-tp22654321p22673593.html
> Sent from the libav-users mailing list archive at Nabble.com.
> 
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Library-linking-%28avcodec%2C-avformat%29-tp22654321p22693078.html
Sent from the libav-users mailing list archive at Nabble.com.

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to