delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/02/16:28:30

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <khan AT NanoTech DOT Wisc DOT EDU>
To: Sebastian Riedel <Hi-R AT gmx DOT net>
cc: cygwin AT cygwin DOT 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

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019