Difference between revisions of "User:AndrewW/Gentoo"

From FreeOrionWiki
Jump to: navigation, search
(Gentoo)
(Gentoo [64-bit])
Line 3: Line 3:
 
You will need the following packages:
 
You will need the following packages:
  
* gigi
+
* ogre
 
* boost
 
* boost
 
* bullet
 
* bullet
Line 17: Line 17:
 
Some of these may already be installed and you may not need to emerge all of these:
 
Some of these may already be installed and you may not need to emerge all of these:
  
  emerge gigi boost bullet openal freealut libogg libvorbis zlib libpng ois subversion -a
+
  emerge ogre boost bullet openal freealut libogg libvorbis zlib libpng ois subversion -a
 
+
Create some links:
+
 
+
ln -s /usr/lib/libBulletCollision.so /usr/local/lib64/libbulletcollision.so
+
ln -s /usr/lib/libBulletDynamics.so /usr/local/lib64/libbulletdynamics.so
+
ln -s /usr/lib/libLinearMath.so /usr/local/lib64/libbulletmath.so
+
  
  
 
Get the current build:
 
Get the current build:
  
svn co http://svn.code.sf.net/p/freeorion/code/trunk/FreeOrion/ freeorion
+
svn co http://svn.code.sf.net/p/freeorion/code/trunk/FreeOrion/ freeorion
 
+
 
+
 
+
Create some additional links:
+
 
+
cd freeorion
+
ln -s /usr/lib/OGRE/Plugin_OctreeSceneManager.so  .
+
ln -s /usr/lib/OGRE/Plugin_ParticleFX.so  .
+
ln -s /usr/lib/OGRE/RenderSystem_GL.so .
+
ln -s /usr/lib/OGRE/Plugin_BSPSceneManager.so .
+
ln -s /usr/lib/OGRE/Plugin_OctreeZone.so .
+
ln -s /usr/lib/OGRE/Plugin_PCZSceneManager.so .
+
 
+
You'll need to compile the Gigi that is included with the FreeOrion source.
+
 
+
cd GG
+
cmake -DBUILD_TUTORIALS=off -DBUILD_OGRE_DRIVER=ON -DBUILD_OGRE_OIS_PLUGIN=ON .
+
make
+
 
+
Back to the freeorion directory
+
+
cd ..
+
 
+
  
 
Compile: (You should already be in the freeorion directory at this point, if not switch to that first)
 
Compile: (You should already be in the freeorion directory at this point, if not switch to that first)
Line 58: Line 29:
 
  make
 
  make
  
 +
sed -i 's#PluginFolder=\.#PluginFolder=/usr/lib/OGRE/#' ogre_plugins.cfg
  
 
Enjoy.
 
Enjoy.
  
 
No guarantees, but it worked for me anyways thought it might help someone else out.
 
No guarantees, but it worked for me anyways thought it might help someone else out.

Revision as of 18:02, 16 June 2013

Gentoo [64-bit]

You will need the following packages:

  • ogre
  • boost
  • bullet
  • openal
  • freealut
  • libogg
  • libvorbis
  • zlib
  • libpng
  • ois
  • subversion

Some of these may already be installed and you may not need to emerge all of these:

emerge ogre boost bullet openal freealut libogg libvorbis zlib libpng ois subversion -a


Get the current build:

svn co http://svn.code.sf.net/p/freeorion/code/trunk/FreeOrion/ freeorion

Compile: (You should already be in the freeorion directory at this point, if not switch to that first)

cmake .
make
sed -i 's#PluginFolder=\.#PluginFolder=/usr/lib/OGRE/#' ogre_plugins.cfg

Enjoy.

No guarantees, but it worked for me anyways thought it might help someone else out.