.avi wrote:
> 
> 
> 
> .avi wrote:
>> 
>> 
>> I din get any help :-(
>> 
>> i have reworked installing ffmpeg freshly, but no luck. I am yet unable
>> to compile tutorial01.c.
>> Due to this i am badly stuck, without being able to begin working on
>> FFMpeg.
>> 
>> Any hints or guidance will be of great help, as i am very new to FFMpeg.
>> 
>> And trying to run tutorial01.c from website
>> "http://www.dranger.com/ffmpeg/tutorial01.c";. 
>> Here is what happens. Its probably unable to link, but i am not able to
>> rectify.
>> 
>> a...@avi ~/ffmpeg
>> $ gcc -o tutorial01 tutorial01.c -lavutil -lavformat -lavcodec -lavutil
>> -lm
>> c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libavformat.a(rtsp.o):
>> In fu
>> nction `rtsp_parse_line':
>> ---
>> ---
>> c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libavformat.a(os_support.o):
>>  In function `ff_socket_nonblock':
>> C:/msys/home/Avi/ffmpeg/svn/libavformat/os_support.c:80: undefined
>> reference to
>> `ioctlsoc...@12'
>> collect2: ld returned 1 exit status
>> 
>> 
> 
> 
> Yeah!! the problem seems to be solved, :jumping:
> 
> Thought this would be helpful for newbies like me:
> 
> my understanding till now: {please correct me if i am wrong}
> 
> 1.while installing ffmpeg , the include and lib files are installed in
> /usr/local/include and /usr/local/lib folders respectively,
> 
> 2.when you run gcc command it looks for /mingw/include and /mingw/lib. 
> 
> 3.I copied the folders from /local into /mingw , but for some reason it
> still din work[was not able to link]. I feel i dont have sufficient
> knowledge yet to comment on that.
> 
> 4. then had to give the paths directly in the command line as given below,
> and this works. 
> 
> Command: 
> $ gcc -o tutorial01.exe tutorial01.c -I/usr/local/include -L/usr/local/lib
> -lavformat -lavcodec -lavutil -lm -lws2_32 -lvfw32
> 
> The following link helped me find a solution:
> Topic: output_example.c link undefined references using msys
> http://ffmpeg.arrozcru.com/forum/viewtopic.php?f=1&t=1164&p=3829&hilit=undefined+reference&sid=3249efee3c175d2e038ead2480d26d57#p3829
> 
> Regards
> Avinash P V
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Not-able-to-compile-C-program-using-libavcodec-n-libavformat-tp25531033p26012908.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