[112] | 1 | Dependencies |
---|
| 2 | |
---|
| 3 | ## Boost: ## |
---|
| 4 | cd boost_x_xx_x/ |
---|
| 5 | cd tools/build/v2/ |
---|
| 6 | run bootstrap.bat |
---|
| 7 | bjam install --prefix=../../../boostbuild |
---|
| 8 | cd ../../.. |
---|
| 9 | |
---|
| 10 | boostbuild/bin/bjam --build-dir=build toolset=gcc --build-type=complete stage -j8 |
---|
| 11 | or |
---|
| 12 | boostbuild/bin/bjam --build-dir=build toolset=gcc variant=release link=shared threading=multi --build-type=complete stage -j4 |
---|
| 13 | |
---|
| 14 | ## Boost: ## |
---|
| 15 | bis version 1.44.0: cd tools/build/v2/ |
---|
| 16 | cd boost_x_xx_x/ |
---|
| 17 | run bootstrap.bat |
---|
| 18 | |
---|
| 19 | ab version 1.46.0: cd tools/build/v2/ |
---|
| 20 | run bootstrap.bat |
---|
| 21 | bjam install --prefix=../../../boostbuild |
---|
| 22 | |
---|
| 23 | bjam --build-dir=build toolset=gcc --build-type=complete stage -j8 |
---|
| 24 | or |
---|
| 25 | bjam --build-dir=build toolset=gcc variant=release link=shared threading=multi --build-type=complete stage -j4 |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | ## bcp: ## |
---|
| 29 | cd boost_x_xx_x/tools/bcp |
---|
| 30 | ../../boostbuild/bin/bjam toolset=gcc |
---|
| 31 | cd ../.. |
---|
| 32 | mkdir stripped_orxonox |
---|
| 33 | ./bin.v2/tools/bcp/gcc-mingw-4.5.2/release/link-static/bcp array asio assign bimap bind circular_buffer compressed_pair config date_time filesystem foreach format function intrusive logic member_function mpl operators preprocessor range ref scope_exit smart_ptr static_assert thread unordered ./stripped_orxonox |
---|
| 34 | |
---|
| 35 | in mpl/aux_/preprocessed the only required folders are: gcc, no_ctps, no_ttp, and plain |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | ## Poco (ogre threading dependency): ## |
---|
| 39 | cd poco-x.x.xxx |
---|
| 40 | ./configure --omit=NetSSL_OpenSSL,Data/ODBC,Data/MySQL --no-tests --no-samples --shared |
---|
| 41 | m |
---|
| 42 | if linking fails, copy link command and remove the missing libraries, paste it to the console to build it manually. only PocoFoundation.dll is required |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | ## Ogre dependencies ## |
---|
| 46 | get here: https://bitbucket.org/cabalistic/ogredeps |
---|
| 47 | DirectX SDK installieren |
---|
| 48 | make zlib a SHARED lib, so we can use it for orxonox as well |
---|
| 49 | cd ogredeps |
---|
| 50 | mkdir build |
---|
| 51 | cm |
---|
| 52 | m |
---|
| 53 | make install |
---|
| 54 | copy bin, include, and lib folders to ogre/Dependencies (maybe replace cg lib and header with externally installed version) |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | ## Ogre: ## |
---|
| 58 | Dependencies entpacken (ordnername "Dependencies") oder die selbst kompilierten Dependencies von weiter oben verwenden |
---|
| 59 | DirectX SDK installieren |
---|
| 60 | cg SDK installieren |
---|
| 61 | |
---|
| 62 | open ogre_src_vx-x-x/CMake/Packages/FindPOCO.cmake |
---|
| 63 | add MinGW/ia32 to PATH_SUFFIXES of find_library commands |
---|
| 64 | |
---|
| 65 | cd ogre_src_vx-x-x/ |
---|
| 66 | mkdir release |
---|
| 67 | cd release |
---|
| 68 | cmake -D "CMAKE_BUILD_TYPE=Release" -G "MSYS Makefiles" .. -DENV_POCO_ROOT=/home/Xen/libs/poco/poco-1.4.1p1 |
---|
| 69 | m |
---|
| 70 | |
---|
| 71 | copy OgreBuildSettings.h to orxonox dependencies AND cegui dependencies |
---|
| 72 | |
---|
| 73 | cd .. |
---|
| 74 | mkdir debug |
---|
| 75 | cd debug |
---|
| 76 | cmake -D "CMAKE_BUILD_TYPE=Debug" -G "MSYS Makefiles" .. |
---|
| 77 | m |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | ## Freealut: ## |
---|
| 81 | get OpenAL SDK, put al.h and alc.h in a directory called "AL" (here: libs/openal/OpenAL11/include/AL) |
---|
| 82 | cd freealut-x.x.x-src/ |
---|
| 83 | cm -DOPENAL_INCLUDE_DIR:PATH=/home/Xen/libs/openal/OpenAL11/include/ |
---|
| 84 | m |
---|
| 85 | |
---|
| 86 | |
---|
| 87 | ## Ogg: ## |
---|
| 88 | cd libogg-x.x.x |
---|
| 89 | ./configure |
---|
| 90 | make -j4 |
---|
| 91 | => libs in src/.libs |
---|
| 92 | |
---|
| 93 | |
---|
| 94 | ## Vorbis (requires ogg): ## |
---|
| 95 | cd libvorbis-x.x.x |
---|
| 96 | ./configure --with-ogg-libraries=/home/Xen/libs/ogg/libogg-1.2.2/src/.libs/ --with-ogg-includes=/home/Xen/libs/ogg/libogg-1.2.2/include/ |
---|
| 97 | make -j4 |
---|
| 98 | => libs in lib/.libs |
---|
| 99 | |
---|
| 100 | |
---|
| 101 | ## Tcl: ## |
---|
| 102 | cd tclx.x.x/win/ |
---|
| 103 | ./configure |
---|
| 104 | m |
---|
| 105 | |
---|
| 106 | |
---|
| 107 | ## Lua: ## |
---|
| 108 | cd lua-x.x.x/ |
---|
| 109 | make mingw -j4 |
---|
| 110 | make local (for include dir) |
---|
| 111 | |
---|
| 112 | |
---|
| 113 | ## pcre: ## (for cegui) |
---|
| 114 | cd pcre-x.xx/ |
---|
| 115 | ./configure --enable-utf8 |
---|
| 116 | make -j8 |
---|
| 117 | make install |
---|
| 118 | |
---|
| 119 | |
---|
| 120 | ## CEGUI dependencies ## |
---|
| 121 | create "dependencies" directory in CEGUI-x.x.x/, subdirectories "include" and "lib" |
---|
| 122 | include: |
---|
| 123 | - freetype: ft2build.h & freetype dir (copy from ogre dependencies) |
---|
| 124 | - pcre: pcre.h (see above) |
---|
| 125 | - lua: lua.h, luaconf.h, lauxlib.h, lualib.h (see above) |
---|
| 126 | lib: |
---|
| 127 | - freetype: libfreetype.a (copy from ogre dependencies) |
---|
| 128 | - pcre: libpcre.a (see above) |
---|
| 129 | - lua: lua.dll (copy from orxonox dependencies with floating point precision mode, otherwise it crashes in conjunction with directX!!!) |
---|
| 130 | |
---|
| 131 | for cegui 0.7.x: |
---|
| 132 | put all libs in lib/dynamic/ |
---|
| 133 | include: |
---|
| 134 | - ogre: OgreBuildSettings.h (copy from ogre/build/include/) |
---|
| 135 | |
---|
| 136 | |
---|
| 137 | ## CEGUI: (0.6.x) ## |
---|
| 138 | cd CEGUI-x.x.x/makefiles/premake/ |
---|
| 139 | open config.lua and activate tinyxml and set it as the default XML parser |
---|
| 140 | premake --file cegui.lua --target cb-gcc |
---|
| 141 | open CEGUI.workspace with codeblocks |
---|
| 142 | build CEGUIBase, CEGUIFalagardWRBase, and CEGUITinyXMLParser each in Release mode |
---|
| 143 | |
---|
| 144 | ## CEGUI: (0.7.x) ## |
---|
| 145 | cd CEGUI-x.x.x/projects/premake/ |
---|
| 146 | open config.lua: |
---|
| 147 | - activate tinyxml and set it as the default XML parser |
---|
| 148 | - set MINIZIP_RESOURCE_PROVIDER = false |
---|
| 149 | - set OGRE_RENDERER = true |
---|
| 150 | - set Ogre path: OGRE_PATHS = { "C:/msys/home/Xen/libs/ogre/ogre_src_v1-7-2", "OgreMain/include", "release/bin" } |
---|
| 151 | - add extra path: { "C:/msys/home/Xen/libs/poco/poco-1.4.1p1", "Foundation/include", "lib/MinGW/ia32", "CEGUIOgreRenderer" } |
---|
| 152 | premake --file cegui.lua --target cb-gcc |
---|
| 153 | open CEGUI.workspace with codeblocks |
---|
| 154 | add "PocoFoundation" to "Link libraries" in tab "Linker settings" of Build options of CEGUIOgreRenderer |
---|
| 155 | build CEGUIBase, CEGUIFalagardWRBase, and CEGUITinyXMLParser each in Release mode |
---|
| 156 | build tolua++, CEGUILuaScriptModule, CEGUIOgreRenderer each in Release mode |
---|
| 157 | |
---|
| 158 | |
---|
| 159 | ############ |
---|
| 160 | # outdated # |
---|
| 161 | ############ |
---|
| 162 | |
---|
| 163 | ## Freeimage: ## (for ogre) |
---|
| 164 | uncomment line in Makefile.mingw to enable static build |
---|
| 165 | #FREEIMAGE_LIBRARY_TYPE = STATIC |
---|
| 166 | <--> |
---|
| 167 | FREEIMAGE_LIBRARY_TYPE = STATIC |
---|
| 168 | |
---|
| 169 | in FreeImage/Source/OpenEXR/Imath/ImathMatrix.h add "#include <cstring>" |
---|
| 170 | |
---|
| 171 | cd FreeImagexxxx/FreeImage |
---|
| 172 | make -f Makefile.mingw -j8 |
---|
| 173 | |
---|
| 174 | library in /Dist/ |
---|
| 175 | |
---|
| 176 | |
---|
| 177 | ## Ogre ## |
---|
| 178 | |
---|
| 179 | copy FreeImage.a into the Dependencies and replace the old files (see section above) |
---|
| 180 | |
---|
| 181 | |
---|
| 182 | ## zlib: ## (for cegui 0.7.x) |
---|
| 183 | cd zlib-x.x.x |
---|
| 184 | mkdir build |
---|
| 185 | cd build |
---|
| 186 | cm |
---|
| 187 | (delete zconf.h) |
---|
| 188 | make |
---|
| 189 | make install |
---|
| 190 | die ganze scheisse von c:/program files/zlib nach /local (msys) verschieben |
---|
| 191 | |
---|
| 192 | |
---|
| 193 | ## Boost: ## |
---|
| 194 | get bjam: http://sourceforge.net/projects/boost/files/boost-jam/ |
---|
| 195 | cd boost_x_xx_x/ |
---|
| 196 | ../boost-jam-3.1.18-1-ntx86/bjam --build-dir=build toolset=gcc --build-type=complete stage -j8 |
---|
| 197 | or |
---|
| 198 | ../boost-jam-3.1.18-1-ntx86/bjam --build-dir=build toolset=gcc variant=release link=shared threading=multi --build-type=complete stage -j4 |
---|
| 199 | |
---|