1 | Dependencies |
---|
2 | |
---|
3 | |
---|
4 | alias m='make -j4' |
---|
5 | |
---|
6 | ## Boost: ## |
---|
7 | cd boost_x_xx_x/ |
---|
8 | run bootstrap.bat |
---|
9 | bjam --build-dir=build toolset=gcc variant=release link=shared threading=multi --build-type=complete stage -j4 |
---|
10 | |
---|
11 | cd tools/bcp |
---|
12 | ../../bjam toolset=gcc -j4 |
---|
13 | cd ../.. |
---|
14 | mkdir stripped_orxonox |
---|
15 | ./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 |
---|
16 | |
---|
17 | in mpl/aux_/preprocessed the only required folders are: gcc, no_ctps, no_ttp, and plain |
---|
18 | |
---|
19 | |
---|
20 | -- ## Poco (ogre threading dependency): ## |
---|
21 | -- cd poco-x.x.xxx |
---|
22 | -- ./configure --omit=NetSSL_OpenSSL,Data/ODBC,Data/MySQL --no-tests --no-samples --shared |
---|
23 | -- m |
---|
24 | -- 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 |
---|
25 | |
---|
26 | |
---|
27 | ## Ogre dependencies ## |
---|
28 | get here: https://bitbucket.org/cabalistic/ogredeps |
---|
29 | DirectX SDK installieren |
---|
30 | make zlib a SHARED lib, so we can use it for orxonox as well (edit src/zlib/CMakeLists.txt) |
---|
31 | cd ogredeps |
---|
32 | mkdir build |
---|
33 | cd build |
---|
34 | cm .. |
---|
35 | m |
---|
36 | make install |
---|
37 | |
---|
38 | |
---|
39 | ## Ogre: ## |
---|
40 | Dependencies entpacken (ordnername "Dependencies") oder die selbst kompilierten Dependencies von weiter oben verwenden |
---|
41 | DirectX SDK installieren |
---|
42 | cg SDK installieren |
---|
43 | |
---|
44 | -- open ogre_src_vx-x-x/CMake/Packages/FindPOCO.cmake |
---|
45 | -- add MinGW/ia32 to PATH_SUFFIXES of find_library commands |
---|
46 | |
---|
47 | cd ogre_src_vx-x-x/ |
---|
48 | mkdir release |
---|
49 | cd release |
---|
50 | -- cmake -DCMAKE_BUILD_TYPE=Release -DOGRE_DEPENDENCIES_DIR=../../ogre-dependencies/xxxxxxxx/build/ogredeps -DENV_POCO_ROOT=/home/Xen/libs/poco/poco-x.x.x -G "MSYS Makefiles" .. |
---|
51 | cmake -DCMAKE_BUILD_TYPE=Release -DOGRE_DEPENDENCIES_DIR=../../ogre-dependencies/xxxxxxxx/build/ogredeps -DBOOST_LIBRARYDIR=/home/Xen/libs/boost/boost_x_xx_x/stage/lib/ -DBOOST_INCLUDEDIR=/home/Xen/libs/boost/boost_x_xx_x/ -G "MSYS Makefiles" .. |
---|
52 | m |
---|
53 | |
---|
54 | copy OgreBuildSettings.h to orxonox dependencies AND cegui dependencies |
---|
55 | |
---|
56 | cd .. |
---|
57 | mkdir debug |
---|
58 | cd debug |
---|
59 | cmake -DCMAKE_BUILD_TYPE=Debug -DOGRE_DEPENDENCIES_DIR=../../ogre-dependencies/xxxxxxxx/build/ogredeps -DENV_POCO_ROOT=/home/Xen/libs/poco/poco-x.x.x -G "MSYS Makefiles" .. |
---|
60 | m |
---|
61 | |
---|
62 | |
---|
63 | ## Freealut: ## |
---|
64 | get OpenAL SDK, put al.h and alc.h in a directory called "AL" (here: libs/openal/OpenAL11/include/AL) |
---|
65 | cd freealut-x.x.x-src/ |
---|
66 | cm -DOPENAL_INCLUDE_DIR:PATH=/home/Xen/libs/openal/OpenAL11/include/ |
---|
67 | m |
---|
68 | |
---|
69 | |
---|
70 | ## Ogg: ## |
---|
71 | cd libogg-x.x.x |
---|
72 | ./configure |
---|
73 | make -j4 |
---|
74 | => libs in src/.libs |
---|
75 | |
---|
76 | |
---|
77 | ## Vorbis (requires ogg): ## |
---|
78 | cd libvorbis-x.x.x |
---|
79 | ./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/ |
---|
80 | make -j4 |
---|
81 | => libs in lib/.libs |
---|
82 | |
---|
83 | |
---|
84 | ## Tcl: ## |
---|
85 | cd tclx.x.x/win/ |
---|
86 | ./configure |
---|
87 | m |
---|
88 | |
---|
89 | |
---|
90 | ## Lua: ## |
---|
91 | cd lua-x.x.x/ |
---|
92 | make mingw -j4 |
---|
93 | make local (for include dir) |
---|
94 | |
---|
95 | |
---|
96 | ## pcre: ## (for cegui) |
---|
97 | cd pcre-x.xx/ |
---|
98 | ./configure --enable-utf8 |
---|
99 | make -j8 |
---|
100 | make install |
---|
101 | |
---|
102 | |
---|
103 | ## xerces: ## (for cegui 0.8) |
---|
104 | cd xerces-c-x.x.x |
---|
105 | ./configure |
---|
106 | m |
---|
107 | |
---|
108 | |
---|
109 | ## tolua++: ## (for cegui 0.8) |
---|
110 | cd tolua++-x.x.xx |
---|
111 | created custom.py according to README-5.1 and define paths to lua: |
---|
112 | CCFLAGS = ['-IC:/msys/home/Xen/libs/cegui/dependencies-0.8.2/include/', '-O2', '-ansi'] |
---|
113 | LIBPATH = ['C:/msys/home/Xen/libs/cegui/dependencies-0.8.2/lib/'] |
---|
114 | LIBS = ['lua'] |
---|
115 | tolua_bin = 'tolua++' |
---|
116 | tolua_lib = 'tolua++' |
---|
117 | TOLUAPP = 'tolua++' |
---|
118 | copy lua.dll into tolua++ root directory |
---|
119 | C:/"Program Files"/Python27/Scripts/scons.py -Q shared=1 |
---|
120 | |
---|
121 | |
---|
122 | ## CEGUI dependencies ## |
---|
123 | create "dependencies" directory in CEGUI-x.x.x/, subdirectories "include" and "lib" |
---|
124 | include: |
---|
125 | - freetype: ft2build.h & freetype dir (copy from ogre dependencies) |
---|
126 | - pcre: pcre.h (see above) |
---|
127 | - lua: lua.h, luaconf.h, lauxlib.h, lualib.h (see above) |
---|
128 | - xerces: xercesc dir |
---|
129 | - ogre: put into a subdirectory called ogre: OgreBuildSettings.h (copy from ogre/build/include/) and all content of the include directory |
---|
130 | - tolua++: tolua++.h |
---|
131 | -- - poco: copy Foundation/includ/Poco dir into ogre subdir |
---|
132 | lib: |
---|
133 | - freetype: libfreetype.a (copy from ogre dependencies) |
---|
134 | - pcre: libpcre-1.dll (see above) |
---|
135 | - lua: lua.dll (copy from orxonox dependencies with floating point precision mode, otherwise it crashes in conjunction with directX!!!) |
---|
136 | - xerces: libxerces-c.a (see above) |
---|
137 | - tolua++: copy tolua++.dll (see above) |
---|
138 | |
---|
139 | for cegui 0.7.x: |
---|
140 | put all libs in lib/dynamic/ |
---|
141 | include: |
---|
142 | |
---|
143 | |
---|
144 | ## CEGUI: (0.7.x) ## |
---|
145 | cd CEGUI-x.x.x/projects/premake/ |
---|
146 | open config.lua: |
---|
147 | - activate xerces 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-8-1", "OgreMain/include", "release/bin" } |
---|
151 | -- - add extra path: { "C:/msys/home/Xen/libs/poco/poco-1.4.6p2", "Foundation/include", "lib/MinGW/ia32", "CEGUIOgreRenderer" } |
---|
152 | - add extra path: { "../dependencies-0.7.9", "include", "lib/dynamic" }, |
---|
153 | - add extra path: { "../../boost/boost_1_54_0", "", "stage/lib", "CEGUIOgreRenderer" }, |
---|
154 | - add extra path: { "../../xerces/xerces-c-3.1.1/src", "", "", "CEGUIXercesParser" }, |
---|
155 | premake --file cegui.lua --target cb-gcc |
---|
156 | open CEGUI.workspace with codeblocks |
---|
157 | --add "PocoFoundation" to "Link libraries" in tab "Linker settings" of Build options of CEGUIOgreRenderer |
---|
158 | add "boost_system-mgw45-mt-1_54" to "Link libraries" in tab "Linker settings" of Build options of CEGUIOgreRenderer (Release mode) |
---|
159 | change "xerces-c_3" to "xerces-c" in "Link libraries" in tab "Linker settings" of Build options of CEGUIXercesParser (Release mode) |
---|
160 | build CEGUIBase, CEGUIFalagardWRBase, and CEGUIXercesParser each in Release mode |
---|
161 | build tolua++, CEGUILuaScriptModule, CEGUIOgreRenderer each in Release mode |
---|
162 | |
---|
163 | ## CEGUI: (0.8.x) ## |
---|
164 | cd cegui-x.x.x |
---|
165 | mkdir build |
---|
166 | cd build |
---|
167 | cmake .. -G "MSYS Makefiles" \ |
---|
168 | -DFREETYPE_H_PATH_ft2build=../../dependencies-0.8.2/include/ \ |
---|
169 | -DFREETYPE_H_PATH_ftconfig=../../dependencies-0.8.2/include/freetype/config/ \ |
---|
170 | -DFREETYPE_LIB=../../dependencies-0.8.2/lib/libfreetype.a \ |
---|
171 | -DPCRE_H_PATH=../../dependencies-0.8.2/include/ \ |
---|
172 | -DPCRE_LIB=../../dependencies-0.8.2/lib/libpcre-1.dll \ |
---|
173 | -DLUA_H_PATH=../../dependencies-0.8.2/include/ \ |
---|
174 | -DLUA_LIB=../../dependencies-0.8.2/lib/lua.dll \ |
---|
175 | -DXERCESC_H_PATH=../../dependencies-0.8.2/include/ \ |
---|
176 | -DXERCESC_LIB=../../dependencies-0.8.2/lib/libxerces-c.a \ |
---|
177 | -DOGRE_H_PATH=../../dependencies-0.8.2/include/ogre/ \ |
---|
178 | -DOGRE_LIB=../../../ogre/ogre_src_v1-8-1/release/bin/OgreMain.dll \ |
---|
179 | -DTOLUAPP_H_PATH=../../dependencies-0.8.2/include/ \ |
---|
180 | -DTOLUAPP_LIB=../../dependencies-0.8.2/lib/tolua++.dll |
---|
181 | m CEGUIXercesParser |
---|
182 | m CEGUILuaScriptModule-0 |
---|
183 | m CEGUIOgreRenderer-0 VERBOSE=1 |
---|
184 | --copy link command and add PocoFoundation library |
---|
185 | copy link command and add boost_system-mgw45-mt-1_54 library |
---|
186 | |
---|
187 | Important: Don't forget to copy the 3 generated header files from the build directory into orxonox dependencies! |
---|