Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.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 <khan@NanoTech.Wisc.EDU>
To: Sebastian Riedel <Hi-R@gmx.net>
cc: cygwin@cygwin.com
Subject: Re: libmpeg2
In-Reply-To: <EOEEKHNDOOCAEANFKPIOAEBLCBAA.Hi-R@gmx.net>
Message-ID: <Pine.HPP.3.96.1010702145526.2698F-100000@hp2.xraylith.wisc.edu>
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/

