Build/MSVC 6
From Allegro Wiki
< Build
Contents |
Command Line
Requirements
- Allegro 4
- MSVC 6
- MinGW
Instructions
- Open a command terminal.
- Windows 9x: Click Start / Run and enter command.com
- Newer verions: Click Start / Run and enter cmd.exe
- Change to the path of Allegro by typing:
- c:\
- cd\allegro
- "c:\program files\microsoft visual studio\vc98\bin\vcvars32.bat"
- SET PATH=%PATH%;C:\MINGW\BIN
- fix.bat msvc6
- make all STATICLINK=1
- make installall STATICLINK=1
- make all
- make installall
Notes
If your locations for Allegro, MinGW, or MSVC are different, adjust the paths in the above instructions accordingly.
Project File
Requirements
- Allegro 4.2.2
- MSVC 6
Instructions
Allegro
- Run c:\allegro\build\pre-build-msvc.bat
- Open c:\allegro\build\msvc6\Allegro.dsw in MSVC 6
- Click Build / Batch Build.
- Check all the versions you want to build.
- Click Build. (Note: it is normal to get warnings of missing include files.)
- Due to a bug in MSVC 6, it might be necessary to repeat Step 3 to perform the final links.
- Copy the files
- Copy the contents of C:\allegro\include to C:\Program Files\Microsoft Visual Studio\VC98\include
- Copy the .lib files from C:\allegro\lib\msvc to C:\Program Files\Microsoft Visual Studio\VC98\lib
- Copy the .dll files from C:\allegro\lib\msvc to C:\Windows\System32
Demo
- Open c:\allegro\build\msvc6\demo.dsw in MSVC 6
- Press F7 to Comile
- Press Ctrl-F5 to Run
Tools
- Open c:\allegro\build\msvc6\tools.dsw in MSVC 6
- Click Build / Batch Build.
- Check all the tools you want to build.
- Click Build.
Note: some of the tools depend on libdat, so you should build that first.
Examples
- Open c:\allegro\build\msvc6\examples.dsw in MSVC 6
- Click Build / Batch Build.
- Check all the examples you want to build.
- Click Build.
Tests
- Open c:\allegro\build\msvc6\tests.dsw in MSVC 6
- Click Build / Batch Build.
- Check all the tests you want to build.
- Click Build.
