source: trunk/contrib/NOTES @ 1309

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

win32: fix a bug in the GLEW build system that caused build failures
with Visual Studio 2010 when the active configuration involved creating
an export file. Also get rid of glew32mx.lib, it's the multiple context
version that we do not use yet.

File size: 1.5 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
41Win32:
42- just take the pre-compiled binaries from upstream
43
44Win64:
45- ./configure --host=x86_64-w64-mingw32
46- deactivate NONAMELESSUNION in src/video/windx5/directx.h
47- make -j6
48- copy build/libSDLmain.a as SDLmain.lib
49- copy build/.libs/libSDL.a as SDL.lib
50- copy build/.libs/SDL.dll as SDL.dll
51
52
53SDL_Image
54---------
55
56Download page: http://www.libsdl.org/projects/SDL_image/release/
57
58Hard to do, requires libjpeg, libtiff, libpng, zlib...
59
60
61SDL_Mixer
62---------
63
64Download page: http://www.libsdl.org/projects/SDL_mixer/release/
65
66Hard to do, requires libogg, libvorbis, mikmod, libsmpeg...
67
Note: See TracBrowser for help on using the repository browser.