Step-by-step instructions on how to build the MingW32 version of Allegro. This assumes you have unzipped allegro to c:\allegro
First configure Allegro by entering the following on the commandline: (click on Start -> Run then type "command" or "cmd" to get a command prompt)
cd c:\allegro fix.bat mingw32
The dynamically linked version of Allegro gets built by default but if you want to build the statically linked version of Allegro write the following on the command line:
SET STATICLINK=1
If you want to build either the debug or the profiling version of the library enter one of the following. Skip them to build the release (default) version.
SET DEBUGMODE=1 SET PROFILEMODE=1
Now we're ready to make the Allegro library.
make
If your copy of Allegro does not include the linker .def file (unlikely, unless you have run "make veryclean" at some point, or are using the CVS version of Allegro), you can regenerate it by running "misc\fixdll.bat". You will need to have GNU sed and sort installed for this operation to work. The version of sed that is linked from the MingW32 site does not work properly; it has issues with end-of-line characters. You should get sed and sort from the link at the top of this document.
Once the build is finished you can recover some disk space by running "make compress", which uses the UPX program to compress the executable files and the optimized dll. Before running "make compress", you must set the environment variable UPX_BIN to point to upx.exe. You will have to do run "make compress" before "make install" if you want the compressed dll to be copied to the windows directory. To recover even more disk space, you can run "make clean" to get rid of all the temporary files and HTML format documentation.
And then the last thing; Installing the Allegro library.
make install
You have now installed MingW32 and allegro! See the rest of the documentation and examples to learn more about it.
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.