compiling the dll withaut any GUI on the shell

A forum to store posts deemed exceptionally wise and useful
Post Reply
plummi
Posts: 12
Joined: Wed Dec 31, 2003 7:41 am
Location: Hannover, Germany

compiling the dll withaut any GUI on the shell

Post by plummi »

Some people, like me, don't want so setup a complex GUI like Codeblocks or MSVC just to recompile Irrlicht. For those guys I've made a simple shell-based Makefile which works with any GNU-compatible "make" Program.

It's easy as 1-2-3-4

In Short:
1. Download and install the free MSVC++ Toolkit, a GNU-compatible "make", DirectX9- and MS Win-Platform SDK
2. Copy the Makefile into the Irrlicht Source-Folder (overwrite the existing one) and create some required Folders
3. On the command-shell type: "mingw32-make clean all"


Detailed:
Download and install the following: Hint: If you want to use the make-Command in your whole Windows-Installation you must add the Path to your MinGW-Make-Directory to your %PATH%-Variable (the Path is probaly "C:\MinGW\bin").

Now copy the Makefile appended to this Topic to the Irrlicht-Source-Folder (overwrite the existing one). Create the following Directories inside the Folder:

Code: Select all

release\
bin-out\
bin-out\jpeglib
bin-out\libpng
bin-out\zlib
Finally, you must customize the Makefile, so that all required Header-Files and Librarys are found. Simply set the correct Path' in Lines 11, 13 und 15 (The standard-Paths are propably fine for English Windows-Installations).

To compile, just open a Windows-Command-Shell and rebuild the Irrlicht-DLL with the Command "make clean all", or if your didn't setup your PATH-Variable with the Command "C:\MinGW\bin\mingw32-make.exe clean all".

The Irrlicht-DLL is found in the release\ Folder, after the Build has compleated.

If you made changes in the Irrlicht-Source and want to recompile later, a simple "mingw32-make clean all" rebuilds all the Files.

The Makefile: Download

Propably, someone find this usefull. ;-)

Greets, Plummi
Post Reply