1 | ############################## |
---|
2 | # Building external software # |
---|
3 | ############################## |
---|
4 | |
---|
5 | |
---|
6 | Glew |
---|
7 | ---- |
---|
8 | |
---|
9 | Download page: http://sourceforge.net/projects/glew/files/glew |
---|
10 | |
---|
11 | - take the pre-compiled glew32s.lib ("s" is for "static") versions for |
---|
12 | both win32 and win64. |
---|
13 | |
---|
14 | - copy include/GL/ in the external directory. |
---|
15 | |
---|
16 | |
---|
17 | SDL |
---|
18 | --- |
---|
19 | |
---|
20 | Download page: http://www.libsdl.org/release/ |
---|
21 | |
---|
22 | - take the pre-compiled binaries for Visual C++ |
---|
23 | - take the pre-compiled libSDLmain.a for 32-bit mingw32 |
---|
24 | |
---|
25 | - download the source and build libSDLmain.a for 64-bit mingw32 |
---|
26 | (note: CPPFLAGS=-D_CRTIMP= used to be needed) |
---|
27 | |
---|
28 | ./configure --host=x86_64-w64-mingw32 |
---|
29 | make clean all |
---|
30 | |
---|
31 | - copy build/.libs/libSDLmain.a |
---|
32 | - copy build/.libs/libSDL.dll.a |
---|
33 | |
---|
34 | |
---|
35 | SDL_Image |
---|
36 | --------- |
---|
37 | |
---|
38 | Download page: http://www.libsdl.org/projects/SDL_image/release/ |
---|
39 | |
---|
40 | Hard to do, requires libjpeg, libtiff, libpng, zlib... |
---|
41 | |
---|
42 | |
---|
43 | SDL_Mixer |
---|
44 | --------- |
---|
45 | |
---|
46 | Download page: http://www.libsdl.org/projects/SDL_mixer/release/ |
---|
47 | |
---|
48 | Hard to do, requires libogg, libvorbis, mikmod, libsmpeg... |
---|
49 | |
---|
50 | |
---|
51 | Flex |
---|
52 | ---- |
---|
53 | |
---|
54 | Copied FlexLexer.h and the executable from a MinGW installation. |
---|
55 | |
---|
56 | |
---|
57 | Bison |
---|
58 | ----- |
---|
59 | |
---|
60 | Copied /usr/share/bison and the executable from a MinGW installation. |
---|
61 | |
---|
62 | |
---|
63 | Libcaca |
---|
64 | ------- |
---|
65 | |
---|
66 | Ran build-win32 and build-win64 on a Debian installation, copied the |
---|
67 | resulting .lib files and some headers. |
---|
68 | |
---|
69 | |
---|
70 | Bullet |
---|
71 | ------ |
---|
72 | |
---|
73 | Download page: http://code.google.com/p/bullet/downloads/list |
---|
74 | |
---|
75 | Win32: |
---|
76 | - build normally using Visual Studio 2010 |
---|
77 | |
---|
78 | Win64: |
---|
79 | - build normally using Visual Studio 2010 |
---|
80 | - remove _x64 suffix from object names |
---|
81 | |
---|
82 | Xbox 360: |
---|
83 | - add Xbox 360 platform to the vs2010 solution, using eg. Win32 as a preset |
---|
84 | - save solution and exit vs2010 |
---|
85 | - sed -i 's@<ItemDefinitionGroup.*Xbox 360.*@&<ClCompile><PreprocessorDefinitions>_XBOX;%(PreprocessorDefinitions)</PreprocessorDefinitions></ClCompile>@' msvc/vs2010/*.vcxproj |
---|
86 | - sed -i 's@.*MachineX86.*@@' msvc/vs2010/*vcxproj |
---|
87 | - reload solution |
---|
88 | - build only required projects |
---|
89 | |
---|
90 | PS3: |
---|
91 | - sh autogen.sh |
---|
92 | - ./configure CXX=ppu-lv2-g++ CC=ppu-lv2-gcc ac_cv_exeext=.elf --host=powerpc |
---|
93 | - make -j4 |
---|
94 | - make install DESTDIR=$PWD/tmp |
---|
95 | |
---|