转自
http://bbs.hwcrazy.com/blog/b0108b364a4611e1a814000d 601c5586/
-
1.
-
sudo apt-get install build-essential automake libtool cmake-gui
2.
-
sudo apt-get install libois-dev libfreeimage-dev libfreetype6-dev libzzip-dev libxaw7-dev libglew1.5-dev libxrandr-dev
3.
-
sudo apt-get install doxygen graphviz nvidia-cg-toolkit libboost-dev libcppunit-dev
4.
-
You can get the latest source from
here.Nowcreate two folders. One will hold the source codes. The other onewill hold the configured source code of Ogrea, ready to becompiled. I have it set up like this:
/home/username/dev
Extract the source to the "dev" folder. You
/home/username/dev/ogre_buildshouldhave:
/home/username/dev/ogre
Now open aterminal andrun cmake-gui.
where is the source code: /home/username/dev/ogre
Once you have selected the folder click configure. In the newwindow that appears leave the setting at default. It should looklike this:
where to build the binaries: /home/username/dev/ogre_build
unix makefiles
Once you are done with that window just click finish. Now checkthis options to make fallowing the tutorials easier.
use default native compilers
ogre_install_media
Once you're done click configure again then on generate. Now youcan close the window. Go back to the terminal and enterthis:
ogre_install_samples
ogre_install_samples_source
cd /home/username/dev/ogre_build
Note:
make
sudo make install
sudo ldconfigyoucan use make -j 4 on duo-core processor to speed up theprocess. Note: ifyou installed doxygen and graphviz you can make doc to generatehtml documentation.
5.
-
sudo apt-get install libpcre++-dev libwxgtk2.8-dev libjpeg62-dev
6.
-
sudo apt-get install doxygen graphviz
7.
-
Dependence needed by the editors. Get the latest sourcefrom
here.Extract it to "dev" folder so it look like this:
/home/username/dev/silly-0.1.0
Now open a terminal and do:
cd /home/username/dev/silly-0.1.0
./configure
make
sudo make install
8.
-
Get the latest source
here.Extract it to the "dev" folder so it look like this:
/home/username/dev/cgui-0.7.1
Now open a terminal anddo:(我还安装了libtool,automake,autoconf)
cd /home/username/dev/cgui-0.7.1
note:
./bootstrap
./configure
make
sudo make install
sudo ldconfigifyou installed doxygen and graphviz you can make html to generatehtml documentation.
9.
-
Get the latest source from
here.Extract it to the "dev" folder so it look like this:
/home/username/dev/celayouteditor-0.7.1
Now open a terminal and do:
cd /home/username/dev/celayouteditor-0.7.1
Now you have to select the datafiles folder from the source folderwhen the editor start for the first time.
./configure
make
sudo make install
/home/username/dev/celayouteditor-0.7.1/datafiles
Now you will need to copy to file to datafiles/fonts folder fromthe datafiles/font folder of cegui source. you need to copy thistwo file:
/home/username/dev/cegui-0.7.1/datafiles/dejavusans.ttf
to
/home/kamil/dev/cegui-0.7.1/datafiles/dejavusans-10.font
/home/username/dev/celayouteditor-0.7.1/datafiles/fonts
10.
-
Get the latest source from
here.Extract it to "dev" folder so it look like this:
/home/username/dev/ceimageseteditor-0.7.1
Now open a terminal and do:
cd /home/username/dev/ceimageseteditor-0.7.1
./configure
make
sudo make install
11.
-
Get the latest source from
here.Extract it to "dev" folder so it look like this:
/home/username/dev/ode-0.11.1
Now open a terminal and go to that source folder like so:
cd /home/username/dev/ode-0.11.1
./configure
make
sudo make install
12.
-
To install code::blocks, open a terminal and run:
sudo apt-get install codeblocks
Start code::blocks and make a new ogre project. Now go to Project> Build options and make sure you select the youproject name. In Compiler setting > Other optionsyou should have something like this:
`pkg-config --cflags OGRE`
In
`pkg-config --cflags CEGUI`
`pkg-config --cflags OIS`
`pkg-config --cflags ode`
`pkg-config --cflags CEGUI-OGRE`
-fexceptionslinker settings >link libraries you should have:
GL
In linker settings > Other linker options you shouldhave:
`pkg-config --libs OGRE`
In Search
`pkg-config --libs CEGUI`
`pkg-config --libs OIS`
`pkg-config --libs ode`
`pkg-config --libs CEGUI-OGRE`directories> Compiler you should have:
/usr/local/share/OGRE/samples/Common/include
Now you should be all set to start the
/usr/local/include/CEGUI/RendererModules/Ogretutorials.
13.
-
sudo apt-get remove build-essential automake libtool cmake-gui
14.
-
sudo apt-get remove libois-dev libfreeimage-dev libfreetype6-dev libzzip-dev libxaw7-dev libglew1.5-dev libxrandr-dev
15.
-
sudo apt-get remove doxygen graphviz nvidia-cg-toolkit libboost-dev libcppunit-dev
16.
- There isn't a way to uninstall ogre with make other then manuallyremove the file.At lest not that I found anyway. 17.
-
sudo apt-get remove libpcre++-dev libwxgtk2.8-dev libjpeg62-dev
18.
-
sudo apt-get remove doxygen graphviz
19.
-
Open a terminal and run:
cd /home/username/dev/SILLY-0.1.0
sudo make uninstall
20.
-
Open a terminal and run:
cd /home/username/dev/CEGUI-0.7.1
sudo make uninstall
21.
-
Open a terminal and run:
cd /home/username/dev/CELayoutEditor-0.7.1
sudo make uninstall
22.
-
Open a terminal and run:
cd /home/username/dev/CEImagesetEditor-0.7.1
sudo make uninstall
23.
-
open a terminal and run:
cd /home/usern
fallow this may be sth worng if it hanpped maybe add this could be Ok;
do apt-get install libcegui-mk2-dev