[FFmpeg-devel] [PATCH] Non-recursive makefiles

Axel Holzinger aholzinger
Fri Apr 11 13:03:14 CEST 2008


Hi M?ns,

M?ns Rullg?rd wrote:
> "Axel Holzinger" <aholzinger at gmx.de> writes:
> 
> > Hi Diego,
> >
> > Diego Biurrun wrote:
> >> On Thu, Apr 10, 2008 at 06:19:55PM +0200, Axel Holzinger
> wrote:
> >> > Axel Holzinger wrote:
> >> > >
> >> > > Victor Paesa wrote:
> >> > > >
> >> > > > M?ns Rullg?rd said:
> >> > > > >
> >> > > > > Fixed.  Can you please confirm on cygwin?
> >> > > >
> >> > > > Thanks, now it works OK for me on Cygwin.
> >> > >
> >> > > Unfortunately doesn't work on Msys/Mingw:
> >> > >
> >> > > $ ./configure --enable-static --enable-memalign-hack
> >> > >
> >> > > $ make
> >> > > make: *** No rule to make target `libavdevice/libavdevice.a',
> >> > > needed by `all'.  Stop.
> >> > >
> >> > > ffmpeg r12781
> >> >
> >> > The makes oft he different libs work fine, when called
> >> > directly:
> >> > $ cd libavdevice
> >> > $ make
> >> >
> >> > When all libs are built, the FFmpeg make works and FFmpeg is
> >> > built.
> >> >
> >> > Is there perhaps a problem with the paths in the makefile
> >> > for FFmpeg so that the lib makefiles aren't found for some
> >> > reason?
> >>
> >> Do you have spaces somewhere in your path?
> >
> > No, not at all.
> >
> > I thought it might have something to do with my FFmpeg
> > directory residing on a different drive (path something like
> > /F/bla/ffmpeg) andso I digged a little into make and looked
> > at the make internals (make -p) and saw that there are
> > several paths that look like f: which msysys won't like.
> > So I moved the whole directory to /home/myusername/ffmpeg,
> > but same result.
> >
> > I then noticed that there is a newer make in Mingw. And I
> > found out that the different make versions all behave
> > differently with the FFmpeg makefile.
> >
> > In the past I could build FFmpeg without a problem with make
> > 3.79, so it is quite probable that a change in the makefile
> > (or configure script) made Mingw (at least some installations)
> > behave nasty.
> >
> > I used make 3.79 in the past and only with 3.79 I can build
> > FFmpeg by manually building the libs and then building FFmpeg
> > afterwards. This works as a workaround.
> 
> 3.79 is *very* old.  I have made no attempt to support anything
> older than 3.81.  I haven't knowingly used any new features
> either, but I only looked at the latest manual.

Okay, let's forget 3.79.

> > With make 3.81-20080326, make is starting the build, but I get
> > several errors 'missing binary operator before token "("'.
> >
> > Make 3.81-2 behaves different, but build still doesn't work
> > (I'm writing this on a different location, so I don't have the
> > details, will send them later today).
> 
> I'll need much more details. Please send your config.err,
> config.mak, and full stdout/stderr output from running make.


3.81-2 works. Great!

Interestingly, 3.81-20080326 doesn't.

Find attached config.err, config.mak and make stdout/stderr.

> > I'm willing to test this thorougly and report results. If you
> > (or anybody of the FFmpeg developers) think that this is a
> > user thread (because we are talking about building FFmpeg),
> > please feel free to tell me and I will change over to
> > ffmpeg-user. I think because a chnage in the makefile/
> > configure script broke FFmpeg build (at least on Mingw on my
> > system) there might be an issue in the configure script.
> 
> This is the right place.
> 
> > For the records: With make 3.79 building separately works.
> >This isn't possible with make 3.81-2 nor latest 3.81-20080326.
> 
> make 3.81 as installed by Gentoo works perfectly fine.  Do you
> have any windows-style (c:/path/to/file) filenames mentioned?

Not to my knowledge.

> Some versions of make seem to cope with these, others not.

Thanks a lot and all the best
Axel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure_make_output.tar.gz
Type: application/x-gzip
Size: 32677 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080411/0b51a03f/attachment.bin>



More information about the ffmpeg-devel mailing list