Discussion:
[mad-user] Build problem with cygwin/mingw
Jedediah Smith
2003-11-14 20:52:27 UTC
Permalink
Following steps were followed:

./configure --host=mingw32 --prefix==/cygdrive/c/source/vc/mixer/libmad

Configure step goes fine. The prefix is the dir I want to install to e.g.
c:\source\vc\mixer\libmad which already exists.

make also works fine

make install goes like this:

--------------------------------------------------------------------------------
$ make install
make install-recursive
make[1]: Entering directory
`/cygdrive/c/source/vc/mixer/libmad-0.15.0b/libmad-0
.15.0b'
make[2]: Entering directory
`/cygdrive/c/source/vc/mixer/libmad-0.15.0b/libmad-0
.15.0b'
make[3]: Entering directory
`/cygdrive/c/source/vc/mixer/libmad-0.15.0b/libmad-0
.15.0b'
/bin/bash ./mkinstalldirs /cygdrive/c/source/vc/mixer/libmad/lib
/bin/bash ./libtool --mode=install /usr/bin/install -c libmad.la
/cygdrive/c/s
ource/vc/mixer/libmad/lib/libmad.la
/usr/bin/install -c .libs/libmad.lai
/cygdrive/c/source/vc/mixer/libmad/lib/libm
ad.la
/usr/bin/install -c .libs/libmad.a
/cygdrive/c/source/vc/mixer/libmad/lib/libmad
.a
ranlib /cygdrive/c/source/vc/mixer/libmad/lib/libmad.a
c:\mingw\bin\ranlib.exe: /cygdrive/c/source/vc/mixer/libmad/lib/libmad.a:
No suc
h file or directory
make[3]: *** [install-libLTLIBRARIES] Error 9
make[3]: Leaving directory
`/cygdrive/c/source/vc/mixer/libmad-0.15.0b/libmad-0.
15.0b'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory
`/cygdrive/c/source/vc/mixer/libmad-0.15.0b/libmad-0.
15.0b'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory
`/cygdrive/c/source/vc/mixer/libmad-0.15.0b/libmad-0.
15.0b'
make: *** [install] Error 2
--------------------------------------------------------------------------------

It looks like ranlib is being passed the cygwin version of the path but it
doesn't recognize it as it's part of mingw and only allows normal Windows
paths. What shall I do about this?
Rob Leslie
2003-11-14 22:22:02 UTC
Permalink
[Note Reply-To.]
Post by Jedediah Smith
./configure --host=mingw32 --prefix==/cygdrive/c/source/vc/mixer/libmad
Configure step goes fine. The prefix is the dir I want to install to
e.g. c:\source\vc\mixer\libmad which already exists.
[...]
Post by Jedediah Smith
ranlib /cygdrive/c/source/vc/mixer/libmad/lib/libmad.a
/cygdrive/c/source/vc/mixer/libmad/lib/libmad.a: No such file or
directory
[...]
Post by Jedediah Smith
It looks like ranlib is being passed the cygwin version of the path
but it doesn't recognize it as it's part of mingw and only allows
normal Windows paths. What shall I do about this?
I think both Cygwin and Mingw understand Windows paths, so try:

./configure --host=mingw32 --prefix='C:\\source\\vc\\mixer\\libmad'

If not you can just install the library by hand; libmad doesn't
hardcode any paths from the configured prefix, so it's safe to omit.
--
Rob Leslie
***@mars.org
Loading...