subsurface-mobile build error undefined reference to 'rand'

Lubomir I. Ivanov neolit123 at gmail.com
Tue Jun 20 05:05:53 PDT 2017


On 20 June 2017 at 14:50, Rick Walsh <rickmwalsh at gmail.com> wrote:
>
> libgit builds ok (including cache.c), and the verbose option shows that it
> is building for Android platform api 24, whereas subsurface-mobile was being
> built with api 16.
>
> I'm sure there's some way to force libgit to build with api 16 (maybe
> removing all later platforms from android-ndk-r13b/platforms), but I went
> the other way, and changed --api=16 to --api=24 in line 124 of build.sh.  I
> can now build all the subsurface-mobile code.

seems like the correct approach.
the error was hinting towards the wrong toolchain or platform library
being used.

>
> The Android packaging stumbled with an error about gradle, openjdk and
> cacerts.  I "solved" it by downgrading openjdk from version
> 1:1.8.0.131-1.b12.fc25.x86_64 to 1:1.8.0.111-1.b16.fc25.x86_64 after reading
> this bug report https://github.com/gradle/gradle/issues/1782
>
> Gradle(?) is now stuck at:
> Checking the license for package Android SDK Platform 24 in
> /home/rick/src/subsurface/../android-sdk-linux/licenses
> License for package Android SDK Platform 24 accepted.
> Preparing "Install Android SDK Platform 24".
>
> I think it might be hanging due to the insanely slow and unreliable internet
> connection where I'm staying at the moment.
>

i really don't know what's causing that.
i've encountered the problem with auto-accepting the license once, but
this step seems to pass for you.

lubomir
--


More information about the subsurface mailing list