ok, here is my unofficial quick start guide. Thanks to everyone who posted to this thread and to Emerich who did some hand holding.
Anyone is welcome to make corrections additions. it's so complicated that it's hard to remember every step that malfunctioned, but I did restart the process to come up with this guide [it worked with a droid razr, so I count vouch for other devices, but since I got the phone for free the gpu must not be the best out there]:
********************************************************
Hebdemnobad's Android Quick Start Guide
In under two hours, if you get everything right.
Which if you are like me, will turn into two weeks.
An unscientific quick start guide to building, compiling, and deploying the ogre Sample Browser on an Android Device, using Windows 7,
Ogre1.9rc source code, the Android Ogre SDK, Cmake Version 2.8 , MinGW version 2.7, and visual studio express 2010
Although I have coded varioss scripts (javascript, vbscript, actionscript, atmoscript, blinkscript, and scol) for around 14years in art projects (on the web and for installation art), I am not a trained programmer. I am just shy of being completely ignorant of what a 'make' file is.
Prerequisites:
You know what environment variables on Windows 7 are and you now how to add and edit them.
You know how to change directories with a visual Studio Command Prompt.
You know how to download and extract archive files
ANY directory you create and name should have NO spaces in it!
1. Download 'OgreSDK_Android_v1-9-0RC1.7z' from
http://sourceforge.net/projects/ogre/fi ... z/download and extract wherever you want.
We won't be using the whole thing, just one of the subfolders in the archive. I myself do not know how to use the Ogre Android SDK to do anything, but I know what to do in order to get that samplebrowser onto you android.
2. Create a directory called Clean_Ogre_1_9, at C:\Clean_Ogre_1_9. You may have to copy the contents of this folder more than once if you mess somethign up. It will save downloading time.
3. Create a directory called Ogre_1_9, at C:\Ogre_1_9.
4. Download tortoise hg, the 2.8.2 64 bit for windows version, from
http://tortoisehg.bitbucket.org/download/. This is a program that allows you to download loads and loads of files from a site that contains source code files. With my limited understanding, it's like ftp'ing a bunch of files and folders using an ftp client, except you are linking to a site that contains a source code repository (lots of folders and files in them) of source code.
5. Download the Ogre 1.9 source code. It is currently posted to
http://bitbucket.org/sinbad/ogre/. How do you download the source code in this instance? Go to the next step.
6. Open up a command prompt and change directories to C:\Clean_Ogre_1_9. Then execute the following command:
hg clone
http://bitbucket.org/sinbad/ogre/ -u v1-9
This command will invoke the hg tortoise program which will download all ofthe Ogre 1.9rc source files to C:\Clean_Ogre_1_9\ogre. It will take a while, maybe 20-40 minutes with depending on your internet connection. You'll see the download progress on the command prompt window. Do something productive and don't sit at your computer. It took 30-60 minutes for me.
7.Copy the contents of C:\Clean_Ogre_1_9\ogre to C:\Ogre_1_9\ogre you will be building the sample browser in the C:\Ogre_1_9 directory\ogre, with C:\Clean_Ogre_1_9 in case you mess things up.
8. Here is a tricky step.....open up the extracted Ogre Android SDK folder you extracted the .7z file to. Find the Dependencies folder in the extracted Ogre Android SDK folder and paste it to C:\Ogre_1_9 directory\ogre. Rename it to "AndroidDependencies".
9. Download and install Cmake 2.8.11.2 to C:\Cmake_2_8
10.Download and install MinGW 4.7.2 You have to go beyond the next>next>finish method and select an option to download the very latest version. Some more info may be here:
http://www.ogre3d.org/forums/viewtopic.php?f=2&t=74588
11. Download and install Visual Studio Express 2010 and install it wherever you want. You will need this application in order to run one of the steps below.
12.Download and extract the Android SDK to:
C:\androidsdk_and_eclipse
WARNING: the Android SDK folder extracts to TWO sub-folders, eclipse and SDK. you want your path variable pointed to C:\androidsdk_and_eclipse\SDK, NOT C:\androidsdk_and_eclipse. Windows will not locate the proper android sdk files if you point our path variable addition just to C:\androidsdk_and_eclipse. This cost me quite a bit of time!!!!
Start up SDK Manager.exe and download and install API 10 (Android 2.3.3)
13. Download and install the Java JDK 1.7. 13 to C:\Program Files\Java. If you don't have the JDK installed, the android eclipse gui won't work and perhaps other bad things will happen. And Android is programmed in java, so it won't hurt your development machine to have it on hand.
14. Download the ant tool. This is a program that lets you build android apps from the windows command line. Why it is on a website named 'tweedo' and not on the android developer's site, I don't know.
http://tweedo.com/mirror/apache/ant/bin ... -1.9.1-bin and extract it to: C:\android\ant.
15. Download and install the android ndk. This application compiles c files into a format that android will understand. Install it to C:\android\ndk
14.Here is what I added to the PATH environment variable due to installing all of these applications. WARNING: Sometimes you need to add the path to an application's 'bin' folder or you will grow a bit older figuring this all out than you would otherwise spend doing other things:
C:\mingw\bin; C:\androidsdk_and_eclipse\SDK;C:\androidsdk_and_eclipse\SDK\tools;C:\androidsdk_and_eclipse\SDK\platform-tools;C:\android\ndk;C:\android\ant\bin;C:\Cmake_2_8\bin;C:\Program Files\Java\jdk1.7.0_25;C:\Program Files\Java\jdk1.7.0_25\bin
15. Here are other user and system variables that I set up. They may not help but they don't hurt.
User Variables for an account with Administrator privileges:
Variable name: ANDROID_NDK
Variable value: C:\android\ndk
Variable name: ANDROID_SDK
Variable value: C:\androidsdk_and_eclipse\SDK
Variable name: JAVA_HOME
Variable value: C:\Program Files\Java\jdk1.7.0_25
Variable name: OGRE_HOME
Variable value: C:\Ogre_1_9\ogre
System Variables:
Variable name: ANDROID_NDK
Variable value: C:\android\ndk
Variable name: ANDROID_SDK
Variable value: C:\androidsdk_and_eclipse\SDK
Variable name: CLASSPATH
Variable value: .;C:\Program Files (x86)\Java\jre7\lib\ext\QTJava.zip
Variable name: JAVA_HOME
Variable value: C:\Program Files\Java\jdk1.7.0_25
Variable name: OGRE_HOME
Variable value: C:\Ogre_1_9\ogre
Variable name: PATH
Variable value: C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\QuickTime\QTSystem\;C:\mingw\bin; C:\androidsdk_and_eclipse\SDK;C:\androidsdk_and_eclipse\SDK\tools;C:\androidsdk_and_eclipse\SDK\platform-tools;C:\android\ndk;C:\android\ant\bin;C:\Cmake_2_8\bin;C:\Program Files\Java\jdk1.7.0_25;C:\Program Files\Java\jdk1.7.0_25\bin
[obviously if you don't have certain apps installed, your PATH variable will look different, but be sure you have set all the path values for the software you installed in this guide are part of the PATH variable.
17. Create the folder android_build in C:\Ogre_1_9\ogre.
18. Ok, now we start to do things. Start up the visual studio express 2010 command prompt (vs command prompt) and cd to: C:\Ogre_1_9\ogre\android_build
Enter the following at the vs command prompt at C:\Ogre_1_9\ogre\android_build
cmake -G"NMake Makefiles" -DCMAKE_TOOLCHAIN_FILE=..\cmake\toolchain\android.toolchain.cmake -DOGRE_DEPENDENCIES_DIR=..\AndroidDependencies -DANDROID_ABI=armeabi -DANDROID_NATIVE_API_LEVEL=9 ..
After a couple of minutes (on a core i3 laptop), visual studio should have done its work.
19. now, at the vs command prompt at C:\Ogre_1_9\ogre\android_build, enter:
nmake
Go out for dinner or milk your cows or work out or play with kids or something else. If. you have a core i3, visual studio express 2010 should take about an hour to do its work. I have found that nmake on one occasion threw fatal errors and stopped executing. I just typed in nmake again and namke began working where it left off. This command is enough to get you to the next step in getting that samplebrowser onto your android.
20.at the vs command prompt at C:\Ogre_1_9\ogre\android_build\SampleBrowserNDK, execute:
ndk-build all
21. connect your android gadget via its usb cable to your computer. at the vs command prompt at C:\Ogre_1_9\ogre\android_build\SampleBrowserNDK, execute: ant debug install
Wait a couple of minutes and the sample browser will be installed to your phone/tablet!
Have I missed a step? Let me know! Are there unnecessary steps? Probably, but I don't want to uninstall any apps on my computer and cause this rube goldberg setup to self destruct.
-h