|
Post by gloomshroud on Oct 9, 2018 11:20:16 GMT -6
Has anyone got to build successfully on Android? I keep running into errors. I'm on Ubuntu Budgie 18.04.
First I had Gradle versioning issues, then I had a c++_static issue, and now I'm having a GCC vs. Clang issue. This last one is the one I can't seem to resolve. It's an NDK thing, but the last time I did any serious Android development was with eclipse. Not sure how to get around in Studio.
TIA!
|
|
|
Post by n00b on Oct 9, 2018 15:52:12 GMT -6
Hey gloomshroud. First of all welcome to the forum. On your Android question you don't need GCC, Clang, or NDK. Just download android studio and you will be good to go. Once you have it installed, I have a video on how to build for Android on my youtube channel. Android build
|
|
|
Post by gloomshroud on Oct 10, 2018 10:00:06 GMT -6
Thank you for your reply!
Yes, I downloaded the build and was following your videos when all these errors happened. It is Android Studio that is throwing the errors, in fact. Attached is a screenshot of the error as it appears. Again, I think all of this may stem from the fact that I'm using Linux, whereas on your build you're using Windows (based on the video). I could be wrong, of course, as AS does a good job of being platform agnostic.
Furthermore, I'm not particularly fond of the Gradle build system. While it's fantastic for large and enterprise-scale projects, it is more trouble than it's worth on smaller projects like my own. On to the problem at hand: The first problem I had was, as you said in the video, to do with Maven. I had to add the Maven repo to get the proper source. That was fine. I resolved it just as you say in the video. The second problem is with the NDK Toolchain. It is indicating that the GNU compiler is no longer supported. Upon further research, I learned that Native builds in Android use Clang now. The error for this problem is gradle2.png.
So then I received the next error, which is where I'm stuck. This error is found within the files you've provided with the project, as indicated by the screenshot. I must confess, I'm at a TOTAL loss. I see my NDK_PROJECT_PATH is null value, so that may be part of the problem. Not sure. See gradle3.png for a screenshot of the error.
Attachments:
|
|
|
Post by n00b on Oct 10, 2018 10:36:29 GMT -6
I think a big part of your problem might be that you are trying to build it with NDK. The project file is already built. You just need android studio to create the APK. I actually do all my development on Ubuntu so I will make a video tonight when I get home from work. I was going to put 18.04 on my laptop tonight so I will record on that so you can see the entire process from a fresh install.
|
|
|
Post by gloomshroud on Oct 10, 2018 10:38:00 GMT -6
Oh awesome! Thank you! I am using Ubuntu Budgie 18.04 myself. That will be very helpful. And yes, I think I completely misunderstood then, as I am indeed trying to build the project. It's simply the tool we'll use to create the APK. Got it! That makes life so much simpler. I feel like a dunce. Haha. Thank you, n00b!
EDIT: On an unrelated note, I also followed your Geany setup tutorial, which works well, but some of the keywords in RC Basic are unsupported. I can build and run just fine, but I like my syntactic sugar, what can I say? I am going to try and make a config file (at least for Linux) that will take all the keywords used into account (as it currently reads them like FreeBASIC).
|
|
|
Post by tbird on Oct 10, 2018 12:41:53 GMT -6
Did you rename the configuration file that came with the download to overwrite the free basic one?
|
|
|
Post by gloomshroud on Oct 10, 2018 13:13:37 GMT -6
|
|
|
Post by tbird on Oct 10, 2018 14:16:16 GMT -6
Not to hijack the thread, but n00b should see it either way and the title is fitting. What API level is the project for android, or where can I find out. Thanks.
Update: Found it under Gradle, under project window.
|
|
|
Post by n00b on Oct 10, 2018 22:20:29 GMT -6
I started working on the video but I have been running into some problems on Ubuntu as well. I am going to need a few days to troubleshoot it. Its probably something small I missed. This is the first time its been on gradle because every other release was using the SDK tools with eclipse and ant. I really hate gradle.
|
|