Difficulty compiling for android (another thread)
Monkey Targets Forums/Android/Difficulty compiling for android (another thread)
| ||
First - maybe we need a dedicated how to build for android stick thread where all these issues can be put into a single thread.. Okay, I've downloaded MonkeyPro42, apache-ant, android-sdk, java sdk. The config.winnt.txt file looks like the following: ANT_PATH="C:\apache-ant-1.8.2\bin" (please note that for ANT_PATH I've tried setting environment variables, including the bin folder, not including the bin folder, including and not including the trailing slash all to no avail.) JDK_PATH="C:\Program Files\Java\jdk1.6.0_21" ANDROID_PATH="C:\Program Files\Android\android-sdk" The emulator is running as well. The error message I get when building is as follows: Translating basicgame "C:/Documents and Settings/matthew.lloyd/My Documents/MonkeyPro42/MonkeyPro42/bin/trans_winnt" -target=android "C:/Documents and Settings/matthew.lloyd/My Documents/MonkeyPro42/MonkeyPro42/bananas/hitoro/basicgame/basicgame.monkey" TRANS monkey compiler V1.15 Parsing... Semanting... Translating... Building... * daemon not running. starting it now on port 5037 * * daemon started successfully * 'ant' is not recognized as an internal or external command, operable program or batch file. Android build failed. Process Complete ... I have no idea what that error message means though. Assistance would be greatly appreciated. Thanks, Matt |
| ||
One issue is that you've got spaces in the project path - move your project to a folder with no spaces (eg c:\monkeycode\project\basicgame\basicgame.monkey). And try the Ant path to be: ANT_PATH="C:\apache-ant-1.8.2" |
| ||
Thanks therevills....still got a problem...slightly different now.. Translating basicgame C:/MonkeyPro42/MonkeyPro42/bin/trans_winnt -target=android C:/MonkeyPro42/MonkeyPro42/bananas/hitoro/basicgame/basicgame.monkey TRANS monkey compiler V1.15 Parsing... Semanting... Translating... Building... * daemon not running. starting it now on port 5037 * * daemon started successfully * ANT_HOME is set incorrectly or ant could not be located. Please set ANT_HOME. ANT_HOME is set incorrectly or ant could not be located. Please set ANT_HOME. Process Complete the ANT_HOME env variable is set and our path is as follows: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%ANT_HOME%\bin;%JAVA_HOME%\bin; (I've tried the path with and without the bin folder) |
| ||
Ok - thanks I've sorted it out now...my own fault... When unzipping apache-ant-1.8.2 it did not unzip correctly and so I was missing files. I found this by looking through the batch file in /lib/ant - the file that was missing was ant.jar. I re-unzipped the apache ant file and it works fine now. Yay.... |