Advertisement
Guest User

Preliminary trusty Thrive build script

a guest
Jun 12th, 2014
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.58 KB | None | 0 0
  1. #!/usr/bin/bash
  2. # A very basic preliminary build script for Thrive
  3. # Designed for ubuntu trusty (14.04)
  4. # See project at https://github.com/Revolutionary-Games/Thrive
  5. # If you want to build thrive, all you need to do is source this script.
  6. # Be warned, however, that it's pretty horrible.
  7. # run through sed s/-j4/-j[num-cores]/ first
  8. # or better yet, grab a better build script from the above link
  9.  
  10. mkdir thrive-dev
  11. cd thrive-dev
  12.  
  13. 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
  14.  
  15. sudo apt-get remove libogre-1.8-dev
  16.  
  17. git clone https://github.com/revolutionary-games/thrive
  18. cd thrive
  19. git submodule update --init -- "contrib/luabind"
  20. git submodule update --init -- "contrib/googletest"
  21. svn co http://crovea.net/svn/thrive_assets assets
  22. cd ..
  23.  
  24. # download ogre 1.8.1
  25. curl -L -O http://sourceforge.net/projects/ogre/files/ogre/1.8/1.8.1/ogre_src_v1-8-1.tar.bz2
  26. tar xjf ogre_src_v1-8-1.tar.bz2
  27.  
  28. # download cegui 0.8.3
  29. curl -L -O http://sourceforge.net/projects/crayzedsgui/files/CEGUI%20Mk-2/0.8/cegui-0.8.3.zip
  30. unzip cegui-0.8.3.zip
  31.  
  32. cd ogre_src_v1-8-1
  33. cmake -H. -Bbuild-release -DFREETYPE_INCLUDE_DIR=/usr/include/freetype2
  34. cd build-release
  35. make -j4
  36. sudo make install
  37. sudo ldconfig
  38. cd ../..
  39.  
  40. cd cegui-0.8.3
  41. cp CMakeLists.txt CmakeList.txt.bak
  42. sed s/libfreetype\.so/libfreetype\.a/ <CMakeLists.txt.bak >CMakeLists.txt
  43. cmake -DCMAKE_BUILD_TYPE=Debug -H. -Bbuild-debug -DFREETYPE_INCLUDE_DIR=/usr/include/freetype2 -DCEGUI_HAS_FREETYPE=True
  44. cd build-debug
  45. make -j4
  46. sudo make install
  47. sudo ldconfig
  48. cd ../..
  49.  
  50. cd /usr/local/lib/
  51. sudo cp libCEGUIBase-0.so libCEGUIBase-0_d.so
  52. sudo cp libCEGUIOgreRenderer-0.so libCEGUIOgreRenderer-0_d.so
  53. sudo mv /usr/local/include/cegui-0/CEGUI /usr/local/include/CEGUI
  54. cd -
  55.  
  56. cd ogre_src_v1-8-1/build-release
  57. make -j4
  58. sudo make install
  59. cd ../..
  60.  
  61. cd thrive
  62.  
  63. cmake  -DCMAKE_BUILD_TYPE=Debug -H. -Bbuild-debug
  64.  
  65. cd build-debug
  66. make -j4
  67. make install
  68.  
  69. ./RunTests
  70.  
  71. cd dist/bin
  72. sudo cp /usr/local/lib/OGRE/RenderSystem_GL.so ./RenderSystem_GL_d.so
  73.  
  74. sudo cp Plugin_OctreeSceneManager.so Plugin_OctreeSceneManager_d.so
  75. sudo cp Plugin_OctreeZone.so Plugin_OctreeZone_d.so
  76. sudo cp Plugin_ParticleFX.so Plugin_ParticleFX_d.so
  77. sudo cp Plugin_PCZSceneManager.so Plugin_PCZSceneManager_d.so
  78. sudo cp Plugin_BSPSceneManager.so Plugin_BSPSceneManager_d.so
  79.  
  80. # should this be part of the script?
  81. # perhaps with a prompt
  82. # ./Thrive
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement