Android - V10 release candidate

Previous topic - Next topic

trucidare

check the JAVA_HOME path, sound like the path is set to jre and not jdk
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

MrTAToad

#31
Slight problem with the webOS packing too :

palm-package: illegal value for property "id" in C:\Users\Nicholas\Documents\GLBasic\Utilities\Plasma\Plasma.app\appinfo.json
It look like the %YOURCOMPANY_LOWERCASE% and %APPNAME_LOWERCASE% parameters aren't being filled in

Quotecheck the JAVA_HOME path, sound like the path is set to jre and not jdk
This is my set of system variables:

QuoteALLUSERSPROFILE=C:\ProgramData
ANDROID_SWT=C:\Android\android-sdk\tools\lib\x86
APPDATA=C:\Users\Nicholas\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=NICHOLAS-PC
ComSpec=C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\Nicholas
JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_25
LOCALAPPDATA=C:\Users\Nicholas\AppData\Local
LOGONSERVER=\\NICHOLAS-PC
MinGW=C:\MinGW\bin
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
PalmPDK=C:\Program Files (x86)\Palm\PDK
PalmSDK=C:\Program Files (x86)\Palm\SDK
Path=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\MinGW\bin;C:\Program Files (x86)\Java\jdk1.6.0_25
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 23 Stepping 10, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=170a
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\Nicholas\AppData\Local\Temp
TMP=C:\Users\Nicholas\AppData\Local\Temp
USERDOMAIN=Nicholas-PC
USERNAME=Nicholas
USERPROFILE=C:\Users\Nicholas
VBOX_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\
windir=C:\Windows

Dabz

Quote
try to avoid spaces and brackets in you path - line 472 call the dex executable - works for me on windows 7 64 bit with jdk32 bit installed in c:\Programme

Code (glbasic) Select

JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_25


Maybe?

Dabz

MrTAToad

I do have no spaces in the XP Virtual Machine though - and that failed...

I'll be installing it with no spaces on a proper XP machine later on, and we'll see how it goes there.

Dabz

Its been a right nightmare for you hasnt it... chin up though! ;)

Dabz

MrTAToad

#35
I'm wondering whether there is too much being installed for the Android SDK - although it seems as though everything has to be selected before it will let you download it...

Soon know when I try it on the third machine :)

matchy

#36
Some extended feedback; basic tested both in the emulator and Android device:

These work:
- 2d drawsprite/rotosprite/transparency
- 3d with poly colors and textures
- loadsprite/loadfont/loadsound
- alphamode
- playsound
- platform info including battery
- portrait/landscape; no need to set width/height
- getjoy sensor
- compiled and run old game
- compiled only box2d

These are not working properly:
- no device for platforminfo
- print; odd stretching for certain words/length
- drawrect/drawline; no color only white  :S
- poly draw not tested

Albert

It isn't install the APK to my Android device. I doesn't found the APK in my project dir or in the c:\Windows\temp

Quotecompile+link:
Android=D:\Andrtest\SRBSRC\prg\Sanyi\android
success
_______________________________________
*** Finished ***
Elapsed: 42.5 sec. Time: 19:38
Build: 1 succeeded.

Albert

I got that Succes message regardless I plugged or unplugged my Android.

MrTAToad

#39
No luck with a proper XP machine either :

Quote
*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.7.917 SN:bb3ccd2f - 3D, NET
Wordcount:55 commands
compile+link:
BUILDSRIPT

BUILD FAILED
C:\Program Files\GLBasic\Compiler\platform\android\android-sdk-windows\tools\ant\main_rules.xml:472: The following error occurred while executing this line:
C:\Program Files\GLBasic\Compiler\platform\android\android-sdk-windows\tools\ant\main_rules.xml:203: apply returned: 255

Total time: 2 seconds
Android=C:\Documents and Settings\Jacky\My Documents\GLBasic\test\android
success

There must be something else that needs to be installed - or GLBasic can no longer be in a directory with a space...

Installed GLBasic inti C:\GLBasic - no difference
Tried a project directory with no spaces - no difference

QuoteBUILDSRIPT

BUILD FAILED
C:\GLBasic\Compiler\platform\android\android-sdk-windows\tools\ant\main_rules.xml:639: The following error occurred while executing this line:
C:\GLBasic\Compiler\platform\android\android-sdk-windows\tools\ant\main_rules.xml:271: exec returned: 1

Now I'm going to try a previous version of Java, just in case... 6u22 didn't help either...

matchy

As for the packaging, after I compile in glb then I open as an existing java android project and run it from eclipse with the device and emulator.

Quote
_______________________________________
*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.7.917 SN:eb257ddf - 3D, NET
Wordcount:181 commands
compile+link:
BUILDSRIPT
     [echo] Creating output directories if needed...
     [echo] Compiling aidl files into Java classes...
     [echo] Compiling RenderScript files into Java classes and RenderScript bytecode...
     [echo] Generating R.java / Manifest.java from the resources...
    [javac] C:\Program Files (x86)\GLBasic_beta\Compiler\platform\android\android-sdk-windows\tools\ant\main_rules.xml:384: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
     [echo] Converting compiled files and external libraries into C:\GLBDev\Projects\droidtest\android\bin\classes.dex...
     [echo] Packaging resources
     [echo] Running zip align on final apk...
     [echo] Debug Package: C:\GLBDev\Projects\droidtest\android\bin\glbasic-debug.apk
     [echo] Installing C:\GLBDev\Projects\droidtest\android\bin\glbasic-debug.apk onto default emulator or device...

BUILD FAILED
C:\Program Files (x86)\GLBasic_beta\Compiler\platform\android\android-sdk-windows\tools\ant\main_rules.xml:639: The following error occurred while executing this line:
C:\Program Files (x86)\GLBasic_beta\Compiler\platform\android\android-sdk-windows\tools\ant\main_rules.xml:271: exec returned: 1

Total time: 7 seconds
Android=C:\GLBDev\Projects\droidtest\android
success
_______________________________________
*** Finished ***
Elapsed: 12.2 sec. Time: 05:27
Build: 1 succeeded.

MrTAToad

What are your system variables ?

Dabz

#42
Quote
As for the packaging, after I compile in glb then I open as an existing java android project and run it from eclipse with the device and emulator.

Eclipse.... You dont need Eclipse installed!?!

EDIT: Just reading everything

Dabz

Dabz

Okay, for those it doesnt work, can you please subject you OS specs/device...

Dabz

Dabz

You shouldnt need Eclipse... Anyone trying to build their app using it is wrong!

Dabz