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

Difference between revisions of "Build/MSVC 6"

From Allegro Wiki
Jump to: navigation, search
(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 ...)
 
(updated instructions)
 
(2 intermediate revisions by the same user not shown)
Line 28: Line 28:
  
 
= Project File =
 
= Project File =
 
'''Important!''' These instructions are only applicable for a special Allegro 4.3.1 package that includes the project workspace.
 
  
 
== Requirements ==
 
== Requirements ==
  
* Allegro 4.3.1 (Special Version)
+
* Allegro 4.2.2
 
* MSVC 6
 
* MSVC 6
  
Line 39: Line 37:
  
 
=== Allegro ===
 
=== Allegro ===
 +
# Run <tt>c:\allegro\build\pre-build-msvc.bat</tt>
 
# Open <tt>c:\allegro\build\msvc6\Allegro.dsw</tt> in MSVC 6
 
# Open <tt>c:\allegro\build\msvc6\Allegro.dsw</tt> in MSVC 6
# Open include\platform\alplatf.h
 
## Make sure the only line is <tt>#define ALLEGRO_MSVC</tt>
 
 
# Click Build / Batch Build.
 
# Click Build / Batch Build.
 
## Check all the versions you want to build.
 
## Check all the versions you want to build.
Line 57: Line 54:
  
 
=== Tools ===
 
=== Tools ===
# Open <tt>c:\allegro\build\msvc6\Allegro Tools.dsw</tt> in MSVC 6
+
# Open <tt>c:\allegro\build\msvc6\tools.dsw</tt> in MSVC 6
 
# Click Build / Batch Build.
 
# Click Build / Batch Build.
 
## Check all the tools you want to build.
 
## Check all the tools you want to build.

Latest revision as of 06:03, June 29, 2007

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

Requirements

  • Allegro 4.2.2
  • MSVC 6

Instructions

Allegro

  1. Run c:\allegro\build\pre-build-msvc.bat
  2. Open c:\allegro\build\msvc6\Allegro.dsw in MSVC 6
  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\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.