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 | m |
---|
52 | |
---|
53 | copy OgreBuildSettings.h to orxonox dependencies AND cegui dependencies |
---|
54 | |
---|
55 | cd .. |
---|
56 | mkdir debug |
---|
57 | cd debug |
---|
58 | 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" .. |
---|
59 | m |
---|
60 | |
---|
61 | |
---|
62 | ## Freealut: ## |
---|
63 | get OpenAL SDK, put al.h and alc.h in a directory called "AL" (here: libs/openal/OpenAL11/include/AL) |
---|
64 | cd freealut-x.x.x-src/ |
---|
65 | cm -DOPENAL_INCLUDE_DIR:PATH=/home/Xen/libs/openal/OpenAL11/include/ |
---|
66 | m |
---|
67 | |
---|
68 | |
---|
69 | ## Ogg: ## |
---|
70 | cd libogg-x.x.x |
---|
71 | ./configure |
---|
72 | make -j4 |
---|
73 | => libs in src/.libs |
---|
74 | |
---|
75 | |
---|
76 | ## Vorbis (requires ogg): ## |
---|
77 | cd libvorbis-x.x.x |
---|
78 | ./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/ |
---|
79 | make -j4 |
---|
80 | => libs in lib/.libs |
---|
81 | |
---|
82 | |
---|
83 | ## Tcl: ## |
---|
84 | cd tclx.x.x/win/ |
---|
85 | ./configure |
---|
86 | m |
---|
87 | |
---|
88 | |
---|
89 | ## Lua: ## |
---|
90 | cd lua-x.x.x/ |
---|
91 | make mingw -j4 |
---|
92 | make local (for include dir) |
---|
93 | |
---|
94 | |
---|
95 | ## pcre: ## (for cegui) |
---|
96 | cd pcre-x.xx/ |
---|
97 | ./configure --enable-utf8 |
---|
98 | make -j8 |
---|
99 | make install |
---|
100 | |
---|
101 | |
---|
102 | ## CEGUI dependencies ## |
---|
103 | create "dependencies" directory in CEGUI-x.x.x/, subdirectories "include" and "lib" |
---|
104 | include: |
---|
105 | - freetype: ft2build.h & freetype dir (copy from ogre dependencies) |
---|
106 | - pcre: pcre.h (see above) |
---|
107 | - lua: lua.h, luaconf.h, lauxlib.h, lualib.h (see above) |
---|
108 | lib: |
---|
109 | - freetype: libfreetype.a (copy from ogre dependencies) |
---|
110 | - pcre: libpcre.a (see above) |
---|
111 | - lua: lua.dll (copy from orxonox dependencies with floating point precision mode, otherwise it crashes in conjunction with directX!!!) |
---|
112 | |
---|
113 | for cegui 0.7.x: |
---|
114 | put all libs in lib/dynamic/ |
---|
115 | include: |
---|
116 | - ogre: OgreBuildSettings.h (copy from ogre/build/include/) |
---|
117 | |
---|
118 | |
---|
119 | ## CEGUI: (0.6.x) ## |
---|
120 | cd CEGUI-x.x.x/makefiles/premake/ |
---|
121 | open config.lua and activate tinyxml and set it as the default XML parser |
---|
122 | premake --file cegui.lua --target cb-gcc |
---|
123 | open CEGUI.workspace with codeblocks |
---|
124 | build CEGUIBase, CEGUIFalagardWRBase, and CEGUITinyXMLParser each in Release mode |
---|
125 | |
---|
126 | ## CEGUI: (0.7.x) ## |
---|
127 | cd CEGUI-x.x.x/projects/premake/ |
---|
128 | open config.lua: |
---|
129 | - activate tinyxml and set it as the default XML parser |
---|
130 | - set MINIZIP_RESOURCE_PROVIDER = false |
---|
131 | - set OGRE_RENDERER = true |
---|
132 | - set Ogre path: OGRE_PATHS = { "C:/msys/home/Xen/libs/ogre/ogre_src_v1-8-1", "OgreMain/include", "release/bin" } |
---|
133 | - add extra path: { "C:/msys/home/Xen/libs/poco/poco-1.4.6p2", "Foundation/include", "lib/MinGW/ia32", "CEGUIOgreRenderer" } |
---|
134 | premake --file cegui.lua --target cb-gcc |
---|
135 | open CEGUI.workspace with codeblocks |
---|
136 | add "PocoFoundation" to "Link libraries" in tab "Linker settings" of Build options of CEGUIOgreRenderer |
---|
137 | build CEGUIBase, CEGUIFalagardWRBase, and CEGUITinyXMLParser each in Release mode |
---|
138 | build tolua++, CEGUILuaScriptModule, CEGUIOgreRenderer each in Release mode |
---|