source: trunk/contrib/NOTES @ 1586

Last change on this file since 1586 was 1586, checked in by sam, 8 years ago

build: update Windows SDL binaries to 1.2.15.

File size: 2.2 KB
Line 
1#####################
2# Building contribs #
3#####################
4
5
6Glew
7----
8
9Download page: http://sourceforge.net/projects/glew/files/glew
10
11- fix config/Makefile.linux-mingw32 and config/Makefile.linux-mingw64 to
12  get the right compiler and linker executable names.
13
14    sed -i 's/i586-mingw32msvc/i686-w64-mingw32/g' config/*.linux-mingw32
15    sed -i 's/amd64-mingw32msvc/x86_64-w64-mingw32/g' config/*.linux-mingw64
16
17- fix Makefile for static builds
18
19    sed -i 's/-DGLEW_NO_GLU.*CFLAGS[^P]*CFLAGS/-DGLEW_STATIC &/g' Makefile
20
21- build for Win32
22
23    make SYSTEM=linux-mingw32 clean all
24    i686-w64-mingw32-ranlib lib/libglew32.a
25
26- copy lib/libglew32.a in the contrib directory as glew32.lib
27
28- build for Win64
29
30    make SYSTEM=linux-mingw64 clean all
31    x86_64-w64-mingw32-ranlib lib/libglew32.a
32
33- copy lib/libglew32.a in the contrib directory as glew32.lib
34
35
36SDL
37---
38
39Download page: http://www.libsdl.org/release/
40
41Just take the pre-compiled binaries from upstream (for VC). For other
42ways to build SDL, see older versions of this document.
43
44
45SDL_Image
46---------
47
48Download page: http://www.libsdl.org/projects/SDL_image/release/
49
50Hard to do, requires libjpeg, libtiff, libpng, zlib...
51
52
53SDL_Mixer
54---------
55
56Download page: http://www.libsdl.org/projects/SDL_mixer/release/
57
58Hard to do, requires libogg, libvorbis, mikmod, libsmpeg...
59
60
61Flex
62----
63
64Just copied FlexLexer.h from a Debian installation.
65
66Libcaca
67-------
68
69Ran build-win32 and build-64 on a Debian installation, copied the
70resulting .lib files and some headers.
71
72
73Bullet
74------
75
76Download page: http://code.google.com/p/bullet/downloads/list
77
78Win32:
79- build normally using Visual Studio 2010
80
81Win64:
82- build normally using Visual Studio 2010
83- remove _x64 suffix from object names
84
85Xbox 360:
86- add Xbox 360 platform to the vs2010 solution, using eg. Win32 as a preset
87- save solution and exit vs2010
88- sed -i 's@<ItemDefinitionGroup.*Xbox 360.*@&<ClCompile><PreprocessorDefinitions>_XBOX;%(PreprocessorDefinitions)</PreprocessorDefinitions></ClCompile>@' msvc/vs2010/*.vcxproj
89- sed -i 's@.*MachineX86.*@@' msvc/vs2010/*vcxproj
90- reload solution
91- build only required projects
92
93PS3:
94- sh autogen.sh
95- ./configure CXX=ppu-lv2-g++ CC=ppu-lv2-gcc ac_cv_exeext=.elf --host=powerpc
96- make -j4
97- make install DESTDIR=$PWD/tmp
98
Note: See TracBrowser for help on using the repository browser.