From a2bb4e27cfc17b7ff59906b59282fbe8a88e13bc Mon Sep 17 00:00:00 2001 From: koldo Date: Thu, 16 Jun 2011 19:35:33 +0000 Subject: [PATCH] .SDL: Updated doc git-svn-id: svn://ultimatepp.org/upp/trunk@3541 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- bazaar/SDL/srcdoc.tpp/SDLInstall$en-us.tpp | 49 ++++++++++++++++++++-- 1 file changed, 46 insertions(+), 3 deletions(-) diff --git a/bazaar/SDL/srcdoc.tpp/SDLInstall$en-us.tpp b/bazaar/SDL/srcdoc.tpp/SDLInstall$en-us.tpp index d7c27ce53..826142034 100644 --- a/bazaar/SDL/srcdoc.tpp/SDLInstall$en-us.tpp +++ b/bazaar/SDL/srcdoc.tpp/SDLInstall$en-us.tpp @@ -32,8 +32,51 @@ folder structure like this:]&] :: [s0; [2 drive:`\upp`\plugin`_LGPL`\SDL`\lib]]}}&] [s0;2 &] [s0;2 &] -[s0; [*2 Medium]&] +[s0; [*2 Medium/Hard]&] +[s0;2 &] +[s0; [2 Download binaries/prebuilt packages from ][^http`:`/`/www`.libsdl`.org`/download`-1`.2`.php^2 h +ere][2 .]&] +[s0;2 &] +[s0;i150;O0; [2 http://www.libsdl.org/release/SDL`-devel`-1.2.14`-VC8.zip]&] +[s0;i150;O0; [2 http://www.libsdl.org/release/SDL`-devel`-1.2.14`-mingw32.tar.gz]&] +[s0;2 &] +[s0; [2 unzip the stuff into 2 separate locations, e.g]&] +[s0;2 &] +[s0; [2 C:`\SDL`-devel`-1.2.14`-VC8`\SDL`-1.2.14]&] +[s0; [2 C:`\SDL`-devel`-1.2.14`-mingw32`\SDL`-1.2.14]&] +[s0;2 &] +[s0; [2 the build methods need to access those respective folders]&] +[s0;2 &] +[s0; [2 MSC build method, add to]&] +[s0;2 &] +[s0; [2 PATH: C:`\SDL`-devel`-1.2.14`-VC8`\SDL`-1.2.14`\lib]&] +[s0; [2 INCLUDE: C:`\SDL`-devel`-1.2.14`-VC8`\SDL`-1.2.14`\include]&] +[s0; [2 LIB: C:`\SDL`-devel`-1.2.14`-VC8`\SDL`-1.2.14`\lib]&] +[s0;2 &] +[s0; [2 MINGW/TDMGCC build method, add to]&] +[s0;2 &] +[s0; [2 PATH: C:`\SDL`-devel`-1.2.14`-mingw32`\SDL`-1.2.14`\lib]&] +[s0; [2 -|-|C:`\SDL`-devel`-1.2.14`-mingw32`\SDL`-1.2.14`\bin]&] +[s0; [2 INCLUDE: C:`\SDL`-devel`-1.2.14`-mingw32`\SDL`-1.2.14`\include]&] +[s0; [2 LIB: C:`\SDL`-devel`-1.2.14`-mingw32`\SDL`-1.2.14`\lib]&] +[s0; [2 -|-|C:`\SDL`-devel`-1.2.14`-mingw32`\SDL`-1.2.14`\bin]&] +[s0;2 &] +[s0; [2 the MSC libraries only come in shared linkage flavor, while +the mingw flavor can be linked both shared and staticly.]&] +[s0; [2 the mingw SDL.dll.a is needed for static linkage and has got +that weired name. who knows why. the SDL.dll comes in bin folder, +thats why double folder specification is needed fir MINGW build +method]&] +[s0;2 &] +[s0; [2 the WinMain`@16 compile problem for mingw (google for it) makes +the change of lib link order obligatory, thats why mingw32 is +specified explicitly last. this makes the ]&] +[s0; [2 WINAPI WinMain(...) `{ return main(); `}]&] +[s0; [2 hack obsolete and enables the native usage of SDL means to +handle entry point.]&] +[s0; [2 SDL redefines your own main to be SDL`_main (see SDL.h), and +provides own main. ]&] +[s0; [2 the signature is critical.it must be]&] +[s0; [2 int main(int argc, char`* argv`[`]);]&] [s0;2 &] -[s0; [2 Download binaries from ][^http`:`/`/www`.libsdl`.org`/download`-1`.2`.php^2 here][2 . -]&] [s0;2 ] \ No newline at end of file