jb
New Member
Posts: 2
|
Post by jb on Oct 15, 2021 18:41:30 GMT -6
Hi, I've just discovered RCBasic and am trying to build an APK. It seems to make a lot of progress but then fails with this error. Really appreciate if someone know how to resolve this. RCBASIC_ANDROID_DIR= 'rcbasic_android_build.bat' is not recognized as an internal or external command, operable program or batch file. Error: Failed to build Android Debug APK
|
|
|
Post by n00b on Oct 15, 2021 20:30:56 GMT -6
jb I think its a problem with geany overwriting the PATH variable. Try using the rcbasic_editor ( you can start it using start_rcedit.bat ). You can run the distribute tool under the build menu.
|
|
jb
New Member
Posts: 2
|
Post by jb on Oct 15, 2021 20:42:04 GMT -6
Thanks for your reply. I did try that and the Distribute went much further but then my Norton Anti-Virus blocked it. So I'll see if I can tell Norton to let it through.
|
|
|
Post by n00b on Oct 15, 2021 20:53:02 GMT -6
You might also need to add "(where ever you have rcbasic)\rcbasic\tools\dist\rcbasic_android" to your PATH environment variable.
Windows is really painful to deal with sometimes.
|
|
|
Post by rosy on Oct 20, 2021 14:18:56 GMT -6
For me it still does not work:
RCBASIC_ANDROID_DIR=
'rcbasic_android_build.bat' is not recognized as an internal or external command, operable program or batch file. Error: Failed to build Android Release APK
RESULTS -------------------- Successfully Created Android Debug App Failed to Create Android Release App
Next I set the parameters in the program code, a manual variable and after 1.5h grinding the APK came out. But after installing it comes out SDL error. The phone is quite old ...
|
|
|
Post by n00b on Oct 21, 2021 8:37:01 GMT -6
I am reading into it more now.
In older versions of the build tool I was able to prebuild the rcbasic runtime binary which reduced the amount that had to be done by the build tool itself. But the newer versions of the android sdk has caused this to fail when building the APK.
The build tool itself is written in rcbasic so if you want to see whats going on under the hood you are more than welcome to. In rcbasic\tools\dist there is a file called app_build_gui.bas. On line 13, you can try setting RCBASIC_ANDROID_DIR manually. Compile it after you change it.
I will look into this and see if I can find out why its not being set and upload a fix.
|
|
|
Post by rosy on Oct 21, 2021 12:24:12 GMT -6
I set it manually, but the APK is not working.
|
|
|
Post by rosy on Oct 31, 2021 7:39:51 GMT -6
Already build for Android on Windows?
|
|
|
Post by n00b on Nov 1, 2021 6:03:54 GMT -6
Are you saying you were able to build for Android or are you still having trouble building?
|
|
|
Post by rosy on Nov 1, 2021 6:11:53 GMT -6
I said that it supposedly worked, but the APK reports an error after launching ...
|
|
|
Post by n00b on Nov 1, 2021 14:28:34 GMT -6
What is the error you are getting?
|
|
|
Post by rosy on Nov 1, 2021 15:10:29 GMT -6
I wrote ... "SDL error". dlopen failed : cannot locate symbol "_fwrite_chk" referendet by "/data/app/com.mycompany.myApp.debug-1/lib/amd64/libSDL2_mixer.so"...
or "_fread.chk"...
How are the API versions set now?
|
|
|
Post by n00b on Nov 1, 2021 18:14:02 GMT -6
It could be that you are using an older phone that is not compatible with the version of the API being used. The default API version is 28. If your phone is older than that then it probably won't work. You can go into rcbasic_android_built.bat and change the API version. Its located in rcbasic\tools\dist\rcbasic_android.
I have not tested it with an older API version though so I don't know if it will work.
|
|
|
Post by rosy on Nov 6, 2021 8:14:04 GMT -6
I get an error after changing the minimum and default API to 14 or 21.
The attempt to run on a newer phone (Huawei P20 lite) was also unsuccessful. No messages, only black screen.
After copying RCvasic from F disk to D, build does not work at all.
And, as I said, I can't enter anything on the menu.
|
|
|
Post by n00b on Nov 8, 2021 8:05:52 GMT -6
The API error was something I thought would happen. Newer versions of SDL2 seem to have dropped support for older APIs.
Can you share the code that you are trying to build?
|
|