The Allegro Wiki is migrating to github at https://github.com/liballeg/allegro_wiki/wiki

Build/MSVC 6

From Allegro Wiki
< Build
Revision as of 21:49, May 5, 2007 by Matthew Leverton (talk | contribs) (New page: = Command Line = == Requirements == * Allegro 4 * MSVC 6 * MinGW == Instructions == # Open a command terminal. ## Windows 9x: Click Start / Run and enter <tt>command.com</tt> ## Newer ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Command Line

Requirements

  • Allegro 4
  • MSVC 6
  • MinGW

Instructions

  1. Open a command terminal.
    1. Windows 9x: Click Start / Run and enter command.com
    2. Newer verions: Click Start / Run and enter cmd.exe
  2. Change to the path of Allegro by typing:
    1. c:\
    2. cd\allegro
  3. "c:\program files\microsoft visual studio\vc98\bin\vcvars32.bat"
  4. SET PATH=%PATH%;C:\MINGW\BIN
  5. fix.bat msvc6
  6. make all STATICLINK=1
  7. make installall STATICLINK=1
  8. make all
  9. make installall

Notes

If your locations for Allegro, MinGW, or MSVC are different, adjust the paths in the above instructions accordingly.

Project File

Important! These instructions are only applicable for a special Allegro 4.3.1 package that includes the project workspace.

Requirements

  • Allegro 4.3.1 (Special Version)
  • MSVC 6

Instructions

Allegro

  1. Open c:\allegro\build\msvc6\Allegro.dsw in MSVC 6
  2. Open include\platform\alplatf.h
    1. Make sure the only line is #define ALLEGRO_MSVC
  3. Click Build / Batch Build.
    1. Check all the versions you want to build.
    2. Click Build. (Note: it is normal to get warnings of missing include files.)
  4. Due to a bug in MSVC 6, it might be necessary to repeat Step 3 to perform the final links.
  5. Copy the files
    1. Copy the contents of C:\allegro\include to C:\Program Files\Microsoft Visual Studio\VC98\include
    2. Copy the .lib files from C:\allegro\lib\msvc to C:\Program Files\Microsoft Visual Studio\VC98\lib
    3. Copy the .dll files from C:\allegro\lib\msvc to C:\Windows\System32

Demo

  1. Open c:\allegro\build\msvc6\demo.dsw in MSVC 6
  2. Press F7 to Comile
  3. Press Ctrl-F5 to Run

Tools

  1. Open c:\allegro\build\msvc6\Allegro Tools.dsw in MSVC 6
  2. Click Build / Batch Build.
    1. Check all the tools you want to build.
    2. Click Build.

Note: some of the tools depend on libdat, so you should build that first.

Examples

  1. Open c:\allegro\build\msvc6\examples.dsw in MSVC 6
  2. Click Build / Batch Build.
    1. Check all the examples you want to build.
    2. Click Build.

Tests

  1. Open c:\allegro\build\msvc6\tests.dsw in MSVC 6
  2. Click Build / Batch Build.
    1. Check all the tests you want to build.
    2. Click Build.