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

Build/MSVC 8

From Allegro Wiki
Jump to: navigation, search

Command Line

Requirements

  • Allegro 4
  • MSVC 8
  • MinGW
  • Platform SDK
  • DirectX SDK

Instructions

  1. 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 8\VC\bin\vcvars32.bat"
  4. SET PATH=%PATH%;C:\MINGW\BIN
  5. fix.bat msvc8
  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

Requirements

  • Allegro 4.2.2
  • MSVC 8
  • Platform SDK
  • DirectX SDK

Instructions

Allegro

  1. Run c:\allegro\build\pre-build-msvc.bat
  2. Open c:\allegro\build\msvc8\Allegro.sln in MSVC 8
  3. Click Build / Batch Build.
    1. Check all the versions you want to build.
    2. Click Build.
  4. Copy the files
    1. Copy the contents of C:\allegro\include to C:\Program Files\Microsoft Visual Studio 8\VC\include
    2. Copy the .lib files from C:\allegro\lib\msvc to C:\Program Files\Microsoft Visual Studio 8\VC\lib
    3. Copy the .dll files from C:\allegro\lib\msvc to C:\Windows\System32

Demo

  1. Open c:\allegro\build\msvc8\demo.sln in MSVC 8
  2. Press F7 to Compile
  3. Press Ctrl-F5 to Run

Tools

  1. Open c:\allegro\build\msvc8\tools.sln in MSVC 8
  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 always build that.

Examples

  1. Open c:\allegro\build\msvc8\examples.sln in MSVC 8
  2. Click Build / Batch Build.
    1. Check all the examples you want to build.
    2. Click Build.

Tests

  1. Open c:\allegro\build\msvc8\tests.sln in MSVC 8
  2. Click Build / Batch Build.
    1. Check all the tests you want to build.
    2. Click Build.