Problems building Subsurface for Android

Dirk Hohndel dirk at hohndel.org
Fri Feb 3 09:41:52 PST 2017


> On Feb 3, 2017, at 9:24 AM, Willem Ferguson <willemferguson at zoology.up.ac.za> wrote:
> 
> When running android-build.sh, I had to install parts of the android SDK. When running the script a second time I get:
> 
> Copying gdbserver into package.
>  -- Copied /home/willem/src/subsurface-mobile-build-arm//libs/armeabi-v7a/gdbserver
>  -- Copied /home/willem/src/subsurface-mobile-build-arm//libs/armeabi-v7a/libgdbserver.so
> Copying 2 external libraries to package.
>  -- Copied /home/willem/src/subsurface-mobile-build-arm//libs/armeabi-v7a/libssl.so
>  -- Copied /home/willem/src/subsurface-mobile-build-arm//libs/armeabi-v7a/libcrypto.so
> Copying Android sources from project.
>  -- Copied /home/willem/src/subsurface-mobile-build-arm/AndroidManifest.xml
>  -- Copied /home/willem/src/subsurface-mobile-build-arm/res/drawable/splash.xml
>  -- Copied /home/willem/src/subsurface-mobile-build-arm/res/drawable/subsurface_mobile_splash.9.png
>  -- Copied /home/willem/src/subsurface-mobile-build-arm/res/drawable-hdpi/subsurface_mobile_icon.png
>  -- Copied /home/willem/src/subsurface-mobile-build-arm/res/drawable-hdpi/subsurface_mobile_splash.9.png
>  -- Copied /home/willem/src/subsurface-mobile-build-arm/res/drawable-mdpi/subsurface_mobile_icon.png
>  -- Copied /home/willem/src/subsurface-mobile-build-arm/res/drawable-mdpi/subsurface_mobile_splash.9.png
>  -- Copied /home/willem/src/subsurface-mobile-build-arm/res/drawable-nodpi/subsurface_mobile_splash.9.png
>  -- Copied /home/willem/src/subsurface-mobile-build-arm/res/drawable-xhdpi/subsurface_mobile_icon.png
>  -- Copied /home/willem/src/subsurface-mobile-build-arm/res/drawable-xhdpi/subsurface_mobile_splash.9.png
>  -- Copied /home/willem/src/subsurface-mobile-build-arm/res/drawable-xxhdpi/subsurface_mobile_icon.png
>  -- Copied /home/willem/src/subsurface-mobile-build-arm/res/drawable-xxhdpi/subsurface_mobile_splash.9.png
>  -- Copied /home/willem/src/subsurface-mobile-build-arm/res/drawable-xxxhdpi/subsurface_mobile_icon.png
>  -- Copied /home/willem/src/subsurface-mobile-build-arm/res/drawable-xxxhdpi/subsurface_mobile_splash.9.png
>  -- Copied /home/willem/src/subsurface-mobile-build-arm/res/values/apptheme.xml
>  -- Copied /home/willem/src/subsurface-mobile-build-arm/res/values/strings.xml
> /home/willem/src/subsurface/../android-ndk-r13b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-strip: unable to copy file '/home/willem/src/subsurface-mobile-build-arm//libs/armeabi-v7a/libcrypto.so'; reason: Permission denied
> /home/willem/src/subsurface/../android-ndk-r13b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-strip: unable to copy file '/home/willem/src/subsurface-mobile-build-arm//libs/armeabi-v7a/libssl.so'; reason: Permission denied
> 
> After changing the permissions I have:
> 
> ~/src/subsurface-mobile-build-arm/libs$ chmod -R 777 armeabi-v7a

ARGL. Don't do stuff like this. Seriously.

> ~/src/subsurface-mobile-build-arm/libs/armeabi-v7a$ ls -l
> total 32588
> .... etc
> -rwxrwxrwx 1 willem willem 2005388 Feb  3 18:14 libQt5Quick.so
> -rwxrwxrwx 1 willem willem  189640 Feb  3 18:14 libQt5Svg.so
> -rwxrwxrwx 1 willem willem 3417492 Feb  3 18:14 libQt5Widgets.so
> -rwxrwxrwx 1 willem willem  388288 Feb  3 18:14 libssl.so
> -rwxrwxrwx 1 willem willem 9933316 Feb  3 18:14 libsubsurface-mobile.so
> 
> and:
> 
> ~/src/android-ndk-r13b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin$ ls -l
> total 29252
> .... etc
> -rwxrwxrwx 1 willem willem  441976 Oct 12 15:13 arm-linux-androideabi-readelf
> -rwxrwxrwx 1 willem willem  735256 Oct 12 15:13 arm-linux-androideabi-size
> -rwxrwxrwx 1 willem willem  734584 Oct 12 15:13 arm-linux-androideabi-strings
> -rwxrwxrwx 1 willem willem  920600 Oct 12 15:13 arm-linux-androideabi-strip
> 
> And still the copy gives the same error. I see no signs of disk space problems.
> 
> I need advice from a person more experienced than myself.

It should still create a working .apk - did you check that?

/D


More information about the subsurface mailing list