OGRE (Object-Oriented Graphics Rendering Engine)
Creating the project files
This step is the same whether you're using the 'easy' or the 'advanced' way
An OGRE application can be built under Microsoft Visual C++ 6, Microsoft Visual C++.Net or gcc. The way you create project files is different for each:
Before you start, make sure you have installed the latest service pack for VC6. Especially before SP3 VC6 had some serious bugs which WILL affect your build. This is not an optional step.
Next you'll need to change the compiler settings, which is covered in the next section.
Next you'll need to change the compiler settings, which is covered in the next section.
Gnu Compiler Collection (gcc) v3.x
Before you start, make sure you are using gcc 3.x. Many Linux distributions still come with gcc 2.95.x which does not have as good support for the ISO C++ standard and will probably cause you problems. Please install the latest stable version of gcc 3.x.
Create a file called 'Makefile' in your application folder, with the contents:include [ogre_location]/platform-settings all: $(CXX) $(DEFINES) $(CFLAGS) -o [appname] [yourSampleApp].cpp $(INCDIRS) -I$(TOPDIR)/Samples/Common/include -L$(TOPDIR)/OgreMain/lib -lOgreMain clean: rm -f [appname]
Obviously you need to replace [ogre_location], [appname] and [yourSampleApp] with the appropriate values.
Back to Index | << Previous section | Next section >> |