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 | |
---|
9 | bjam --build-dir=build toolset=gcc --build-type=complete stage -j8 |
---|
10 | or |
---|
11 | bjam --build-dir=build toolset=gcc variant=release link=shared threading=multi --build-type=complete stage -j4 |
---|
12 | |
---|
13 | |
---|
14 | ## bcp: ## |
---|
15 | cd boost_x_xx_x/tools/bcp |
---|
16 | ../../boostbuild/bin/bjam toolset=gcc |
---|
17 | cd ../.. |
---|
18 | mkdir stripped_orxonox |
---|
19 | ./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 |
---|
20 | |
---|
21 | in mpl/aux_/preprocessed the only required folders are: gcc, no_ctps, no_ttp, and plain |
---|
22 | |
---|
23 | |
---|
24 | ## Poco (ogre threading dependency): ## |
---|
25 | cd poco-x.x.xxx |
---|
26 | ./configure --omit=NetSSL_OpenSSL,Data/ODBC,Data/MySQL --no-tests --no-samples --shared |
---|
27 | m |
---|
28 | 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 |
---|
29 | |
---|
30 | |
---|
31 | ## Ogre dependencies ## |
---|
32 | get here: https://bitbucket.org/cabalistic/ogredeps |
---|
33 | DirectX SDK installieren |
---|
34 | make zlib a SHARED lib, so we can use it for orxonox as well |
---|
35 | cd ogredeps |
---|
36 | mkdir build |
---|
37 | cm |
---|
38 | m |
---|
39 | make install |
---|
40 | copy bin, include, and lib folders to ogre/Dependencies (maybe replace cg lib and header with externally installed version) |
---|
41 | |
---|
42 | |
---|
43 | ## Ogre: ## |
---|
44 | Dependencies entpacken (ordnername "Dependencies") oder die selbst kompilierten Dependencies von weiter oben verwenden |
---|
45 | DirectX SDK installieren |
---|
46 | cg SDK installieren |
---|
47 | |
---|
48 | open ogre_src_vx-x-x/CMake/Packages/FindPOCO.cmake |
---|
49 | add MinGW/ia32 to PATH_SUFFIXES of find_library commands |
---|
50 | |
---|
51 | cd ogre_src_vx-x-x/ |
---|
52 | mkdir release |
---|
53 | cd release |
---|
54 | cmake -D "CMAKE_BUILD_TYPE=Release" -G "MSYS Makefiles" .. -DENV_POCO_ROOT=/home/Xen/libs/poco/poco-1.4.1p1 |
---|
55 | m |
---|
56 | |
---|
57 | copy OgreBuildSettings.h to orxonox dependencies AND cegui dependencies |
---|
58 | |
---|
59 | cd .. |
---|
60 | mkdir debug |
---|
61 | cd debug |
---|
62 | cmake -D "CMAKE_BUILD_TYPE=Debug" -G "MSYS Makefiles" .. |
---|
63 | m |
---|
64 | |
---|
65 | |
---|
66 | ## Freealut: ## |
---|
67 | get OpenAL SDK, put al.h and alc.h in a directory called "AL" (here: libs/openal/OpenAL11/include/AL) |
---|
68 | cd freealut-x.x.x-src/ |
---|
69 | cm -DOPENAL_INCLUDE_DIR:PATH=/home/Xen/libs/openal/OpenAL11/include/ |
---|
70 | m |
---|
71 | |
---|
72 | |
---|
73 | ## Ogg: ## |
---|
74 | cd libogg-x.x.x |
---|
75 | ./configure |
---|
76 | make -j4 |
---|
77 | => libs in src/.libs |
---|
78 | |
---|
79 | |
---|
80 | ## Vorbis (requires ogg): ## |
---|
81 | cd libvorbis-x.x.x |
---|
82 | ./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/ |
---|
83 | make -j4 |
---|
84 | => libs in lib/.libs |
---|
85 | |
---|
86 | |
---|
87 | ## Tcl: ## |
---|
88 | cd tclx.x.x/win/ |
---|
89 | ./configure |
---|
90 | m |
---|
91 | |
---|
92 | |
---|
93 | ## Lua: ## |
---|
94 | cd lua-x.x.x/ |
---|
95 | make mingw -j4 |
---|
96 | make local (for include dir) |
---|
97 | |
---|
98 | |
---|
99 | ## pcre: ## (for cegui) |
---|
100 | cd pcre-x.xx/ |
---|
101 | ./configure --enable-utf8 |
---|
102 | make -j8 |
---|
103 | make install |
---|
104 | |
---|
105 | |
---|
106 | ## CEGUI dependencies ## |
---|
107 | create "dependencies" directory in CEGUI-x.x.x/, subdirectories "include" and "lib" |
---|
108 | include: |
---|
109 | - freetype: ft2build.h & freetype dir (copy from ogre dependencies) |
---|
110 | - pcre: pcre.h (see above) |
---|
111 | - lua: lua.h, luaconf.h, lauxlib.h, lualib.h (see above) |
---|
112 | lib: |
---|
113 | - freetype: libfreetype.a (copy from ogre dependencies) |
---|
114 | - pcre: libpcre.a (see above) |
---|
115 | - lua: lua.dll (copy from orxonox dependencies with floating point precision mode, otherwise it crashes in conjunction with directX!!!) |
---|
116 | |
---|
117 | for cegui 0.7.x: |
---|
118 | put all libs in lib/dynamic/ |
---|
119 | include: |
---|
120 | - ogre: OgreBuildSettings.h (copy from ogre/build/include/) |
---|
121 | |
---|
122 | |
---|
123 | ## CEGUI: (0.6.x) ## |
---|
124 | cd CEGUI-x.x.x/makefiles/premake/ |
---|
125 | open config.lua and activate tinyxml and set it as the default XML parser |
---|
126 | premake --file cegui.lua --target cb-gcc |
---|
127 | open CEGUI.workspace with codeblocks |
---|
128 | build CEGUIBase, CEGUIFalagardWRBase, and CEGUITinyXMLParser each in Release mode |
---|
129 | |
---|
130 | ## CEGUI: (0.7.x) ## |
---|
131 | cd CEGUI-x.x.x/projects/premake/ |
---|
132 | open config.lua: |
---|
133 | - activate tinyxml and set it as the default XML parser |
---|
134 | - set MINIZIP_RESOURCE_PROVIDER = false |
---|
135 | - set OGRE_RENDERER = true |
---|
136 | - set Ogre path: OGRE_PATHS = { "C:/msys/home/Xen/libs/ogre/ogre_src_v1-7-2", "OgreMain/include", "release/bin" } |
---|
137 | - add extra path: { "C:/msys/home/Xen/libs/poco/poco-1.4.1p1", "Foundation/include", "lib/MinGW/ia32", "CEGUIOgreRenderer" } |
---|
138 | premake --file cegui.lua --target cb-gcc |
---|
139 | open CEGUI.workspace with codeblocks |
---|
140 | add "PocoFoundation" to "Link libraries" in tab "Linker settings" of Build options of CEGUIOgreRenderer |
---|
141 | build CEGUIBase, CEGUIFalagardWRBase, and CEGUITinyXMLParser each in Release mode |
---|
142 | build tolua++, CEGUILuaScriptModule, CEGUIOgreRenderer each in Release mode |
---|