From: Paul G. <pgarceau@qw...> - 2001-12-15 11:30:06
On 14 Dec 2001 at 14:25, Andy Sy wrote:
> Paul G., unfortunately, the mingw32.bat file seems to
> be gone from the Mesa 4.0 distribution.
Ok. Not sure why the .bat file is gone, but do remember there was some minor problem with Mingw32 port
during 3.x revisions. Looking into updating Mingw32 for Mesa3d v4.x. For the most part no one was using Mingw32
built libs. Likely because of Cygwin support being already available.
> Anyway, shouldn't the ideal way be to do a
> ./configure --host=i686-pc-mingw32
> from under Cygwin?
Not if being built for gcc for Mingw(32). It would be far wiser to use straight Cygwin build (also available at
Mesa3d) if you intend to use the ./configure stuff. Besides...even though the Mingw(32) version is based on Cygwin,
there are particular things that simply don't work (runtime conflicts directly related to Posixy/*nix stuff) across the two
compilers (Cygwin included GCC vs Mingw included GCC).
> That's what I tried and
> all went well with the ./configure, but during
> the compile there was an error I couldn't figure
> gcc -g -O2 -Wall -fomit-frame-pointer -ffast-math
> -fexpensive-optimizations -fstrict-aliasing -malig n-loops=2
> -malign-jumps=2 -malign-functions=2 -D_REENTRANT -DPTHREADS
> gen_matypes.c -o gen_maty pes gen_matypes.c:40: glheader.h: No such
> file or directory gen_matypes.c:41: mtypes.h: No such file or
> directory gen_matypes.c:42: tnl/t_context.h: No such file or directory
> make: *** [gen_matypes] Error 1
> Apparently, the $(INCLUDE) is not being sent to the
> compile line. But I couldn't track where the gcc
> call was happening inside the Makefile, weird...
> It must be called from somewhere else, but I can't
> figure out where for the life of me.
It's initially looking like it is the being caused by the setting of pthreads related switches. Mingw doesn't
support pthreads. Cross-compiling doesn't really change this. As Earnie has mentioned elsewhere, you may want to
consider using MSYS instead of Mingw for your ./configure support. Mingw distro does not support ./configure.
Other option, of course, is to simply use Cygwin and have done with it. Your choice of course.