I have these in my system(I use Windows 7)
Wagic SVN
Java JDK
Android NDK
Android SDK
Apache ANT
Download all these and install Java JDK, then install Android SDK(take note where you install this). then run Android SDK Manager.
this image is just example:
Now select your target platform( I select Android 2.3.3 just like the image above) and install/download the packages.
After the Android SDK Manager installed the platform. Extract Android NDK to your desired folder(I extracted them in c:\android-ndk-r8c)
Now we need to compile the Wagic Svn Source using the NDK. Open command prompt (type cmd in run window, winkey+r) and type this:
Code: Select all
c:\android-ndk-r8c\ndk-build -C "C:\WagicSVN\projects\mtg\Android"
after it finished compiling you will have two folders (armeabi and armeabi-v7a) in C:\WagicSVN\projects\mtg\Android\libs.
now you need to know Android Sdk installation folder(mine is C:\android-sdk\tools)
open command prompt and type:
Code: Select all
C:\android-sdk\tools\android list targets
so in the command prompt we will type a new command:
Code: Select all
C:\android-sdk\tools\android update project -t 1 -p "C:\WagicSVN\projects\mtg\Android"
Finally we can now compile our apk using Apache Ant.
Extract Apache Ant to your desired directory(mine is C:\apache-ant-1.8.4).
Open command prompt and type:
Code: Select all
C:\apache-ant-1.8.4\bin\ant debug -f "C:\WagicSVN\projects\mtg\Android"
If the Build succeed then congratulations.
you can browse the apk (named Wagic-debug.apk) inside C:\WagicSVN\projects\mtg\Android\bin folder.