Hi guys
It's been a while since I used GlBasic
Since I last used it it changed over to being modular
Just getting back into it now but have a new desktop
I downloaded the latest version and updated, plus the android module
Windows 7 64 Bit
GlBasic v14.371
Installed GlBasic to C:\GLBasic_v14
Android folder is in C:\GLBasic_v14\Compiler\platform\
JDK: C:\Program Files (x86)\Java\jdk1.8.0_101
and JAVA_HOME variable set
Samsung galaxy s4 setup and connected
adb sees it and is authorised
When I compile for android it doesn't seem to get copied to the phone
Is the procedure the same as on previous versions of GLB ? Just compile for
multiple platform and it should appear on the phone ?
Also is it a requirement to have the android sdk installed ?
This output is with the android sdk setup with environment variable
Here is the output I get:
It's been a while since I used GlBasic
Since I last used it it changed over to being modular
Just getting back into it now but have a new desktop
I downloaded the latest version and updated, plus the android module
Windows 7 64 Bit
GlBasic v14.371
Installed GlBasic to C:\GLBasic_v14
Android folder is in C:\GLBasic_v14\Compiler\platform\
JDK: C:\Program Files (x86)\Java\jdk1.8.0_101
and JAVA_HOME variable set
Samsung galaxy s4 setup and connected
adb sees it and is authorised
When I compile for android it doesn't seem to get copied to the phone
Is the procedure the same as on previous versions of GLB ? Just compile for
multiple platform and it should appear on the phone ?
Also is it a requirement to have the android sdk installed ?
This output is with the android sdk setup with environment variable
Here is the output I get:
Quote
*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.10.037 SN:8b5efaf7 - 3D, NET
Wordcount:104 commands
compile+link:
running glb_build.bat
Using ANDROID_TARGET="android-22"
You can use "D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\glb_android_build.bat" to change the API level and SDK path.
ECHO is off.
androidmanifest.xml:
Make sure to check do a manual check for those.
android:minSdkVersion="10" android:targetSdkVersion="22"
ECHO is off.
AndroidIcons.exe [v21-3-2015] running...
copy D:/GLBasic Projects/GLBasic/TestApp/icon_36_AndroidExtras.png to D:/GLBasic Projects/GLBasic/TestApp/distribute/Android/res/drawable-ldpi/icon.png
copy D:/GLBasic Projects/GLBasic/TestApp/icon_48_AndroidExtras.png to D:/GLBasic Projects/GLBasic/TestApp/distribute/Android/res/drawable-mdpi/icon.png
copy D:/GLBasic Projects/GLBasic/TestApp/icon_72_AndroidExtras.png to D:/GLBasic Projects/GLBasic/TestApp/distribute/Android/res/drawable/icon.png
copy D:/GLBasic Projects/GLBasic/TestApp/icon_72_AndroidExtras.png to D:/GLBasic Projects/GLBasic/TestApp/distribute/Android/res/drawable-hdpi/icon.png
copy D:/GLBasic Projects/GLBasic/TestApp/icon_96_AndroidExtras.png to D:/GLBasic Projects/GLBasic/TestApp/distribute/Android/res/drawable-xhdpi/icon.png
copy D:/GLBasic Projects/GLBasic/TestApp/icon_180_AndroidExtras.png to D:/GLBasic Projects/GLBasic/TestApp/distribute/Android/res/drawable-xxhdpi/icon.png
copy D:/GLBasic Projects/GLBasic/TestApp/icon_192_AndroidExtras.png to D:/GLBasic Projects/GLBasic/TestApp/distribute/Android/res/drawable-xxxhdpi/icon.png
D:/GLBasic Projects/GLBasic/TestApp/icon_ouya_AndroidExtras.png is missing (732x412 size)
the Ouya icon is not important, if you dont want to support the console
copy D:/GLBasic Projects/GLBasic/TestApp/icon_ouya_AndroidExtras.png to D:/GLBasic Projects/GLBasic/TestApp/distribute/Android/res/drawable-xhdpi/ouya_icon.png
Checked AdActivity (intersititals):
Does not uses a AdActivity
Android Extras version (SDLActivity.java):
* 2.11.2
Checking Icons Finished...
BUILD STAGE 2: Start compiler (android.bat)
SDK=C:\GLBasic_v14\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.
Updated project.properties
Updated local.properties
Updated file D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\build.xml
Updated file D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\proguard-project.txt
Updated project.properties
Updated local.properties
Updated file D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\build.xml
Updated file D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\proguard-project.txt
.
BUILD STAGE 3: Build a debug build
Buildfile: D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 24.2.0
[checkenv] Installed at C:\GLBasic_v14\Compiler\platform\android\android-sdk-windows
-setup:
[echo] Project Name: glbasic
[gettype] Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 21.1.2
[echo] Switching between debug and non debug build: Deleting previous compilation output...
[delete] Deleting directory D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\classes
[echo] Resolving Build Target for glbasic...
[gettarget] Project Target: Android 5.1.1
[gettarget] API level: 22
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\rsObj
[mkdir] Created dir: D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\rsLibs
[mkdir] Created dir: D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\classes
[echo] ----------
[echo] Resolving Dependencies for glbasic...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
[echo] ----------
[echo] Building Libraries with 'debug'...
[subant] No sub-builds to iterate on
-code-gen:
[mergemanifest] Found Deleted Target File
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Found Deleted Target File
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Build type changed: Generating new BuildConfig class.
-pre-compile:
-compile:
[javac] Compiling 30 source files to D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\classes
[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: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 3 warnings
-post-compile:
-obfuscate:
-dex:
[dex] input: D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\classes
[dex] input: D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\libs\android-support-v4.jar
[dex] input: D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\libs\gson-2.2.2.jar
[dex] input: D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\libs\ouya-sdk.jar
[dex] input: D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\libs\openiab-0.9.7.2.jar
[dex] Using Pre-Dexed android-support-v4-b02bce9a360b7680678aa6e9c4ce26c5.jar <- D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\libs\android-support-v4.jar
[dex] Using Pre-Dexed gson-2.2.2-ff5467daa2bb35271d284478338b08d8.jar <- D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\libs\gson-2.2.2.jar
[dex] Using Pre-Dexed ouya-sdk-33d7c1b123c195f25e8dfed965951884.jar <- D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\libs\ouya-sdk.jar
[dex] Using Pre-Dexed openiab-0.9.7.2-e84a5963956fa14d9547933fe8748e4d.jar <- D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\libs\openiab-0.9.7.2.jar
[dex] Found Deleted Target File
[dex] Converting compiled files and external libraries into D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\classes.dex...
[dx] Merged dex A (67 defs/114.1KiB) with dex B (371 defs/436.8KiB). Result is 438 defs/673.3KiB. Took 0.1s
[dx] Merged dex A (438 defs/673.3KiB) with dex B (155 defs/153.0KiB). Result is 593 defs/1060.0KiB. Took 0.0s
[dx] Merged dex A (593 defs/1060.0KiB) with dex B (204 defs/181.7KiB). Result is 797 defs/1684.0KiB. Took 0.0s
[dx] Result compacted from 2685.8KiB to 1022.1KiB to save 1663.6KiB
[dx] Merged dex A (797 defs/1684.0KiB) with dex B (169 defs/183.0KiB). Result is 966 defs/1022.1KiB. Took 0.1s
-crunch:
[crunch] Crunching PNG Files in source dir: D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\res
[crunch] To destination dir: D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\res
[crunch] Processing image to cache: D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\res\drawable-hdpi\icon.png => D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\res\drawable-hdpi\icon.png
[crunch] (processed image to cache entry D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\res\drawable-hdpi\icon.png: 0% size of source)
[crunch] Processing image to cache: D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\res\drawable-ldpi\icon.png => D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\res\drawable-ldpi\icon.png
[crunch] (processed image to cache entry D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\res\drawable-ldpi\icon.png: 0% size of source)
[crunch] Processing image to cache: D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\res\drawable-mdpi\icon.png => D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\res\drawable-mdpi\icon.png
[crunch] (processed image to cache entry D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\res\drawable-mdpi\icon.png: 0% size of source)
[crunch] Processing image to cache: D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\res\drawable-xhdpi\icon.png => D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\res\drawable-xhdpi\icon.png
[crunch] (processed image to cache entry D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\res\drawable-xhdpi\icon.png: 68% size of source)
[crunch] Processing image to cache: D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\res\drawable-xxhdpi\icon.png => D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\res\drawable-xxhdpi\icon.png
[crunch] (processed image to cache entry D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\res\drawable-xxhdpi\icon.png: 78% size of source)
[crunch] Processing image to cache: D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\res\drawable-xxxhdpi\icon.png => D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\res\drawable-xxxhdpi\icon.png
[crunch] (processed image to cache entry D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\res\drawable-xxxhdpi\icon.png: 94% size of source)
[crunch] Processing image to cache: D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\res\drawable\icon.png => D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\res\drawable\icon.png
[crunch] (processed image to cache entry D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\res\drawable\icon.png: 0% size of source)
[crunch] Crunched 7 PNG files to update cache
-package-resources:
[aapt] Current build type is different than previous build: forced aapt run.
[aapt] Creating full resource package...
[aapt] Warning: AndroidManifest.xml already defines debuggable (in http://schemas.android.com/apk/res/android); using existing value in manifest.
-package:
[apkbuilder] Current build type is different than previous build: forced apkbuilder run.
[apkbuilder] Creating glbasic-debug-unaligned.apk and signing it with a debug key...
-post-package:
-do-debug:
[zipalign] Running zip align on final apk...
[echo] Debug Package: D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\glbasic-debug.apk
[propertyfile] Updating property file: D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\build.prop
[propertyfile] Updating property file: D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\build.prop
[propertyfile] Updating property file: D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\build.prop
[propertyfile] Updating property file: D:\GLBasic Projects\GLBasic\TestApp\distribute\Android\bin\build.prop
-post-build:
debug:
BUILD SUCCESSFUL
Total time: 6 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: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 3 warnings
BUILD SUCCESSFUL
Total time: 3 seconds
Picked up _JAVA_OPTIONS: -Xms256m -Xmx512m
.
HOW TO INSTALL? Install by invoke this command:
"C:\GLBasic_v14\Compiler\platform\android\bin\..\android-sdk-windows\platform-tools\adb.exe" install -r "D:\GLBasic Projects\GLBasic\TestApp\distribute\Android/bin/glbasic-debug.apk"
.
HOW TO SIGN? Sign it by invoke this command:
"C:\GLBasic_v14\Compiler\platform\android\bin\glb_code_sign.bat" "D:\GLBasic Projects\GLBasic\TestApp\distribute\Android"
.
Android=D:\GLBasic Projects\GLBasic\TestApp\distribute\Android
success
_______________________________________
*** Finished ***
Elapsed: 16.2 sec. Time: 11:31
Build: 1 succeeded.