|
Post by johnno56 on Jul 17, 2022 5:02:28 GMT -6
n00b, I have recently reinstalled my OS (Linux Mint) and figured that I would make sure the Distribution Tool works with the new install of RCB Studio. Is the video you made still valid? I want to try exporting to Android and want to make sure that I do it right. Do you have instructions for setting up the machine to process Android stuff? J
|
|
|
Post by n00b on Jul 17, 2022 15:37:49 GMT -6
johnno56 The last video I made on this is mostly valid. It goes over setting up rcbasic for use with geany but most of the steps you go through to set it up with geany also works with rcbasic studio.
|
|
|
Post by johnno56 on Jul 17, 2022 16:24:32 GMT -6
Cool... I was not sure about the tool itself as it looks different to the latest version of RC tool...
Are thee any issues with Android-SDK and Android Studio? I already have both installed... (GDevelop and Godot need the Android stuff).
I will test your Mode7 and let you know... Fingers crossed...
|
|
|
Post by n00b on Jul 17, 2022 19:21:21 GMT -6
If you have android sdk installed then you just need to make sure you have the environment variables mentioned in the video set to your installation and the tool should just work.
Some people have had problems with it but for the most part it does seem to work. This will be more stream lined in the next release. I am currently still working on the debugger but there have already been some improvements made to the editor as well.
|
|
|
Post by johnno56 on Jul 17, 2022 19:29:32 GMT -6
The initialisation of the android sdk failed. Seems it cannot find '/cmdline-tools/bin'. As you can see in the attached image (#1 - bin), the folder in question, does actually exist. Just in case you were wondering if the ".bashrc" file was correctly modified, please refer to image #2.
|
|
|
Post by n00b on Jul 17, 2022 20:33:46 GMT -6
Try this:
source ~/.bashrc
After you run that command, echo $ANDROID_HOME to make sure your android home environment variable is set. If it is, then run init_android_sdk.sh again.
|
|
|
Post by johnno56 on Jul 17, 2022 21:26:46 GMT -6
Command and 'path' worked ok. Re-ran 'init' Will it be ok to continue?
|
|
|
Post by n00b on Jul 17, 2022 22:11:07 GMT -6
You should be good.
|
|
|
Post by johnno56 on Jul 18, 2022 0:08:10 GMT -6
--------------------------------- CWD = /home/john/Desktop/Output_Directory/GoldenWaves PROP File = app.properties --------------------------------------
APP_PKG_ARGS$ = TGT_PLATFORM=ANDROID PROJECT_NAME="GoldenWaves" PROJECT_CATEGORY=Graphics APP_TYPE=Application TERMINAL_FLAG=false PROJECT_DIR="/home/john/Desktop/Output_Directory/GoldenWaves" OUTPUT_DIR="/home/john/Desktop/Output_Directory" ENABLE_WEB_THREADS=false ICON="icon/rcbasic.png" SOURCE="goldwaves.bas" ANDROID_APP_ID="com.mycompany.myApp" ANDROID_ORIENTATION="default" ANDROID_KEYSTORE="" ANDROID_KEYSTORE_PASS="" ANDROID_ALIAS="" ANDROID_ALIAS_PASS="" ANDROID_RELEASE=0 ANDROID_DEBUG=0 ANDROID_JAVA_DIR="/home/john/Desktop/Output_Directory/GoldenWaves/java" ANDROID_HOME=
CMD: rcbasic pkg TGT_PLATFORM=ANDROID PROJECT_NAME="GoldenWaves" PROJECT_CATEGORY=Graphics APP_TYPE=Application TERMINAL_FLAG=false PROJECT_DIR="/home/john/Desktop/Output_Directory/GoldenWaves" OUTPUT_DIR="/home/john/Desktop/Output_Directory" ENABLE_WEB_THREADS=false ICON="icon/rcbasic.png" SOURCE="goldwaves.bas" ANDROID_APP_ID="com.mycompany.myApp" ANDROID_ORIENTATION="default" ANDROID_KEYSTORE="" ANDROID_KEYSTORE_PASS="" ANDROID_ALIAS="" ANDROID_ALIAS_PASS="" ANDROID_RELEASE=0 ANDROID_DEBUG=0 ANDROID_JAVA_DIR="/home/john/Desktop/Output_Directory/GoldenWaves/java"
Build Path: /home/john/Programs/rcbasic/rcbasic_build Build Command: rcbasic_build goldwaves.bas in /home/john/Desktop/Output_Directory/GoldenWaves Source: goldwaves.bas RCBasic Binary Program compiled
Compiled Successfully
DEBUB: CLEAR /home/john/Desktop/Output_Directory
PROJECT_NAME: GoldenWaves PROJECT_CATEGORY: Graphics APP_NAME: GoldenWaves APP_TYPE: Application PROJECT_DIR: /home/john/Desktop/Output_Directory/GoldenWaves OUTPUT_DIR: /home/john/Desktop/Output_Directory/GoldenWaves ICON: icon/rcbasic.png APP_ID -- com.mycompany.myApp DISPLAY -- default KEYSTORE -- KEYSTORE_PASS -- ALIAS -- ALIAS_PASS -- DEBUG -- 0 RELEASE -- 0 BASE_DIR: /home/john/Programs/rcbasic/tools/dist ANDROID_JAVA_DIR$ = /home/john/Desktop/Output_Directory/GoldenWaves/java
!!!!RCBASIC_ANDROID_DIR=/home/john/Programs/rcbasic/tools/dist/rcbasic_android!!!!
PROJECT_DIR=/home/john/Desktop/Output_Directory/GoldenWaves BUILD_DIR=/home/john/Programs/rcbasic/tools/dist/rcbasic_android RC_DEBUG_ENVIRONMENT SDK_ROOT= API_VERSION is set to 28 IN DIR:/home/john/Programs/rcbasic/tools/dist/rcbasic_android/scripts release_setting = ------strings.xml deleted------- ------Build Gradle deleted------- RC_ANDROID BUILD: DEBUG=0 RC_ANDROID BUILD: RELEASE=0 starting gradle build:
> Configure project :app NDK is missing a "platforms" directory. If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to /ndk/21.4.7075529. If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
Checking the license for package SDK Patch Applier v4 in /home/john/Programs/rcbasic/tools/dist/rcbasic_android/android-project/licenses Warning: License for package SDK Patch Applier v4 not accepted. Checking the license for package Android Emulator in /home/john/Programs/rcbasic/tools/dist/rcbasic_android/android-project/licenses Warning: License for package Android Emulator not accepted. Checking the license for package Android SDK Platform-Tools in /home/john/Programs/rcbasic/tools/dist/rcbasic_android/android-project/licenses Warning: License for package Android SDK Platform-Tools not accepted. Checking the license for package Android SDK Tools in /home/john/Programs/rcbasic/tools/dist/rcbasic_android/android-project/licenses Warning: License for package Android SDK Tools not accepted. Checking the license for package Android SDK Build-Tools 28.0.2 in /home/john/Programs/rcbasic/tools/dist/rcbasic_android/android-project/licenses Warning: License for package Android SDK Build-Tools 28.0.2 not accepted. Checking the license for package Android SDK Platform 28 in /home/john/Programs/rcbasic/tools/dist/rcbasic_android/android-project/licenses Warning: License for package Android SDK Platform 28 not accepted.
The build directory was created in the Output_Director, but because the "gradle build" failed, nothing was produced.
I am setting up the project correctly because I have also created a Linux64 executable just fine... But I have been wrong before... lol
Apologies for all these hassles... "hassles" is still used, right, or is my age showing again? lol...
|
|
|
Post by n00b on Jul 18, 2022 7:58:03 GMT -6
You need to go into your android sdk folder and run this command and accept all the licenses:
sdkmanager --licenses
If that doesn't ask you to accept any licenses you may need to reinstall android sdk. I can post a video on fixing that specific issue later today.
|
|
|
Post by johnno56 on Jul 18, 2022 12:37:56 GMT -6
To execute that command I had to go into the "bin" folder of the cmdline-tools folder.
john@john-H81M-DS2:~/Programs/android_sdk/cmdline-tools/bin$ ./sdkmanager --licenses Error: Could not determine SDK root. Error: Either specify it explicitly with --sdk_root= or move this package into its expected location: <sdk>/cmdline-tools/latest/
I am going to remove android_sdk. Re-run the video and document the procedures (just in case I may have missed something...) Then, as you suggested, install "sdk".
Quick question. Does Android Studio need to be installed or is cmdline-tools all that is required?
|
|
|
Post by johnno56 on Jul 18, 2022 14:24:20 GMT -6
Ok. Now I am totally confused... After downloading the cmdline-tools file and extracting it. The folder is renamed to 'android_sdk'... so far so good... This is demonstrated in the video about 9 minutes into it... The android_sdk folder is then cut and pasted into the "Programs" folder... again, so far so good... This is where it gets confusing... In the video (about 9:15-9:20), the android_sdk folder is opened to reveal a cmdline-tools folder... When I open the folder it contains 'bin' and 'lib' folders and a NOTICE.txt and sources.properties files... (from the video) (my system) The video is obviously correct as it worked at the time the video was made. Perhaps something has changed (zip file) since then? So, what should I do? Leave the android_sdk folder as it is or create a cmdline-tools folder within the android_sdk folder and move the 'bin, 'lib' and other files into the cmdline-tools folder? By the way, Linux Mint (and ubuntu) has the android_sdk application in its repository. That version (25.0.0+12) is quite old. I believe RC build is looking for version 28? I must be doing something wrong. I have followed the video 'to the letter' and I still have problems... I am beginning to believe that Android hates me... *sigh*
|
|
|
Post by n00b on Jul 18, 2022 16:39:59 GMT -6
I just redownloaded it to see if it was different and it is still the same as in the video. 1. Go here: developer.android.com/studio2. Go down to "Command Line Tools only" 3. Download the linux package That is the same file I downloaded in the video.
|
|
|
Post by n00b on Jul 18, 2022 16:45:33 GMT -6
I just realized what you probably did. Inside the cmdline-tools folder there is a lib and bin folder and a NOTICE.txt. So just move those files into cmdline-tools.
|
|
|
Post by johnno56 on Jul 18, 2022 17:43:05 GMT -6
I did not do anything. All I did was unpack the cmdline-tools.zip, rename that cmdline-tool folder to android_sdk then cut and pasted that folder into "Programs"
Technically, there is no cmdline-tools folder to put 'bin", 'lib' and files into, as that folder was renamed to android_sdk... my brain hurts... lol
What should the "tree" structure of the android_sdk folder supposed to look like? It is a good thing that I have a new supply of coffee...
I want to thank you for your patience... I know what it is like to cope with someone that is as confused as I am...
|
|