1 | ##################### |
---|
2 | # Building contribs # |
---|
3 | ##################### |
---|
4 | |
---|
5 | |
---|
6 | Glew |
---|
7 | ---- |
---|
8 | |
---|
9 | Download 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 | |
---|
36 | SDL |
---|
37 | --- |
---|
38 | |
---|
39 | Download page: http://www.libsdl.org/release/ |
---|
40 | |
---|
41 | - take the pre-compiled binaries for Visual C++ |
---|
42 | - take the pre-compiled libSDLmain.a for 32-bit mingw32 |
---|
43 | |
---|
44 | - download the source and build libSDLmain.a for 64-bit mingw32 |
---|
45 | (note: CPPFLAGS=-D_CRTIMP= used to be needed) |
---|
46 | |
---|
47 | ./configure --host=x86_64-w64-mingw32 |
---|
48 | make clean all |
---|
49 | |
---|
50 | - copy build/.libs/libSDLmain.a |
---|
51 | - copy build/.libs/libSDL.dll.a |
---|
52 | |
---|
53 | |
---|
54 | SDL_Image |
---|
55 | --------- |
---|
56 | |
---|
57 | Download page: http://www.libsdl.org/projects/SDL_image/release/ |
---|
58 | |
---|
59 | Hard to do, requires libjpeg, libtiff, libpng, zlib... |
---|
60 | |
---|
61 | |
---|
62 | SDL_Mixer |
---|
63 | --------- |
---|
64 | |
---|
65 | Download page: http://www.libsdl.org/projects/SDL_mixer/release/ |
---|
66 | |
---|
67 | Hard to do, requires libogg, libvorbis, mikmod, libsmpeg... |
---|
68 | |
---|
69 | |
---|
70 | Flex |
---|
71 | ---- |
---|
72 | |
---|
73 | Just copied FlexLexer.h from a Debian installation. |
---|
74 | |
---|
75 | Libcaca |
---|
76 | ------- |
---|
77 | |
---|
78 | Ran build-win32 and build-win64 on a Debian installation, copied the |
---|
79 | resulting .lib files and some headers. |
---|
80 | |
---|
81 | |
---|
82 | Bullet |
---|
83 | ------ |
---|
84 | |
---|
85 | Download page: http://code.google.com/p/bullet/downloads/list |
---|
86 | |
---|
87 | Win32: |
---|
88 | - build normally using Visual Studio 2010 |
---|
89 | |
---|
90 | Win64: |
---|
91 | - build normally using Visual Studio 2010 |
---|
92 | - remove _x64 suffix from object names |
---|
93 | |
---|
94 | Xbox 360: |
---|
95 | - add Xbox 360 platform to the vs2010 solution, using eg. Win32 as a preset |
---|
96 | - save solution and exit vs2010 |
---|
97 | - sed -i 's@<ItemDefinitionGroup.*Xbox 360.*@&<ClCompile><PreprocessorDefinitions>_XBOX;%(PreprocessorDefinitions)</PreprocessorDefinitions></ClCompile>@' msvc/vs2010/*.vcxproj |
---|
98 | - sed -i 's@.*MachineX86.*@@' msvc/vs2010/*vcxproj |
---|
99 | - reload solution |
---|
100 | - build only required projects |
---|
101 | |
---|
102 | PS3: |
---|
103 | - sh autogen.sh |
---|
104 | - ./configure CXX=ppu-lv2-g++ CC=ppu-lv2-gcc ac_cv_exeext=.elf --host=powerpc |
---|
105 | - make -j4 |
---|
106 | - make install DESTDIR=$PWD/tmp |
---|
107 | |
---|