|
Post by n00b on Aug 8, 2021 23:13:47 GMT -6
I was hoping to get feedback from anyone porting to android or to the web? With this latest release, there are more steps required to setup then there was in the past. This was a result of me trying to reduce the size as much as possible. If you are porting to these platforms and are having issues please let me know. I have tried to make this as simple as possible but I have seen a few people having issues with this latest release as far as getting the distribute tool to work.
Any feedback on how smooth the setup was and what you think can be improved would be appreciated.
|
|
|
Post by johnno56 on Aug 9, 2021 0:35:30 GMT -6
Hadn't really considered exporting to Android or Web. I suppose, seeing that I have an Android pad, It would be a good idea to to test a port. Do you have any tips on how to convert keyboard to touch or will the porting do that automatically?
J
|
|
|
Post by n00b on Aug 9, 2021 1:37:28 GMT -6
Hadn't really considered exporting to Android or Web. I suppose, seeing that I have an Android pad, It would be a good idea to to test a port. Do you have any tips on how to convert keyboard to touch or will the porting do that automatically? J Touch events can be checked with GetTouch. I have implemented touch controls in the Mode 7 demo if you want to try exporting that. You will need to make sure you have followed all the instructions in the Install Instructions included.
|
|
|
Post by rosy on Aug 19, 2021 9:54:03 GMT -6
I tried the "Distribute your program" option in Geany under Linux. Nothing appeared in the directory "RCBasic Aps"
|
|
|
Post by n00b on Aug 19, 2021 14:32:27 GMT -6
Please share your OS and architecture and I will try to look into it.
|
|
|
Post by rosy on Aug 19, 2021 16:15:18 GMT -6
MX 19.4 32 BIT
COMPILER MESSAGE: ONLY 64 BIT
In Windows 10, I tried to build on Android, it also failed.
I have installed java oracle and Android command line. The variables had to be set manually, but ...
After running "distribute program" the Linux directory appears by default, you have to change it, you can only browse the current disk. Below I am pasting the messages:
rcbasic "F:\rcbasic_win\rcbasic\tools\dist\app_build_gui" "D:\ROBERT\JEZYKI\PROGRAMY\RCBASIC\PINGIEL" "PINGIELwww.bas" (w katalogu D:\ROBERT\JEZYKI\PROGRAMY\RCBASIC\PINGIEL)
icon_path=icon\rcbasic.png
Attempting to output to: app.properties
APP_PKG_ARGS$ = TGT_PLATFORM=ANDROID PROJECT_NAME="PINGIELwww" PROJECT_CATEGORY=Game APP_TYPE=Application TERMINAL_FLAG=false PROJECT_DIR="D:\ROBERT\JEZYKI\PROGRAMY\RCBASIC\PINGIEL\" OUTPUT_DIR="F:\rcbasic_win\budynki" ENABLE_WEB_THREADS=false ICON="icon\rcbasic.png" SOURCE="PINGIELwww.bas" ANDROID_APP_ID="com.mycompany.myApp" ANDROID_ORIENTATION="default" ANDROID_KEYSTORE="F:\\rcbasic_win\\rcbasic\\tools\\dist\\..\\..\\keystore\\.keystore " ANDROID_KEYSTORE_PASS="" ANDROID_ALIAS="" ANDROID_ALIAS_PASS="" ANDROID_RELEASE=0 ANDROID_DEBUG=1 ANDROID_JAVA_DIR="/media/BOB/68C4-5048/ROBERT/JEZYKI/PROGRAMY/RCBASIC/PINGIEL/java"
ANDROID_HOME=
Error: Could not change directory
Build Command: rcbasic_build in F:\rcbasic_win\rcbasic\tools\dist
Source:
Failed to build Source File: ()
Kompilacja ukończona pomyślnie.
What is "web thread"?
|
|
|
Post by n00b on Aug 23, 2021 13:03:05 GMT -6
You have to set the ANDROID_HOME environment variable. There should have been some instructions included on how to do this. If you don't see it, let me know and I will post them when I get home.
You can ignore web thread. The reason its there is to improve video playback in the browser. Its not really needed and it requires your server be configured a certain way to even use it. Its really just there for me to be able to easily test it.
|
|
|
Post by rosy on Aug 23, 2021 15:21:32 GMT -6
I set these variables
He doesn't see them. And see that he remembered directories used previously in Linux, which are bad in Windows. There are other kaalogs in the configuration files, probably from your computer.
|
|
|
Post by n00b on Aug 24, 2021 1:44:54 GMT -6
I will look at it
|
|
|
Post by rosy on Aug 29, 2021 15:04:03 GMT -6
However, no variables were set... Weird that he only saw them after restarting Geany (I don't remember if I recompiled). But still not working:
rcbasic "F:\rcbasic_win\rcbasic\tools\dist\app_build_gui" "D:\ROBERT\JEZYKI\PROGRAMY\RCBASIC\PINGIEL" "PINGIELwww.bas" (w katalogu D:\ROBERT\JEZYKI\PROGRAMY\RCBASIC\PINGIEL) Properties_File 0 icon_path=icon\rcbasic.png Attempting to output to: app.properties APP_PKG_ARGS$ = TGT_PLATFORM=ANDROID PROJECT_NAME="PINGIELwww" PROJECT_CATEGORY=Game APP_TYPE=Application TERMINAL_FLAG=false PROJECT_DIR="D:\ROBERT\JEZYKI\PROGRAMY\RCBASIC\PINGIEL\" OUTPUT_DIR="F:\rcbasic_win\budynki" ENABLE_WEB_THREADS=false ICON="icon\rcbasic.png" SOURCE="PINGIELwww.bas" ANDROID_APP_ID="com.mycompany.myApp" ANDROID_ORIENTATION="default" ANDROID_KEYSTORE="F:\\rcbasic_win\\rcbasic\\tools\\dist\\..\\..\\keystore\\ROSY.keystore " ... ANDROID_DEBUG=1 ANDROID_JAVA_DIR="F:\rcbasic_win\rcbasic\tools\dist\java" ANDROID_HOME=C:\Users\User\Downloads\commandlinetools-win-7583922_latest Error: Could not change directory Build Command: rcbasic_build in F:\rcbasic_win\rcbasic\tools\dist Source: Failed to build Source File: () Kompilacja ukończona pomyślnie. ==========================================================================
When are you gonna see this?
Can I still use the old Java 8? Why are there double slashes "\\" in paths? What does it mean ?
|
|
|
Post by n00b on Sept 7, 2021 5:59:49 GMT -6
I was playing around with the android build all weekend on a PC that had a fresh install of Windows on it. Here are the steps I used to get the Mode7 demo to build correctly.
1. Install OpenJDK 8
2. Install Android SDK Command-line tools ( I just extracted it to my C folder and renamed it android_sdk )
3. Set ANDROID_HOME environment variable ( it should have a folder in it called cmdline-tools, so if you have a folder called C:\android_sdk\cmdline-tools then your ANDROID_HOME variable should be C:\android_sdk )
4. If there is a .gradle folder in your C:\Users\<your_user_name> directory, delete it ( make sure you have hidden folders visible )
5. Inside your Android SDK\cmdline-tools\bin folder, open a command prompt and run these commands: * sdkmanager --sdk_root=%ANDROID_HOME% "platform-tools" "platforms;android-28" "build-tools;28.0.3" "system-images;android-28;google_apis;x86_64" "ndk;21.4.7075529"
* sdkmanager --sdk_root="%ANDROID_HOME%" --licenses * accept all the license agreements
6. Go to the rcbasic\tools\dist\rcbasic_android\android-project folder * delete the ".gradle" folder if you have one ( make sure it has a "." at the start of the file )
* delete gradle.properties
7. Inside the Mode7 demo folder, if there is a app.properties file, delete it
8. After you have verified all the previous steps, open the Mode7 demo and your android build should run successfully ( the first time you build, it will rebuild all the libraries so it will take a while, possible a few hours )
|
|
|
Post by rosy on Sept 9, 2021 11:40:00 GMT -6
Where to download Open jdk 8? You have to register on the Oracle website ...
Can't build like 3.13 ?? Why these combinations?
|
|
|
Post by n00b on Sept 9, 2021 12:13:19 GMT -6
Here is where you can download it: OpenJDKAs for why this process is more work than 3.13, because of licensing and file size restrictions. I wanted to include openjdk with the download but the file size was bigger than the max file size I am allowed to upload. The licensing part comes down to google being very strict with there software licenses for Android SDK. Once you get Java and Android SDK setup properly, you won't need to anything extra with the next release other than maybe run an update command on the SDK to make sure you have the latest versions of the API libraries you need for the supported versions of android.
|
|
|
Post by rosy on Sept 9, 2021 12:37:08 GMT -6
Couldn't use old versions while they were working?
|
|
|
Post by n00b on Sept 9, 2021 13:13:50 GMT -6
Couldn't use old versions while they were working? Older versions of the SDK are not compatible with the latest version of SDL2.
|
|