title: FFMpeg hello world failed
body: <p>I'm new to the ffmpeg development.</p>
  <p>I've got my ffmpeg via ffmpeg.mplayerhq.hu/download.html using</p>
  <pre><code>   `git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg`
  </code></pre>
  <p>My OS is Win7. I'm using Cygwin to help me work under a Unix-like environment.</p>
  <p>I'm using tutorial code from <a href="http://dranger.com/ffmpeg/ffmpeg.html" rel="nofollow noreferrer">http://dranger.com/ffmpeg/ffmpeg.html</a>. My current code is Tutorial01.</p>
  <p>So I've got my gcc, ffmpeg and code together. Working directory is /ffmpegDemo,</p>
  <p>code: /ffmpegDemo/tutorial01.c</p>
  <p>ffmpeg: /ffmpegDemo/ffmpeg</p>
  <p>And I use command <code>gcc-I ffmpeg -o t01 tutorial01.c</code> to compile my code.
  (cygwin doesn't support &quot;copy&quot;, here're just some major message:)</p>
  <blockquote>
  <p>libavutil/avconfig.h: No such file or directory</p>
  <p>...</p>
  <p>error: 'CODEC_TYPE_VIDEO' undeclared</p>
  <p>...</p>
  </blockquote>
  <p>and others are just warnings.</p>
  <p>Indeed, there's no avconfig.h under ffmpeg/libavutil. I've looked for 'CODEC_TYPE_VIDEO', here's this reference: <a href="http://cekirdek.pardus.org.tr/%7Eismail/ffmpeg-docs/avcodec_8h.html" rel="nofollow noreferrer">http://cekirdek.pardus.org.tr/~ismail/ffmpeg-docs/avcodec_8h.html</a> says that 'CODEC_TYPE_VIDEO' is defined in libavcodec/avcodec.h. I've checked avcodec.h and didn't find any.</p>
  <p>I was very confused about this error and confused about all the &quot;configure&quot; and &quot;make&quot; things that I saw while searching for answer. Am I doing it wrong? Did I miss some steps? Hope that I could find an answer here.</p>
  <p>Thanks.</p>