Irrlicht Newton GD tutorial: first application
Install Irrlicht
First of all, you will definetely need the Irrlicht engine, so go get it.
Then you will need to compile it. Compilation process depends on the operating system you use, but it's really similar on every one.
Linux
Install these dependencies with your system' package manager:
libenet-dev libxxf86vm-dev zlib-dev cmake
.
Unzip Irrlicht, go to the directory you unpacked with the terminal and run the following:
cd source/Irrlicht
make
Belive it or not, but that's all!
Windows
Unzip Irrlicht, go to the directory you unpacked and open the VisualStudio project (depending on
VisualStudio version, you might want to open a bit different file) in source/Irrlicht
:
Irrlicht10.0.sln
Irrlicht11.0.sln
Irrlicht8.0.sln
Irrlicht9.0.sln
Build it with VisualStudio - and you are done!
MacOS X
The steps are a bit complicated. And they require you to install XCode and Command-Line Tools - those could be found either in AppStore or on the Apple website.
-
First of all, you need to install a bunch of dependencies (I use
brew
for this purpose):brew install tinyxml enet lua cmake
-
Get a list of all compilers available for your OSX version:
xcodebuild -showBuildSettings | grep DEFAULT_COMPILER
I got something like this:
$ xcodebuild -showBuildSettings | grep DEFAULT_COMPILER DEFAULT_COMPILER = com.apple.compilers.llvm.clang.1_0
-
Now the build process:
cd source/Irrlicht/MacOSX xcodebuild -project MacOSX.xcodeproj GCC_VERSION=com.apple.compilers.llvm.clang.1_0
-
And the final step - copy the library to the
lib/MacOSX
directory:cp build/Release/libIrrlicht.a ../../../lib/MacOSX
Phew! That's a damn bunch of commands, don't you think?