From: badlogicgames Date: Fri, 17 Dec 2010 12:32:44 +0000 (+0000) Subject: [added] README for jni directory X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=3e28ba74667fb97414ffad53b04e85e3aa4f96cb;p=mikumikustudio%2Flibgdx-mikumikustudio.git [added] README for jni directory --- diff --git a/gdx/jni/README b/gdx/jni/README new file mode 100644 index 000000000..34e5a9227 --- /dev/null +++ b/gdx/jni/README @@ -0,0 +1,26 @@ +This folder contains 4 ant files responsible for building the gdx shared libs for win32, win64, lin32 and lin64. They are +intended to be used with ant >= 1.8.1 as well as the common multilib gcc toolchain for linux (x86 and x86_64 targets) and +the mingw w64 linux port (http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Automated%20Builds/mingw-w64-bin_i686-linux_20101216.tar.bz2/download). +We currently don't support building on Windows directly. If you want to do this you have to change the build-winxxx.xml files. +just replace the prefix with whatever your local Windows MinGW install uses (e.g. the empty string...). Otherwise go this route: + +1) Install a nice new and shiny Ubuntu 10.10 (just as an example) 64-bit +2) Install the gcc toolchain via apt +3) Install gcc-multilib via apt for gcc and g++ (package gcc-multilib should suffice and install the correct versions) +4) Install gcc-mingw32 (needed for targeting win32) +5) Fetch MinGW w64 targeting win64 from http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Automated%20Builds/mingw-w64-bin_i686-linux_20101216.tar.bz2/download +6) unpack it and put it in an accessible directory, e.g. /opt/mingw-w64, then export PATH=$PATH:/opt/mingw-w64/bin +7) Download the latest ant binaries (>= 1.8.1) and extract them to say /opt/ant, then export PATH=$PATH:/opt/ant/bin +8) invoke ant in the directory gdx/jni +9) ... +10) Profit! + +This will compile the natives for win32 (gdx.dll), win64 (gdx-64.dll), lin32 (libgdx.so) and lin64 (libgdx-64) and put them +in the respective gdx/${platform} directories. It will also pack them into the gdx-natives.jar which is placed in backends/dependencies +and used by all the other projects in the SVN trunk (except the demos). The ant build script in gdx/ will use this jar to package +a distribution. + +Why the separate ant files? Cause i like copy & pasting... I'll write a more generic ant script that can be used by any platform as soon +as time permits. + +MacOSX lovers, i'm afraid you are shit out of luck. Seems like Apple doesn't want people to write software for the super awesome OS. diff --git a/gdx/jni/build-win64.xml b/gdx/jni/build-win64.xml index b516ac775..cbcbe5c85 100644 --- a/gdx/jni/build-win64.xml +++ b/gdx/jni/build-win64.xml @@ -1,14 +1,8 @@ - - +