Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/bash
- # A very basic preliminary build script for Thrive
- # Designed for ubuntu trusty (14.04)
- # See project at https://github.com/Revolutionary-Games/Thrive
- # If you want to build thrive, all you need to do is source this script.
- # Be warned, however, that it's pretty horrible.
- # run through sed s/-j4/-j[num-cores]/ first
- # or better yet, grab a better build script from the above link
- mkdir thrive-dev
- cd thrive-dev
- sudo apt-get install build-essential cmake curl git subversion doxygen libglu1-mesa-dev freeglut3-dev mesa-common-dev libalut0 libalut-dev libbullet-dev libboost1.54-dev libvorbis-dev libogg-dev libtinyxml-dev libois-dev libogre-1.8-dev libsilly-dev libgtk2.0-dev
- sudo apt-get remove libogre-1.8-dev
- git clone https://github.com/revolutionary-games/thrive
- cd thrive
- git submodule update --init -- "contrib/luabind"
- git submodule update --init -- "contrib/googletest"
- svn co http://crovea.net/svn/thrive_assets assets
- cd ..
- # download ogre 1.8.1
- curl -L -O http://sourceforge.net/projects/ogre/files/ogre/1.8/1.8.1/ogre_src_v1-8-1.tar.bz2
- tar xjf ogre_src_v1-8-1.tar.bz2
- # download cegui 0.8.3
- curl -L -O http://sourceforge.net/projects/crayzedsgui/files/CEGUI%20Mk-2/0.8/cegui-0.8.3.zip
- unzip cegui-0.8.3.zip
- cd ogre_src_v1-8-1
- cmake -H. -Bbuild-release -DFREETYPE_INCLUDE_DIR=/usr/include/freetype2
- cd build-release
- make -j4
- sudo make install
- sudo ldconfig
- cd ../..
- cd cegui-0.8.3
- cp CMakeLists.txt CmakeList.txt.bak
- sed s/libfreetype\.so/libfreetype\.a/ <CMakeLists.txt.bak >CMakeLists.txt
- cmake -DCMAKE_BUILD_TYPE=Debug -H. -Bbuild-debug -DFREETYPE_INCLUDE_DIR=/usr/include/freetype2 -DCEGUI_HAS_FREETYPE=True
- cd build-debug
- make -j4
- sudo make install
- sudo ldconfig
- cd ../..
- cd /usr/local/lib/
- sudo cp libCEGUIBase-0.so libCEGUIBase-0_d.so
- sudo cp libCEGUIOgreRenderer-0.so libCEGUIOgreRenderer-0_d.so
- sudo mv /usr/local/include/cegui-0/CEGUI /usr/local/include/CEGUI
- cd -
- cd ogre_src_v1-8-1/build-release
- make -j4
- sudo make install
- cd ../..
- cd thrive
- cmake -DCMAKE_BUILD_TYPE=Debug -H. -Bbuild-debug
- cd build-debug
- make -j4
- make install
- ./RunTests
- cd dist/bin
- sudo cp /usr/local/lib/OGRE/RenderSystem_GL.so ./RenderSystem_GL_d.so
- sudo cp Plugin_OctreeSceneManager.so Plugin_OctreeSceneManager_d.so
- sudo cp Plugin_OctreeZone.so Plugin_OctreeZone_d.so
- sudo cp Plugin_ParticleFX.so Plugin_ParticleFX_d.so
- sudo cp Plugin_PCZSceneManager.so Plugin_PCZSceneManager_d.so
- sudo cp Plugin_BSPSceneManager.so Plugin_BSPSceneManager_d.so
- # should this be part of the script?
- # perhaps with a prompt
- # ./Thrive
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement