Mail Archives: cygwin/2001/07/02/16:28:30
On Mon, 2 Jul 2001, Sebastian Riedel wrote:
> I'm searching for a c/c++ mpeg library like libmpeg2 that can be used with
> cygwin's g++ or mingw. I downloaded libmpeg2 but found no instructions on
> how to make this library under cygwin, mingw or win32 at all. If this is not
> the proper newsgroup to post this on, please excuse me and maybe redirect me
> to more suitable ones.
For future reference, please cite what version of a package you're
inquiring about, and where to get the sources.
The libmpeg2 distributed in mpeg2dec v0.2.0 (http://www.linuxvideo.org/)
should build out of the box with Cygwin. Just run configure to generate
the Makefile (and include/inttypes.h), followed by make like any other
package.
$ tar -zxf mpeg2dec-0.2.0.tar.gz
$ cd mpeg2dec-0.2.0
$ ./configure
$ make
[ note: there is a bug in configure, so you must configure in the source
directory. Trivial fix in AC_CHECK_GENERATE_INTTYPES macro definition
in aclocal.m4 to create the directory given by $1 before creating the
file. ]
With Mingw, you'll need to use configure etc to generate the Makefile
(and include/inttypes.h), and libmpeg2 itself builds trivially. However,
if you want to build mpeg2dec, you'll need to do the following:
1. Include winsock.h to get the definition of struct timeval.
2. Declare optind, optarg and link with libiberty.
Regards,
Mumit
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -