Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Allegro 4.2.1, MSVC8

Credits go to Matthew Leverton for helping out!
This thread is locked; no one can reply to it. rss feed Print
Allegro 4.2.1, MSVC8
Phineas
Member #5,696
April 2005
avatar

I run the following commands to begin compiling Allegro, in addition to running the batch file that sets up the msvc command line environment:

> fix.bat msvc8 --msvcpaths
> make

When I run make, I get the following error after a short time of compiling:

poly3d.c
src/poly3d.c(32) : fatal error C1083: Cannot open include file: 'obj/msvc/asmcapa.h': No such file or directory
make: *** [obj/msvc/alleg/poly3d.obj] Error 2

Thanks for your help.

Matthew Leverton
Supreme Loser
January 1999
avatar

make obj/msvc/asmcapa.h

and try again.

Evert
Member #794
November 2000
avatar

This is odd though... that file should be generated during the build process.

Christopher Webb
Member #8,059
December 2006

It should be made, but there's something wonky going on in the build process. I had this problem with my workstation @ work when I was trying it out. For some reason, the echo commands were failing because the quotation marks not getting processed correctly, so asmcapa.h never got created. I manually found all of the echo commands in the output and duplicated them to create asmcapa.h manually, and it worked.

Both my home machine and my workstation are XP2 SP2, but my workstation has a cygwin cross-compiler as well as mingw32. I thought maybe the cygwin sh.exe was being executed, but that's just a guess. Since I could manually build asmcapa.h, I didn't dig into it very far.

-ChWebb

Matthew Leverton
Supreme Loser
January 1999
avatar

Quote:

This is odd though... that file should be generated during the build process.

I get that a lot, depending on the exact order that I build Allegro. Certain targets do not generate it. I also get it when switching between different platforms.

mscava
Member #6,815
January 2006
avatar

Quote:

I thought maybe the cygwin sh.exe was being executed, but that's just a guess.

Well I've just been compiling Allegro with MSYS ( I wanted to play a bit with it cuz I didn't know ho exactly it works ). So I ran msys.bat. Then typed cmd so I can run fix.bat. Exited cmd and typed mingw32-make in the sh.exe -> I got the error with asmcapa.h. Tried few times with same result. Finally I built it with pure cmd.exe ( the sh.exe was off ). So the guess is probably right. Hope this will help you :)

Go to: