Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com X-Authentication-Warning: hp2.xraylith.wisc.edu: khan owned process doing -bs Date: Mon, 2 Jul 2001 15:05:42 -0500 (CDT) From: Mumit Khan To: Sebastian Riedel cc: cygwin AT cygwin DOT com Subject: Re: libmpeg2 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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/