.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.
> 
> I am using :
> 
> FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
>   configuration: --enable-memalign-hack
>   libavutil     49.15. 0 / 49.15. 0
>   libavcodec    52.20. 0 / 52.20. 0
>   libavformat   52.31. 0 / 52.31. 0
>   libavdevice   52. 1. 0 / 52. 1. 0
>   built on Oct 22 2009 00:04:22, gcc: 3.4.5 (mingw special)
> 
> 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/home/Avi/ffmpeg/svn/libavformat/rtsp.c:660: undefined reference to
> `ntoh
> l...@4'
> c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libavformat.a(rtsp.o):
> In fu
> nction `rtsp_read_header':
> C:/msys/home/Avi/ffmpeg/svn/libavformat/rtsp.c:1028: undefined reference
> to `hto
> n...@4'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/rtsp.c:1029: undefined reference
> to `ine
> t_n...@4'
> c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libavformat.a(rtsp.o):
> In fu
> nction `rtsp_read_packet':
> C:/msys/home/Avi/ffmpeg/svn/libavformat/rtsp.c:1289: undefined reference
> to `sel
> e...@20'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/rtsp.c:1294: undefined reference
> to `__W
> safdis...@8'
> c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libavformat.a(rtsp.o):
> In fu
> nction `sdp_read_header':
> C:/msys/home/Avi/ffmpeg/svn/libavformat/rtsp.c:1579: undefined reference
> to `ine
> t_n...@4'
> c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libavformat.a(rtpproto.o):
> I
> n function `rtp_read':
> C:/msys/home/Avi/ffmpeg/svn/libavformat/rtpproto.c:217: undefined
> reference to `
> sel...@20'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/rtpproto.c:220: undefined
> reference to `
> __wsafdis...@8'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/rtpproto.c:235: undefined
> reference to `
> recvf...@24'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/rtpproto.c:238: undefined
> reference to `
> wsagetlaster...@0'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/rtpproto.c:238: undefined
> reference to `
> wsagetlaster...@0'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/rtpproto.c:233: undefined
> reference to `
> __wsafdis...@8'
> c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libavformat.a(tcp.o):
> In fun
> ction `tcp_open':
> C:/msys/home/Avi/ffmpeg/svn/libavformat/network.h:53: undefined reference
> to `WS
> astar...@8'
> c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libavformat.a(tcp.o):
> In fun
> ction `tcp_open':
> C:/msys/home/Avi/ffmpeg/svn/libavformat/tcp.c:55: undefined reference to
> `htons@
> 4'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/tcp.c:59: undefined reference to
> `socket
> @12'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/tcp.c:65: undefined reference to
> `connec
> t...@12'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/tcp.c:68: undefined reference to
> `WSAGet
> laster...@0'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/tcp.c:70: undefined reference to
> `WSAGet
> laster...@0'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/tcp.c:70: undefined reference to
> `WSAGet
> laster...@0'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/tcp.c:85: undefined reference to
> `select
> @20'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/tcp.c:86: undefined reference to
> `__WSAF
> dis...@8'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/tcp.c:92: undefined reference to
> `getsoc
> k...@20'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/tcp.c:108: undefined reference to
> `close
> soc...@4'
> c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libavformat.a(tcp.o):
> In fun
> ction `tcp_read':
> C:/msys/home/Avi/ffmpeg/svn/libavformat/tcp.c:127: undefined reference to
> `selec
> t...@20'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/tcp.c:128: undefined reference to
> `__WSA
> fdis...@8'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/tcp.c:129: undefined reference to
> `recv@
> 16'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/tcp.c:131: undefined reference to
> `WSAGe
> tlaster...@0'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/tcp.c:131: undefined reference to
> `WSAGe
> tlaster...@0'
> c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libavformat.a(tcp.o):
> In fun
> ction `tcp_write':
> C:/msys/home/Avi/ffmpeg/svn/libavformat/tcp.c:157: undefined reference to
> `selec
> t...@20'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/tcp.c:158: undefined reference to
> `__WSA
> fdis...@8'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/tcp.c:159: undefined reference to
> `send@
> 16'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/tcp.c:161: undefined reference to
> `WSAGe
> tlaster...@0'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/tcp.c:161: undefined reference to
> `WSAGe
> tlaster...@0'
> c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libavformat.a(tcp.o):
> In fun
> ction `tcp_close':
> C:/msys/home/Avi/ffmpeg/svn/libavformat/tcp.c:178: undefined reference to
> `close
> soc...@4'
> c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libavformat.a(tcp.o):
> In fun
> ction `tcp_close':
> C:/msys/home/Avi/ffmpeg/svn/libavformat/network.h:62: undefined reference
> to `WS
> aclea...@0'
> c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libavformat.a(udp.o):
> In fun
> ction `udp_set_remote_url':
> C:/msys/home/Avi/ffmpeg/svn/libavformat/udp.c:247: undefined reference to
> `htons
> @4'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/udp.c:254: undefined reference to
> `ntohl
> @4'
> c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libavformat.a(udp.o):
> In fun
> ction `udp_open':
> C:/msys/home/Avi/ffmpeg/svn/libavformat/network.h:53: undefined reference
> to `WS
> astar...@8'
> c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libavformat.a(udp.o):
> In fun
> ction `udp_open':
> C:/msys/home/Avi/ffmpeg/svn/libavformat/udp.c:261: undefined reference to
> `socke
> t...@12'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/udp.c:266: undefined reference to
> `htonl
> @4'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/udp.c:267: undefined reference to
> `htons
> @4'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/udp.c:414: undefined reference to
> `bind@
> 12'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/udp.c:418: undefined reference to
> `getso
> ckn...@12'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/udp.c:275: undefined reference to
> `ntohs
> @4'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/udp.c:93: undefined reference to
> `setsoc
> k...@20'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/udp.c:455: undefined reference to
> `close
> soc...@4'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/udp.c:436: undefined reference to
> `setso
> ck...@20'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/udp.c:247: undefined reference to
> `htons
> @4'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/udp.c:254: undefined reference to
> `ntohl
> @4'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/udp.c:444: undefined reference to
> `setso
> ck...@20'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/udp.c:404: undefined reference to
> `setso
> ck...@20'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/udp.c:69: undefined reference to
> `setsoc
> k...@20'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/udp.c:410: undefined reference to
> `bind@
> 12'
> c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libavformat.a(udp.o):
> In fun
> ction `udp_read':
> C:/msys/home/Avi/ffmpeg/svn/libavformat/udp.c:475: undefined reference to
> `selec
> t...@20'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/udp.c:478: undefined reference to
> `__WSA
> fdis...@8'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/udp.c:480: undefined reference to
> `recv@
> 16'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/udp.c:482: undefined reference to
> `WSAGe
> tlaster...@0'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/udp.c:482: undefined reference to
> `WSAGe
> tlaster...@0'
> c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libavformat.a(udp.o):
> In fun
> ction `udp_write':
> C:/msys/home/Avi/ffmpeg/svn/libavformat/udp.c:498: undefined reference to
> `sendt
> o...@24'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/udp.c:502: undefined reference to
> `WSAGe
> tlaster...@0'
> C:/msys/home/Avi/ffmpeg/svn/libavformat/udp.c:502: undefined reference to
> `WSAGe
> tlaster...@0'
> c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libavformat.a(udp.o):
> In fun
> ction `udp_close':
> C:/msys/home/Avi/ffmpeg/svn/libavformat/udp.c:518: undefined reference to
> `close
> soc...@4'
> c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libavformat.a(udp.o):
> In fun
> ction `udp_close':
> C:/msys/home/Avi/ffmpeg/svn/libavformat/network.h:62: undefined reference
> to `WS
> aclea...@0'
> c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libavformat.a(udp.o):
> In fun
> ction `udp_close':
> C:/msys/home/Avi/ffmpeg/svn/libavformat/udp.c:121: undefined reference to
> `setso
> ck...@20'
> c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libavformat.a(rtpdec.o):
> In
> function `rtp_parse_open':
> C:/msys/home/Avi/ffmpeg/svn/libavformat/rtpdec.c:310: undefined reference
> to `ge
> thostn...@8'
> c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libavformat.a(os_support.o):
>  In function `resolve_host':
> C:/msys/home/Avi/ffmpeg/svn/libavformat/os_support.c:69: undefined
> reference to
> `gethostbyn...@4'
> 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
> 
> 

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