Difference between revisions of "OldOgreInstallNotes"
Ghoulsblade (Talk | contribs) (→OGRE) |
Ghoulsblade (Talk | contribs) (→OGRE) |
||
Line 23: | Line 23: | ||
=== OGRE === | === OGRE === | ||
+ | |||
+ | [[User:Ghoulsblade|Ghoulsblade]] 23:23, 21 October 2006 (CEST) : here is what i am currently trying, (fresh kubuntu 6.06.1 kernel 2.6.15-26-386) | ||
+ | it compiles, links, installs and runs, but i only get a black screen after some graphical chooser.. | ||
+ | maybe try rtt hack ? | ||
+ | currently i am trying that "./configure --with-platform=SDL" | ||
<pre> | <pre> | ||
− | + | apt-get install libpng12-0 libpng12-dev libjpeg62 libjpeg62-dev | |
+ | apt-get install freetype2 libzzip-0-12 libzzip-dev zziplib-bin | ||
+ | apt-get install build-essential | ||
+ | apt-get install libssl-dev libtool | ||
+ | apt-get install libcppunit-dev | ||
+ | apt-get install libxaw7-dev | ||
+ | apt-get install libxxf86vm-dev | ||
+ | apt-get install libmng-dev | ||
+ | feta install libxrandr-dev | ||
+ | |||
+ | # this one is tricky : libtiff4-dev | ||
+ | apt-get install libtiff4-dev # will fail, but do it | ||
+ | #no idea so far... | ||
+ | |||
+ | apt-get install libfreetype6-dev # see "ubuntu dependency problem" below | ||
+ | |||
+ | |||
+ | # ubuntu dependency problem : | ||
+ | # PROBLEM : apt-get install something fails : | ||
+ | # ERRORMSG : Depends: libglib2.0-0 (=2.10.2-1ubuntu3) but 2.10.3-0ubuntu1 is to be installed | ||
+ | # SOLUTION: dpkg --force-depends -r libglib2.0-0 | ||
+ | # download libglib2.0-dev | ||
+ | # from http://packages.ubuntu.com/dapper/libdevel/libglib2.0-dev or so | ||
+ | # rightclick downloaded file, choose install | ||
+ | # apt-get -f install | ||
+ | # apt-get install something # should work now | ||
+ | # solution based on http://ubuntuforums.org/showthread.php?t=199228 | ||
+ | # idea : maybe activate security / update source in sources.list | ||
+ | |||
+ | |||
+ | #apt-get install libdevil1 libdevil-dev ?? might help fix dependencies for devil ? | ||
# get Cg from http://developer.nvidia.com/object/cg_toolkit.html , unpack to root "/" to install | # get Cg from http://developer.nvidia.com/object/cg_toolkit.html , unpack to root "/" to install | ||
Line 36: | Line 71: | ||
# get zziplib source from http://zziplib.sourceforge.net | # get zziplib source from http://zziplib.sourceforge.net | ||
# mirrorlist i used : http://prdownloads.sourceforge.net/zziplib/zziplib-0.13.47.tar.bz2?download | # mirrorlist i used : http://prdownloads.sourceforge.net/zziplib/zziplib-0.13.47.tar.bz2?download | ||
+ | # old version zziplib-0.12.83.tar.bz2 | ||
cd /usr/src | cd /usr/src | ||
tar xfj zziplib-0.13.47.tar.bz2 | tar xfj zziplib-0.13.47.tar.bz2 | ||
cd zziplib-0.13.47 | cd zziplib-0.13.47 | ||
./configure | ./configure | ||
− | make && make check | + | make && make check |
− | + | sudo make install | |
+ | |||
# get DevIL source from http://openil.sourceforge.net/ | # get DevIL source from http://openil.sourceforge.net/ | ||
Line 49: | Line 86: | ||
cd DevIL-1.6.8-rc2 | cd DevIL-1.6.8-rc2 | ||
./configure | ./configure | ||
− | make | + | make |
+ | sudo make install | ||
# install sdl with apt-get | # install sdl with apt-get | ||
apt-get install libsdl1.2-dev | apt-get install libsdl1.2-dev | ||
− | # got some trouble with that on ubuntu, here is help : http://ubuntuforums.org/showthread.php?t=199228 (the post with a 4 step solution) | + | # got some trouble with that on ubuntu, here is help : http://ubuntuforums.org/showthread.php?t=199228 (the post with #a 4 step solution) |
+ | #hello all, I had the same problem in dapper 6.06 and fixed it by | ||
+ | #(please perform all the steps you may think some are not neccessary but they will configure apt-get -f install in step #4) | ||
+ | #1)sudo apt-get install libsdl1.2-dev (but it fails) | ||
+ | #2)sudo dpkg --force-depends -r libglib2.0-0(this will remove libglib) | ||
+ | #3)downloaded libglib2.0-dev(http://packages.ubuntu.com/dapper/libdevel/libglib2.0-dev) and tried to install it(but it #failed) | ||
+ | #4)apt-get -f install(it will do everything and remove the package which was causing the problem which is #libglib2.0-data or something like that and install the downloaded libglib and download libartsc0-dev from the net and #at last download libsdl1.2-dev and install it) | ||
+ | #Hope it helps and plz do all the steps for it to work. | ||
# get ogre source from http://ogre3d.org | # get ogre source from http://ogre3d.org | ||
Line 59: | Line 104: | ||
aclocal | aclocal | ||
./bootstrap | ./bootstrap | ||
− | ./configure | + | ./configure --with-platform=SDL |
+ | # i first tried without sdl, but only got a blank screen after the graphical resolution chooser | ||
make | make | ||
make install | make install | ||
Line 76: | Line 122: | ||
[[more notes]] | [[more notes]] | ||
+ | |||
+ | http://www.ogre3d.org/wiki/index.php/Kubuntu_Install | ||
+ | http://www.ogre3d.org/wiki/index.php/FromSourceUbuntu | ||
+ | http://www.ogre3d.org/wiki/index.php/Installing_An_SDK#Ubuntu | ||
+ | http://www.ogre3d.org/wiki/index.php/Building_From_Source#Ubuntu_.2F_Kubuntu | ||
+ | |||
+ | http://web.media.mit.edu/~phaeton/ogre/OgreUbuntuInstallNotes.html |
Revision as of 21:23, 21 October 2006
Commandline Parameters
- -n : disable sound (sound engine currently crashes on exit)
- -h 7777 : host (and participate) a game on port 7777
- -d 7777 : start a dedicated server
- -j localhost:7777 : connect to a game running on "localhost" on port 7777
when using none of the -h,-d and -j switches, a local game is started.
Controls
- w : accelerate forward (main thrust)
- s : accelerate backwards (reverse thrust)
- a : accelerate left (strafe)
- d : accelerate right (strafe)
- mouseclick : fire instant-kill weapon (no graphic feedback yet, target simply disappears on hit)
- mouseclick : respawn
- q : debug : reset ship position and rotation to start
- e : debug : set speed to zero
Linux
- you need ogre3d (see below) (Version 1.2.0 (Dagon) or later)
- so far only svn access to the source, no direct download
- SVN path: svn://zwischenwelt.org/sfz
OGRE
Ghoulsblade 23:23, 21 October 2006 (CEST) : here is what i am currently trying, (fresh kubuntu 6.06.1 kernel 2.6.15-26-386) it compiles, links, installs and runs, but i only get a black screen after some graphical chooser.. maybe try rtt hack ? currently i am trying that "./configure --with-platform=SDL"
apt-get install libpng12-0 libpng12-dev libjpeg62 libjpeg62-dev apt-get install freetype2 libzzip-0-12 libzzip-dev zziplib-bin apt-get install build-essential apt-get install libssl-dev libtool apt-get install libcppunit-dev apt-get install libxaw7-dev apt-get install libxxf86vm-dev apt-get install libmng-dev feta install libxrandr-dev # this one is tricky : libtiff4-dev apt-get install libtiff4-dev # will fail, but do it #no idea so far... apt-get install libfreetype6-dev # see "ubuntu dependency problem" below # ubuntu dependency problem : # PROBLEM : apt-get install something fails : # ERRORMSG : Depends: libglib2.0-0 (=2.10.2-1ubuntu3) but 2.10.3-0ubuntu1 is to be installed # SOLUTION: dpkg --force-depends -r libglib2.0-0 # download libglib2.0-dev # from http://packages.ubuntu.com/dapper/libdevel/libglib2.0-dev or so # rightclick downloaded file, choose install # apt-get -f install # apt-get install something # should work now # solution based on http://ubuntuforums.org/showthread.php?t=199228 # idea : maybe activate security / update source in sources.list #apt-get install libdevil1 libdevil-dev ?? might help fix dependencies for devil ? # get Cg from http://developer.nvidia.com/object/cg_toolkit.html , unpack to root "/" to install # old url was : http://developer.nvidia.com/cg # direkt link i used : http://developer.download.nvidia.com/cg/Cg_1.5/1.5.0/Cg-1.5_x86.tar.gz cd / tar xfz Cg-1.5_x86.tar.gz # old file was Cg-1.4.0-3_x86.tar.gz # get zziplib source from http://zziplib.sourceforge.net # mirrorlist i used : http://prdownloads.sourceforge.net/zziplib/zziplib-0.13.47.tar.bz2?download # old version zziplib-0.12.83.tar.bz2 cd /usr/src tar xfj zziplib-0.13.47.tar.bz2 cd zziplib-0.13.47 ./configure make && make check sudo make install # get DevIL source from http://openil.sourceforge.net/ # mirrorlist i used : http://prdownloads.sourceforge.net/openil/DevIL-1.6.8-rc2.tar.gz cd /usr/src tar xfz DevIL-1.6.8-rc2.tar.gz cd DevIL-1.6.8-rc2 ./configure make sudo make install # install sdl with apt-get apt-get install libsdl1.2-dev # got some trouble with that on ubuntu, here is help : http://ubuntuforums.org/showthread.php?t=199228 (the post with #a 4 step solution) #hello all, I had the same problem in dapper 6.06 and fixed it by #(please perform all the steps you may think some are not neccessary but they will configure apt-get -f install in step #4) #1)sudo apt-get install libsdl1.2-dev (but it fails) #2)sudo dpkg --force-depends -r libglib2.0-0(this will remove libglib) #3)downloaded libglib2.0-dev(http://packages.ubuntu.com/dapper/libdevel/libglib2.0-dev) and tried to install it(but it #failed) #4)apt-get -f install(it will do everything and remove the package which was causing the problem which is #libglib2.0-data or something like that and install the downloaded libglib and download libartsc0-dev from the net and #at last download libsdl1.2-dev and install it) #Hope it helps and plz do all the steps for it to work. # get ogre source from http://ogre3d.org cd ogrenew aclocal ./bootstrap ./configure --with-platform=SDL # i first tried without sdl, but only got a blank screen after the graphical resolution chooser make make install # add a line "/usr/local/lib" to /etc/ld.so.conf /sbin/ldconfig cd Samples/Common/bin/ ./SkyBox
Ogre 1.2 Source also works good with platform SDL, but you need to
make sh bootstrap first and then ./configure --with-platform=SDL && make && make install. Without bootstrap make install caused errors.
The OgreApi changed a bit, so you also need to replace the line with getSceneManager in client.cpp with the following
mSceneMgr = mRoot->createSceneManager(ST_GENERIC,"main");
http://www.ogre3d.org/wiki/index.php/Kubuntu_Install http://www.ogre3d.org/wiki/index.php/FromSourceUbuntu http://www.ogre3d.org/wiki/index.php/Installing_An_SDK#Ubuntu http://www.ogre3d.org/wiki/index.php/Building_From_Source#Ubuntu_.2F_Kubuntu
http://web.media.mit.edu/~phaeton/ogre/OgreUbuntuInstallNotes.html