[1995] | 1 | ############################## |
---|
| 2 | # Building external software # |
---|
| 3 | ############################## |
---|
[944] | 4 | |
---|
[947] | 5 | |
---|
[944] | 6 | Glew |
---|
| 7 | ---- |
---|
| 8 | |
---|
[947] | 9 | Download page: http://sourceforge.net/projects/glew/files/glew |
---|
[944] | 10 | |
---|
[1995] | 11 | - take the pre-compiled glew32s.lib ("s" is for "static") versions for |
---|
| 12 | both win32 and win64. |
---|
[944] | 13 | |
---|
[1995] | 14 | - copy include/GL/ in the external directory. |
---|
[944] | 15 | |
---|
| 16 | |
---|
[947] | 17 | SDL |
---|
| 18 | --- |
---|
| 19 | |
---|
| 20 | Download page: http://www.libsdl.org/release/ |
---|
| 21 | |
---|
[1653] | 22 | - take the pre-compiled binaries for Visual C++ |
---|
| 23 | - take the pre-compiled libSDLmain.a for 32-bit mingw32 |
---|
[947] | 24 | |
---|
[1653] | 25 | - download the source and build libSDLmain.a for 64-bit mingw32 |
---|
| 26 | (note: CPPFLAGS=-D_CRTIMP= used to be needed) |
---|
[947] | 27 | |
---|
[1653] | 28 | ./configure --host=x86_64-w64-mingw32 |
---|
[1654] | 29 | make clean all |
---|
[1653] | 30 | |
---|
| 31 | - copy build/.libs/libSDLmain.a |
---|
[1654] | 32 | - copy build/.libs/libSDL.dll.a |
---|
[1653] | 33 | |
---|
| 34 | |
---|
[947] | 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 | |
---|
[1419] | 50 | |
---|
| 51 | Flex |
---|
| 52 | ---- |
---|
| 53 | |
---|
[1933] | 54 | Copied FlexLexer.h and the executable from a MinGW installation. |
---|
[1419] | 55 | |
---|
[1933] | 56 | |
---|
| 57 | Bison |
---|
| 58 | ----- |
---|
| 59 | |
---|
| 60 | Copied /usr/share/bison and the executable from a MinGW installation. |
---|
| 61 | |
---|
| 62 | |
---|
[1464] | 63 | Libcaca |
---|
| 64 | ------- |
---|
| 65 | |
---|
[1902] | 66 | Ran build-win32 and build-win64 on a Debian installation, copied the |
---|
[1464] | 67 | resulting .lib files and some headers. |
---|
| 68 | |
---|
[1566] | 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 | |
---|