Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/windows/precompiled_dependencies/mingw/orxonox_dependencies.txt @ 112

Last change on this file since 112 was 112, checked in by landauf, 11 years ago

added my description of how to build the dependencies for windows with mingw

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