Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Beginner

#1
Sorry guys for the late answer.

Many thanks to those who tried to help me. By now I didn't find a solution to this problem. I installed several JDKs (new and old versions) and tried everything else you guys told me and wrote me by PM.

I don't want to spent any more time in searching for a solution. GLB is complete worthless to me as long as I can't compile for android. This is waste of time!

Sorry. I'm out.
#2
the demo_release.apk works fine on my S3. Reminds me to a rollercoaster.  :)
#3
Many thanks for your patience and your kind help. Have some nice holidays.
#4
I changed JAVA_HOME again.

The good news is that now I get an APK file. But there are still a lot of errors and warnings (see below).

The bad news is that the files doesn't work properly. On Samsung Galaxy S3 the app only shows a white screen.

I wrote a little "hello world" code and this works fine. But loadfont and setfont commands seems to be ignored.

It seems that there are problems on 2d commands.

Quote
_______________________________________
*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.10.060 SN:682fc331 - 3D, NET
Wordcount:9 commands
compile+link:

running glb_build.bat
Using ANDROID_TARGET="android-18"
You can use "C:\Projekte\glbasic\GLBasic\test\distribute\Android\glb_android_build.bat" to change the API level and SDK path.
%ANDROIDSDK% not set. Using GLBasic's default target-14, Android 4.0



.
BUILD STAGE 1: Create Icons for various size
icon.png was found in the source dir, but not icon128.png.
icon.png should been 512x512px in size and icon128.png is in 128x128px.
Im will do use icon.png for resizing for tablet support.
ouya_icon.png is missing in source dir (if you use OUYA)
The icon size for OUYA is 732x412 px size.
BUILD STAGE 2: Start compiler (android.bat)
Q:\Compiler\platform\android\bin\..\android-sdk-windows
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Updated project.properties
Updated local.properties
Added file C:\Projekte\glbasic\GLBasic\test\distribute\Android\build.xml
.
BUILD STAGE 3: Build a debug build
   [subant] No sub-builds to iterate on
    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] C:\Projekte\glbasic\GLBasic\test\distribute\Android\src\com\glbasic\test\SDLActivity.java:849: warning: [deprecation] getBlockSize() in StatFs has been deprecated
    [javac]          {   int blockSize = stat.getBlockSize();
    [javac]                                  ^
    [javac] C:\Projekte\glbasic\GLBasic\test\distribute\Android\src\com\glbasic\test\SDLActivity.java:850: warning: [deprecation] getAvailableBlocks() in StatFs has been deprecated
    [javac]             int availableBlocks = stat.getAvailableBlocks();
    [javac]                                       ^
    [javac] 5 warnings

BUILD SUCCESSFUL
Total time: 1 minute 40 seconds
.
BUILD STAGE 4: Build a release build
   [subant] No sub-builds to iterate on
    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] Note: C:\Projekte\glbasic\GLBasic\test\distribute\Android\src\com\glbasic\test\SDLActivity.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 3 warnings
[proguard] Note: there were 2069 duplicate class definitions.
[proguard]       You should check if you need to specify additional program jars.
[proguard] Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [iap_plugin-dev-13.0.0.jar:META-INF/MANIFEST.MF])
[proguard] Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [android-support-v4.jar:META-INF/MANIFEST.MF])
[proguard] Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [google-play-services.jar:META-INF/MANIFEST.MF])
[proguard] Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [gson-2.2.2.jar:META-INF/MANIFEST.MF])
[proguard] Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [ouya-sdk.jar:META-INF/MANIFEST.MF])
[proguard] Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [in-app-purchasing-1.0.3.jar:META-INF/MANIFEST.MF])

BUILD SUCCESSFUL
Total time: 1 minute 4 seconds
Picked up _JAVA_OPTIONS: -Xms256m -Xmx512m
.
HOW TO INSTALL? Install by invoke this command:
"Q:\Compiler\platform\android\bin\..\android-sdk-windows\platform-tools\adb.exe" install -r "C:\Projekte\glbasic\GLBasic\test\distribute\Android/bin/glbasic-debug.apk"
.
HOW TO SIGN? Sign it by invoke this command:
"Q:\Compiler\platform\android\bin\glb_code_sign.bat" "C:\Projekte\glbasic\GLBasic\test\distribute\Android"
.
Android=C:\Projekte\glbasic\GLBasic\test\distribute\Android
erfolgreich
_______________________________________
*** Fertig ***
Dauer: 173.7 sek. Zeit: 12:29
Erstellen: 1 erfolgreich.


#5
this is no fun anymore... It seems that I'm the dumbest assumable user!

I took the pc of my girlfriend (i5 with win7) and installed GLB 12.096 on it.
Then I used your InnoSetup to update some files.

Then I installed JDK to "C:\Program Files\java\jdk1.8.0_05" and set environment variable (Umgebungsvariable) of JAVA_HOME to "C:\Program Files\java\jdk1.8.0_05\bin\"

this is the result:
Quote
_______________________________________
*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.10.060 SN:682fc331 - 3D, NET
Wordcount:173 commands
compile+link:

running glb_build.bat
Using ANDROID_TARGET="android-18"
You can use "C:\Projekte\glbasic\minion_on_the_run\distribute\Android\glb_android_build.bat" to change the API level and SDK path.
%ANDROIDSDK% not set. Using GLBasic's default target-14, Android 4.0



.
BUILD STAGE 1: Create Icons for various size
icon.png was found in the source dir, but not icon128.png.
icon.png should been 512x512px in size and icon128.png is in 128x128px.
Im will do use icon.png for resizing for tablet support.
ouya_icon.png is missing in source dir (if you use OUYA)
The icon size for OUYA is 732x412 px size.
BUILD STAGE 2: Start compiler (android.bat)
Q:\Compiler\platform\android\bin\..\android-sdk-windows
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Updated project.properties
Updated local.properties
Added file C:\Projekte\glbasic\minion_on_the_run\distribute\Android\build.xml
.
BUILD STAGE 3: Build a debug build
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre8\lib\tools.jar
   [subant] No sub-builds to iterate on

BUILD FAILED
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:720: The following error occurred while executing this line:
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:734: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jre8"

Total time: 5 seconds
.
BUILD STAGE 4: Build a release build
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre8\lib\tools.jar
   [subant] No sub-builds to iterate on

BUILD FAILED
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:720: The following error occurred while executing this line:
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:734: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jre8"
THIS IS CRAP!!! I SET JAVA_HOME TO C:\Program Files\java\jdk1.8.0_05\bin\

Total time: 5 seconds
Picked up _JAVA_OPTIONS: -Xms256m -Xmx512m
.
HOW TO INSTALL? Install by invoke this command:
"Q:\Compiler\platform\android\bin\..\android-sdk-windows\platform-tools\adb.exe" install -r "C:\Projekte\glbasic\minion_on_the_run\distribute\Android/bin/glbasic-debug.apk"
.
HOW TO SIGN? Sign it by invoke this command:
"Q:\Compiler\platform\android\bin\glb_code_sign.bat" "C:\Projekte\glbasic\minion_on_the_run\distribute\Android"
.
Android=C:\Projekte\glbasic\minion_on_the_run\distribute\Android
erfolgreich
_______________________________________
*** Fertig ***
Dauer: 22.2 sek. Zeit: 11:05
Erstellen: 1 erfolgreich.


Yesterday I took also a notebook with Win7 and installed GLB and JAVA but also on the notebook I didn't get the compiler to work!!!

This sucks. :'(



Why is it that the compiler says JAVA_HOME is "C:\Program Files\Java\jre8"?
I set JAVA_HOME to "C:\Program Files\java\jdk1.8.0_05\bin\". Is there a file in GLB that sets another JAVA_HOME?

Am I the only person who can't compile for android?
@all other GLB 12 users: did you try to complie for android with success?

#6
ok.

1st try:
I renamed the old android folder to "BAK_android". Then I put a copy of the new Android folder into place.
When I try to compile now I get a message "cc1plus.exe funktioniert nicht mehr. Es wird nach einer Lösung des Problems gesucht." (cc1plus.exe doesn't work anymore. Searching for a solution of the problem.")

2nd try:
I removed the new android folder and put the old android folder back in place. Then I put a copy of the new android folder into the old android folder and told windows to replace the old files by the new.
In the end the same here -> cc1plus.exe doesn't work anymore. 

I'm completely at a loss.  I just want to compile for android... why is it so hard???  :'(


#7
At first I want to thank you for your efforts. This forum is great. HAPPY EASTER!!!  :booze:

Sadly the problem isn't solved yet.  :(

I used your link posted above and downloaded SDK API-18.
Then I took only the "android-sdk-windows" folder and made a copy to "C:\Program Files\GLBasic_v12\Compiler\platform\android".

The old "android-sdk-windows" in the GLB Folder I renamed to "BAK_..." before.

I deleted the distribute folder in my project and also all icons except "icon.png".

Then I tried again to compile (please see my notes in red below):

Quote

_______________________________________
*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.10.060 SN:30cee243 - 3D, NET
Wordcount:173 commands
compile+link:
running glb_build.bat
Using ANDROID_TARGET="android-8"
You can use "C:\Projekte\GLBasic\minion_on_the_run\distribute\Android\glb_android_build.bat" to change the API level and SDK path. (this file doesn't exist in the mentioned folder)
%ANDROIDSDK% not set. (what does that mean?) Using GLBasic's default target-8, Android 2.2



BUILD STAGE 1: Compile and pack RELEASE
Error: Target id 'android-8' is not valid. Use 'android.bat list targets' to get the target ids. (what is the path to android.bat?)
Build failed
Picked up _JAVA_OPTIONS: -Xms256m -Xmx512m
.
BUILD STAGE 2: Build DEBUG and install on device
Buildfile: build.xml does not exist!
Build failed
Picked up _JAVA_OPTIONS: -Xms256m -Xmx512m
finished Android build-script.
Android=C:\Projekte\GLBasic\minion_on_the_run\distribute\Android
erfolgreich
_______________________________________
*** Fertig ***
Dauer: 8.5 sek. Zeit: 08:58
Erstellen: 1 erfolgreich.

#8
so what do I exactly have to do to solve this problem?
#9
Yes, Java jdk1.7.0_09 was installed and JAVA_HOME was set.

I just updated to jre7 and changed the JAVA_HOME setting. But no result. Still no APK.

Some month ago there was no problem in compiling my apps for android. All worked very well. But then I took a GLB. Some days ago I tried again but it doesn't work anymore. I already removed the android sdk and installed a new one. Tried differend versions.

I guess the problem is somewhere on the android-sdk.

Today I installed GLB 12.096 completely new.

This is the present error I get:
Quote
_______________________________________
*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.10.060 SN:30cee243 - 3D, NET
Wordcount:173 commands
compile+link:
running glb_build.bat
Using ANDROID_TARGET="android-8"
You can use "C:\Projekte\GLBasic\minion_on_the_run\distribute\Android\glb_android_build.bat" to change the API level and SDK path.
%ANDROIDSDK% not set. Using GLBasic's default target-8, Android 2.2



BUILD STAGE 1: Compile and pack RELEASE
Updated project.properties
Updated local.properties
Updated file C:\Projekte\GLBasic\minion_on_the_run\distribute\Android\build.xml
Updated file C:\Projekte\GLBasic\minion_on_the_run\distribute\Android\proguard.cfg

BUILD FAILED
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:539: The following error occurred while executing this line:
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:568: null returned: 1

Total time: 1 second
Picked up _JAVA_OPTIONS: -Xms256m -Xmx512m
.
BUILD STAGE 2: Build DEBUG and install on device
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre7\lib\tools.jar
     [echo] Gathering info for glbasic...
     [echo] Creating output directories if needed...
     [echo] ----------
     [echo] Handling aidl files...
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...

BUILD FAILED
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:539: The following error occurred while executing this line:
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:568: null returned: 1

Total time: 1 second
Picked up _JAVA_OPTIONS: -Xms256m -Xmx512m
finished Android build-script.
Android=C:\Projekte\GLBasic\minion_on_the_run\distribute\Android
erfolgreich
_______________________________________
*** Fertig ***
Dauer: 6.5 sek. Zeit: 11:42
Erstellen: 1 erfolgreich.
#10
no. There is no apk in the "\distribute\android\bin" folder
#11
Hey guys,

yet another android compiler problem thread:

I just installed GLB 12.096. This is what the compiler says when trying to compile for android:

Quote
_______________________________________
*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.10.060 SN:30cee243 - 3D, NET
Wordcount:173 commands
compile+link:
running glb_build.bat
Using ANDROID_TARGET="android-8"
You can use "C:\Projekte\GLBasic\minion_on_the_run\distribute\Android\glb_android_build.bat" to change the API level and SDK path.
%ANDROIDSDK% not set. Using GLBasic's default target-8, Android 2.2



BUILD STAGE 1: Compile and pack RELEASE
Updated and renamed default.properties to project.properties
Updated local.properties
Added file C:\Projekte\GLBasic\minion_on_the_run\distribute\Android\build.xml
Updated file C:\Projekte\GLBasic\minion_on_the_run\distribute\Android\proguard.cfg

BUILD FAILED
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:539: The following error occurred while executing this line:
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:568: null returned: 1

Total time: 1 second
Picked up _JAVA_OPTIONS: -Xms256m -Xmx512m
.
BUILD STAGE 2: Build DEBUG and install on device
     [echo] Gathering info for glbasic...
     [echo] Creating output directories if needed...
     [echo] ----------
     [echo] Handling aidl files...
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...

BUILD FAILED
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:539: The following error occurred while executing this line:
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:568: null returned: 1

Total time: 1 second
Picked up _JAVA_OPTIONS: -Xms256m -Xmx512m
finished Android build-script.
Android=C:\Projekte\GLBasic\minion_on_the_run\distribute\Android
erfolgreich
_______________________________________
*** Fertig ***
Dauer: 8.4 sek. Zeit: 08:39
Erstellen: 1 erfolgreich.

Any ideas?

#12
Off Topic / Re: ON again!!
2014-Apr-18
Quote from: Marmor on 2014-Apr-18
whats the problem with this xxxxx Server ?
Really i cant understand , because i know serveral other forum without this " hit win the face ".
we  need to pay for an better updateservice , i think yes because some bucks a year a better as
this fire in da house scenario.

Gernot please move it away from this horrible provider, its not the first time so i cant understand.
yeah backups are for pussys......

kanonet are right
I agree 100%
#13
thank you, I will check if this meets my requirements.
#14
I know this request is very old, but i think the problem is still present, right? I agree to the request that something like keypress() and keyrelease() would be very helpful. Or at least something like keyhit() and keydown()

#15
Quote from: BdR on 2012-Dec-03In short: to fix this and get a good install, go to settings, apps, select Snake Slider Lite and press "delete data" button. All local data (the graphics files) will be deleted and at next startup the app will notice that the folder does not exist and will start copying again. If a message "app not responding" pops up, do not close the app and keep pressing "wait" until the app starts. If that doesn't work then delete the app, reinstall and do not cancel the app at first time startup.

I think the Medion Tablet is relatively slow device, so there the problem might be more noticable. On something like a Galaxy S3 you might not notice it (I haven't tested it).

Sorry, but this doesn't solve the problem because:
1. I always "wait" until app starts
2. 400 EUR Medion is faster than my 79 EUR Trekstore Surftab breeze and has more RAM (on 79 EUR surftab your game runns very well)
3. same problem on nexus 7 of a friend of mine

Did you work with createscreen command?


BTW: I like your game very much. I'm a little jealous that I never have such good gameplay ideas myself.