Re: [AD] Issues when building MSVC Allegro using Cygwin

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


Hi Andrei,

> Secondly, I got the error in wwnd.c that a few other people reported
> that involved the title-bar. I replaced the WIP version of wwnd.c with a 
> version from the latest CVS snapshot (for some reason, I could not patch 
> with the diff posted by Daniel Schlyder) and it solved the problem.

That patch was for CVS HEAD. I guess you tried to apply it to 4.1.18?

> The third issue involves installing the files once Allegro has been
> built. When I run "make install", I get the following error:

> mkdir  C:/PROGRA~1/MICROS~4/VC98/lib
> mkdir: cannot create directory `C:/PROGRA~1/MICROS~4/VC98/lib': File exists

> After a bit of investigation, I found a line in makefile.all that might 
> be the source of the problem.

> existing_dirs = $(foreach dir, $(INSTALL_DIRS), $(wildcard $(dir)))

> One theory that I have is that Cygwin make's 'wildcard' function does 
> not expand paths in the shortened DOS form. What I did next was to 
> replace the following line:

That's my theory too.

>     $(foreach file, $(filter-out existing_dirs, $(INSTALL_DIRS)), \

> with:

>     $(foreach file, $(filter-out C:/PROGRA~1/MICROS~4/VC98/lib 
> C:/PROGRA~1/MICROS~4/VC98/include, $(INSTALL_DIRS)), \

> ...and "make install" succeeded.

> Is there a way to 'Un-shorten' the path from within the makefile? MSVC 
> 6's vcvars32.bat sets the path to the short version.

I don't know, but what version of Make are you using? There was an earlier
report of the same problem from someone using MinGW's Make with MSVC.
Apparently, this bug is present in version 3.79, but fixed in 3.80. Maybe
you can get a newer version of Make for Cygwin?

--
Daniel Schlyder
http://bitblaze.com/





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