Re: [AD] [AL] Build failure with Mingw32 and CVS

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Monpetit <monpetit@xxxxxxxxxx> writes:

> I tried to build allegro with CVS, but failed.
> Make said error message.
> 
> 	src/poly3d.c:32: obj/mingw32/mmx.h: No such file or directory
> 	make: *** [obj/mingw32/alleg/poly3d.o] Error 1
> 
> What's wrong?
> Where is mmx.h?
> Or can't I build allegro with CVS now?

The problem with Ming make utility is still there.  It creates
objmingw32mmx.h instead of obj\mingw32\mmx.h.  IIRC, it can be fixed
by quoting filename, but I don't know if it will work with all
configurations.

The following patch is dirty, but may fix this problem too (not
tested).  If there is no better fix, then this one is better than
nothing.


Index: makefile.mgw
===================================================================
RCS file: /cvsroot/alleg/allegro/makefile.mgw,v
retrieving revision 1.15
diff -u -r1.15 makefile.mgw
--- makefile.mgw	2001/01/28 23:01:02	1.15
+++ makefile.mgw	2001/02/17 15:19:25
@@ -216,11 +216,19 @@
 	gcc -c obj/mingw32/mmxtest.s -o obj/mingw32/mmxtest.o
 	echo "#define ALLEGRO_MMX" > obj/mingw32/mmx.h
 else
-	echo // no MMX > obj\mingw32\mmx.h
-	echo .text > obj\mingw32\mmxtest.s
-	echo emms >> obj\mingw32\mmxtest.s
+	cd obj
+	cd mingw32
+	echo // no MMX > mmx.h
+	echo .text > mmxtest.s
+	echo emms >> mmxtest.s
+	cd ..
+	cd ..
 	gcc -c obj/mingw32/mmxtest.s -o obj/mingw32/mmxtest.o
-	echo #define ALLEGRO_MMX > obj\mingw32\mmx.h
+	cd obj
+	cd mingw32
+	echo #define ALLEGRO_MMX > mmx.h
+	cd ..
+	cd ..
 endif
 
 obj/mingw32/mmx.h:


-- 
Michael Bukin



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/