Android API-18 SDK for glbasic v5 (06-11-2013)

Previous topic - Next topic

spacefractal

im have allready answered that one. Its due a bug in glbasic, which have not defined android variable. So you must doing that manual. So doing that, Just comment ?IFDEF ANDROID out from the AndroidExtras.gbas and its will compile.

If you wont want to uncomment and comment that line every time you change platform, you can do something like this start in your project:

Code (glbasic) Select

?DEFINE ANDROID
?IFDEF WIN32
?UNDEF ANDROID
?ENDIF
?IFDEF IPHONE
?UNDEF ANDROID
?ENDIF
?IFDEF OSXUNI
?UNDEF ANDROID
?ENDIF


if you uses other platforms, then UNDEF under those too. Its only ANDROID that missing the default IFDEF variable.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Ian Price

I came. I saw. I played.

quangdx

You're one badass mutha lovin spacefractal.
thanks.
Asobi tech - the science of play.
Spare time indiegame developer.

spicypixel

Any idea what this is all about? I get 2 debug builds but no release build.

Code (glbasic) Select

_______________________________________
*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.10.060 SN:4ebaa1d3 - 3D, NET
Wordcount:3413 commands
compile+link:

running glb_build.bat
Using ANDROID_TARGET="android-18"
You can use "D:\GLBasic Marcus\TinyGerks (Fish Version AE NEW)\distribute\Android\glb_android_build.bat" to change the API level and SDK path.
%ANDROIDSDK% not set. Using GLBasic's default target-18, Android 4.3
Checking Icons....
BUILD STAGE 2: Start compiler (android.bat)
Q:\Compiler\platform\android\bin\..\android-sdk-windows
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
Updated project.properties
Updated local.properties
Added file D:\GLBasic Marcus\TinyGerks (Fish Version AE NEW)\distribute\Android\build.xml
.
BUILD STAGE 3: Build a debug build
   [subant] No sub-builds to iterate on
    [javac] Note: D:\GLBasic Marcus\TinyGerks (Fish Version AE NEW)\distribute\Android\src\com\glbasic\test\SDLActivity.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.

BUILD SUCCESSFUL
Total time: 32 seconds
.
BUILD STAGE 4: Build a release build
   [subant] No sub-builds to iterate on
    [javac] Note: D:\GLBasic Marcus\TinyGerks (Fish Version AE NEW)\distribute\Android\src\com\glbasic\test\SDLActivity.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.

BUILD FAILED
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:875: D:\GLBasic Marcus\TinyGerks (Fish Version AE NEW)\distribute\Android\_proguard.cfg (The system cannot find the file specified)

Total time: 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 "D:\GLBasic Marcus\TinyGerks (Fish Version AE NEW)\distribute\Android/bin/glbasic-debug.apk"
.
HOW TO SIGN? Sign it by invoke this command:
"Q:\Compiler\platform\android\bin\glb_code_sign.bat" "D:\GLBasic Marcus\TinyGerks (Fish Version AE NEW)\distribute\Android"
.
Android=D:\GLBasic Marcus\TinyGerks (Fish Version AE NEW)\distribute\Android
success
_______________________________________
*** Finished ***
Elapsed: 50.1 sec. Time: 23:27
Build: 1 succeeded.
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

erico

Looks similar to another thread were people are trying java 8, maybe use java 7 for now?

spicypixel

Using Java 7 already.....  All working before using the AE install exe and Update exe :-(
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

spacefractal

Don't use () in the path. It's can cause some compiler issues.

I'm uses newest java 7 and working fine here. But have not tested with java 8 yet.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spicypixel

I'm not using the parenthesis in the folder name now and I still get the same error. I was using AE and all was working well. However for the 2.2 and 2.3 updates I used the exe installs and since doing that I'm getting these issues regarding the release build?????

Code (glbasic) Select
*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.10.060 SN:4ebaa1d3 - 3D, NET
Wordcount:3413 commands
compile+link:

running glb_build.bat
Using ANDROID_TARGET="android-18"
You can use "D:\GLBasic Marcus\FishyFingers\distribute\Android\glb_android_build.bat" to change the API level and SDK path.
%ANDROIDSDK% not set. Using GLBasic's default target-18, Android 4.3
Checking Icons....
BUILD STAGE 2: Start compiler (android.bat)
Q:\Compiler\platform\android\bin\..\android-sdk-windows
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
Updated project.properties
Updated local.properties
Added file D:\GLBasic Marcus\FishyFingers\distribute\Android\build.xml
.
BUILD STAGE 3: Build a debug build
   [subant] No sub-builds to iterate on
    [javac] Note: D:\GLBasic Marcus\FishyFingers\distribute\Android\src\com\glbasic\test\SDLActivity.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.

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

Total time: 6 seconds
.
BUILD STAGE 4: Build a release build
   [subant] No sub-builds to iterate on
    [javac] Note: D:\GLBasic Marcus\FishyFingers\distribute\Android\src\com\glbasic\test\SDLActivity.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.

BUILD FAILED
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:875: D:\GLBasic Marcus\FishyFingers\distribute\Android\_proguard.cfg (The system cannot find the file specified)

Total time: 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 "D:\GLBasic Marcus\FishyFingers\distribute\Android/bin/glbasic-debug.apk"
.
HOW TO SIGN? Sign it by invoke this command:
"Q:\Compiler\platform\android\bin\glb_code_sign.bat" "D:\GLBasic Marcus\FishyFingers\distribute\Android"
.
Android=D:\GLBasic Marcus\FishyFingers\distribute\Android
success
_______________________________________
*** Finished ***
Elapsed: 25.8 sec. Time: 13:16
Build: 1 succeeded.
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

spacefractal

#38
Something wrong might have been happens. Howover if you only used the minor update, then its can been wrong, because some missing directories etc.

You should try download the full update with anything, which is around 125mb (the other is much smaller) in size and try again, to make sure all files exists in the Android folder (the Android SDK is property missing). That one include the sdk. Im recently again upgraded to api-18 recentely, which require a full upgrade, not update. Before im did used api-16.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spicypixel

It was the full setup that I installed and then the update afterwards anyway. I have also done the same on another PC and I'm getting problems with the release build. Again this is the output.

PS: Full v2.3 install presently on the AE thread 404's?

Code (glbasic) Select

_______________________________________
*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.10.060 SN:85c5906f - 3D, NET
Wordcount:3320 commands
compile+link:

running glb_build.bat
Using ANDROID_TARGET="android-18"
You can use "D:\[] Work\GLBasic Marcus\FishyFingers\distribute\Android\glb_android_build.bat" to change the API level and SDK path.
%ANDROIDSDK% not set. Using GLBasic's default target-18, Android 4.3
Checking Icons....
BUILD STAGE 2: Start compiler (android.bat)
Q:\Compiler\platform\android\bin\..\android-sdk-windows
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
Updated project.properties
Updated local.properties
Added file D:\[] Work\GLBasic Marcus\FishyFingers\distribute\Android\build.xml
.
BUILD STAGE 3: Build a debug build
   [subant] No sub-builds to iterate on
    [javac] Note: D:\[] Work\GLBasic Marcus\FishyFingers\distribute\Android\src\com\glbasic\test\SDLActivity.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.

BUILD SUCCESSFUL
Total time: 1 minute 0 seconds
.
BUILD STAGE 4: Build a release build
   [subant] No sub-builds to iterate on
    [javac] Note: D:\[] Work\GLBasic Marcus\FishyFingers\distribute\Android\src\com\glbasic\test\SDLActivity.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.

BUILD FAILED
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:875: D:\[] Work\GLBasic Marcus\FishyFingers\distribute\Android\_proguard.cfg (The system cannot find the file specified)

Total time: 7 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 "D:\[] Work\GLBasic Marcus\FishyFingers\distribute\Android/bin/glbasic-debug.apk"
.
HOW TO SIGN? Sign it by invoke this command:
"Q:\Compiler\platform\android\bin\glb_code_sign.bat" "D:\[] Work\GLBasic Marcus\FishyFingers\distribute\Android"
.
Android=D:\[] Work\GLBasic Marcus\FishyFingers\distribute\Android
success
_______________________________________
*** Finished ***
Elapsed: 84.8 sec. Time: 16:08
Build: 1 succeeded.
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

spacefractal

#40
The debug build seens to been ok (dont worry about the many missing path lines), but not the release build woes.

Im guess its a ProGuard issue, which im have fighted with and still not got working, and hence its files should been removed. Property im should checkout it in the icons.exe file, so its make sure anything work. im look on that in the next version.

By in the way, im havent got Proguard working correctly at all, and dedicated not to uses that in the corrent builds, but files is not deleted correctly by now.

So try to remove those files and compile again from Compiler\platform\android\templateproj, distribute and in Android\bin (if they exists):
proguard-project.txt
proguard.cfg
project.properties

and see that works.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spicypixel

The problem with not generating a release build is fixed. It was the ProGuard as you suggested. Fantastic feedback as always SF. You are an absolute Star!!!

:enc:
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

spacefractal

im will in later day try to reimplementing ProGuard, but that is not on the top list. Nice its worked.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spicypixel

Just ouf of curiosity. How can I remove the crappy icon border that GLB puts on our icons. I know this isn't strictly an AE issue but as I'm using AE I wanted to post here in case anything was affected.
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

spacefractal

#44
its seen im needs to go much aggresive to work to fix this very very annoying issue.

The reason is glbasic just overwrite icons in the res directories, even the icons allready exists, which is very pity annoying. That happens if no android icons is create (ouya_icon.png, androidicon96.png etc). Im whish Gernot could fix that issue to NOT overwrite any files at all (both in the res dir or the icons used in the source folder). THIS IS A VERY MAJOR BUG.

Until the above issue is fixed, im needs to go much more aggresive to work and delete glbasic own icon files every time and copy the icons files to the res folders to make sure its uses the icons without the border. This is what im does does with AndroidIcons.exe. Im can do nothing other than that, due this annoying glbasic bug.

So here is a new version of AndroidIcons.exe (replace the exists one in GLBasic_v12\Compiler\platform\android\bin) which does the above:
http://www.dropbox.com/s/h2t4q36tvnli2qm/AndroidIcons.zip

Icon filenames its using will been outputted under compiling. So just compile it, and you would been told which iconfiles that is missing.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/