Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

updated precompiled dependencies for mingw

File size: 6.8 KB
Line 
1Dependencies
2
3
4alias m='make -j4'
5
6## Boost: ##
7cd boost_x_xx_x/
8run bootstrap.bat
9bjam --build-dir=build toolset=gcc variant=release link=shared threading=multi --build-type=complete stage -j4
10
11cd tools/bcp
12../../bjam toolset=gcc -j4
13cd ../..
14mkdir 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
17in 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 ##
28get here: https://bitbucket.org/cabalistic/ogredeps
29DirectX SDK installieren
30make zlib a SHARED lib, so we can use it for orxonox as well (edit src/zlib/CMakeLists.txt)
31cd ogredeps
32mkdir build
33cd build
34cm ..
35m
36make install
37
38
39## Ogre: ##
40Dependencies entpacken (ordnername "Dependencies") oder die selbst kompilierten Dependencies von weiter oben verwenden
41DirectX SDK installieren
42cg 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
47cd ogre_src_vx-x-x/
48mkdir release
49cd 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" ..
51cmake -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" ..
52m
53
54copy OgreBuildSettings.h to orxonox dependencies AND cegui dependencies
55
56cd ..
57mkdir debug
58cd debug
59cmake -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" ..
60m
61
62
63## Freealut: ##
64get OpenAL SDK, put al.h and alc.h in a directory called "AL" (here: libs/openal/OpenAL11/include/AL)
65cd freealut-x.x.x-src/
66cm -DOPENAL_INCLUDE_DIR:PATH=/home/Xen/libs/openal/OpenAL11/include/
67m
68
69
70## Ogg: ##
71cd libogg-x.x.x
72./configure
73make -j4
74=> libs in src/.libs
75
76
77## Vorbis (requires ogg): ##
78cd 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/
80make -j4
81=> libs in lib/.libs
82
83
84## Tcl: ##
85cd tclx.x.x/win/
86./configure
87m
88
89
90## Lua: ##
91cd lua-x.x.x/
92make mingw -j4
93make local (for include dir)
94
95
96## pcre: ## (for cegui)
97cd pcre-x.xx/
98./configure --enable-utf8
99make -j8
100make install
101
102
103## xerces: ## (for cegui 0.8)
104cd xerces-c-x.x.x
105./configure
106m
107
108
109## tolua++: ## (for cegui 0.8)
110cd tolua++-x.x.xx
111created custom.py according to README-5.1 and define paths to lua:
112CCFLAGS = ['-IC:/msys/home/Xen/libs/cegui/dependencies-0.8.2/include/', '-O2', '-ansi']
113LIBPATH = ['C:/msys/home/Xen/libs/cegui/dependencies-0.8.2/lib/']
114LIBS = ['lua']
115tolua_bin = 'tolua++'
116tolua_lib = 'tolua++'
117TOLUAPP = 'tolua++'
118copy lua.dll into tolua++ root directory
119C:/"Program Files"/Python27/Scripts/scons.py -Q shared=1
120
121
122## CEGUI dependencies ##
123create "dependencies" directory in CEGUI-x.x.x/, subdirectories "include" and "lib"
124include:
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
132lib:
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
139for cegui 0.7.x:
140put all libs in lib/dynamic/
141include:
142
143
144## CEGUI: (0.7.x) ##
145cd CEGUI-x.x.x/projects/premake/
146open 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" },
155premake --file cegui.lua --target cb-gcc
156open CEGUI.workspace with codeblocks
157--add "PocoFoundation" to "Link libraries" in tab "Linker settings" of Build options of CEGUIOgreRenderer
158add "boost_system-mgw45-mt-1_54" to "Link libraries" in tab "Linker settings" of Build options of CEGUIOgreRenderer (Release mode)
159change "xerces-c_3" to "xerces-c" in "Link libraries" in tab "Linker settings" of Build options of CEGUIXercesParser (Release mode)
160build CEGUIBase, CEGUIFalagardWRBase, and CEGUIXercesParser each in Release mode
161build tolua++, CEGUILuaScriptModule, CEGUIOgreRenderer each in Release mode
162
163## CEGUI: (0.8.x) ##
164cd cegui-x.x.x
165mkdir build
166cd build
167cmake .. -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
181m CEGUIXercesParser
182m CEGUILuaScriptModule-0
183m CEGUIOgreRenderer-0 VERBOSE=1
184--copy link command and add PocoFoundation library
185copy link command and add boost_system-mgw45-mt-1_54 library
186
187Important: Don't forget to copy the 3 generated header files from the build directory into orxonox dependencies!
Note: See TracBrowser for help on using the repository browser.