Minggu, 10 April 2011

Cara install OGRE di Windows

Install OGRE di Windows

1. Download SDK di  http://www.ogre3d.org/download/sdk.
2. Download SDK yang cocok dengan versi IDE anda.
3. Download dan instal DirectX: directx_aug2009_redist.exe di http://www.microsoft.com/downloads/details.aspx?FamilyID=04ac064b-00d1-474e-b7b1-442d8712d553&displaylang=en
4. Download MINGW di http://sourceforge.net/projects/ogre/files/ogre-tools/MinGW%20C%2B%2B%20Toolbox/MinGW_Toolbox_Setup_wr1.exe/download

Jalankan installer 
















Lalu pergi ke folder dimana SDK OGRE di install kemudian copy pathnya
Kemudian buka CMD dan Pastkan pathnya











Kemudian ketikkan
setx OGRE_HOME D:\OgreSDK\OgreSDK_vc9_v1-7-1



Konfigurasi di Netbeans

DEBUG
Di C++ Compiler > Include Directories:
Path_to_Ogre/include
Path_to_Ogre/include/OIS
Path_to_Ogre/include/OGRE
Path_to_Ogre/Samples/Common/include
Path_to_Ogre/boost_1_42



Pre-Processor Definition:
WIN32
_DEBUG
_WINDOWS
In Linker > Libraries:
libOgreMain_d.dll.a
libOIS_d.dll.a


Tambahan direktori library
Path_to_Ogre/lib/debug
Path_to_Ogre/boost_1_42/lib
 
In Execute > Execute Directory:
Path_to_Ogre\bin\Debug


RELEASE
 
In C++ Compiler
Same as in the debug settings
Pre-Processor Definition:
WIN32
_NDEBUG
_WINDOWS
In Linker > Libraries:
Netbeans is going to automatically set the libraries based on those found in debug configurations
Additional Directories Libraries:
Path_to_Ogre/lib/release
Path_to_Ogre/boost_1_42/lib
In Execute > Execute Directory:
Path_to_Ogre\bin\Release


Sumber: http://www.ogre3d.org/tikiwiki/NetBeans+6.9.1&structure=Development










 

0 komentar:

Posting Komentar