Sunteți pe pagina 1din 5

Cara install Ogre

 install MinGW
 install MSYS
- Do you wish to continue with the post install?[Yn]Y
- Do you have MinGW installed?[Yn]Y
- Where is your MinGW installation?C:/MinGW

 Set Environment Variabel (System variable)


- PATH = C:\msys\1,0\bin;c:\mingw\bin
- OGRE_HOME = C:\OgreSDK

 Install OgreSDK
 Buka Eclipse
 Pilih menu bar window – preferences – c/c++ - environment – add
- name = OgreSDK
- value = C:\OgreSDK

 lalu create new project


- File > New > Project
- C++ > C++Project
- Beri nama pada project yang akan dibuat
- Pilih Executable pada bagian Project Types
- Pilih MinGW GCC pada bagian Toolchains
- Jangan lupa untuk menghilangkan tanda check yang berada dibawah

 Build configuration
- klik kanan pada project yang ada lalu klik properties
- pilih C/C++ Build > Settings lalu klik Manage Configurations
- Masuk ke bagian GCC C++ Compiler pada Tool Settings, selanjutnya
ikutilah petunjuk table berikut ini untuk bagian-bagian properties
pada pilihan Debug dan Release

GCC C++ Compiler

Debug Release
Preprocessor
Add the following to the Defined Add the following to the Defined
Symbols (-D) Symbols (-D)

 WIN32  WIN32
 _WINDOWS  _WINDOWS

 _DEBUG  NDEBUG
Directories
Add the following to the Include Paths (- Add the following to the Defined
I) Symbols (-I)

 "${OGRE_HOME}\include"  "${OGRE_HOME}\include"

Note: Add this with quotes Note: Add this with quotes
Miscellaneous
Put the following in the 'other flags text Put the following in the 'other flags text
box: box:

 -c -fmessage-length=0 -mthreads  -c -fmessage-length=0 -mthreads


-fexceptions -fident -fexceptions -fident
GCC C++ Linker

Debug Release
Libraries
Add the following to the libraries (-l) Add the following to the libraries (-l)

 OgreMain_d  OgreMain

 OIS_d  OIS
Add the following to the library search Add the following to the library search
path (-L) path (-L)

 "${OGRE_HOME}\bin\debug"  "${OGRE_HOME}\bin\release"

Note: Add this with quotes Note: Add this with quotes
Miscellaneous
Add the following to the Other Options Add the following to the Other Options (-
(-Xlinker[option] Xlinker[option]

 --enable-auto-image-base  --enable-auto-image-base

 --add-stdcall-alias  --add-stdcall-alias

 Kemudian Build project tersebut, dan masuk kedalam direktori


OgreSDK\bin\Debug lalu buka file resource.cfg
 Lalu ganti bagian ../../../ dengan fullpath lokasi OgreSDK misal :
Zip=D:\BIN\OGRE_SDK\OgreSDK\media\packs\OgreCore.zip
 Setelah itu save dan kembalai ke eclipes untuk melakukan Build All dan
melihat exe yang terbentuk
Out put
LAPORAN AKHIR PRAKTIKUM

Mata praktikum : Grafik computer 2

Kelas : 3 IA 16

Praktikum ke- :1

Tanggal : 06 maret 2010

Materi : Install Ogre

NPM : 50407498

Nama : Larasati Haryono

Ketua asisten :

Nama asisten :

Paraf asisten :

Jumlah lembar :

LABORATORIUM INFORMATIKA
UNIVERSITAS GUNADARMA
2010

S-ar putea să vă placă și