[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building on android....

From: David Chisnall
Subject: Re: Building on android....
Date: Wed, 13 Feb 2019 14:20:31 +0000
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0

As I understand it (and this is based on looking a few years ago, so may be wrong now) the NDK doesn't provide any C++ environment by default, you have to explicitly opt in to one. It used to provide a choice of two, I don't know if it still does.


On 13/02/2019 12:41, Gregory Casamento wrote:
A little more context...  my build environment is a MacPro 2010 running the latest version of Mojave.  I have downloaded and installed the latest of Android studio and installed the latest SDK and NDK using the menu under tools and the SDK manager.  The version of the NDK I'm using is 19.0.5232133.   I am utterly stumped as to why this is not working. Also, it seems as though Ivan's installation of this is working which seems to indicate that this is a configuration issue.

Any input would be appreciated.

On Wed, Feb 13, 2019 at 7:09 AM Gregory Casamento <address@hidden <mailto:address@hidden>> wrote:

    ### Build libobjc2

    -- The ASM compiler identification is Clang

    -- Found assembler:

    -- Check for working C compiler:

    -- Check for working C compiler:
    -- works

    -- Detecting C compiler ABI info

    -- Detecting C compiler ABI info - done

    -- Detecting C compile features

    -- Detecting C compile features - done

    -- Check for working CXX compiler:

    -- Check for working CXX compiler:
    -- works

    -- Detecting CXX compiler ABI info

    -- Detecting CXX compiler ABI info - done

    -- Detecting CXX compile features

    -- Detecting CXX compile features - done

    -- Testing C++ interop

    -- Testing C++ standard library

    -- No useable C++ runtime found

    -- Looking for pthread.h

    -- Looking for pthread.h - found

    -- Looking for pthread_create

    -- Looking for pthread_create - found

    -- Found Threads: TRUE

    -- GNUstep install type set to NONE



    -- Configuring done

    -- Generating done

    -- Build files have been written to:


    [1/1] Linking CXX executable test_cxx_runtime

    FAILED: test_cxx_runtime

    : &&
    -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables
    -fstack-protector-strong -no-canonical-prefixes -mfpu=vfpv3-d16
    -fno-addrsig -mthumb -Wa,--noexecstack -Wformat
    -Werror=format-security -stdlib=libc++-Wl,--exclude-libs,libgcc.a
    -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id
    -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack
    -Wl,-z,relro -Wl,-z,now -Wl,--gc-sections
    test_cxx_runtime-latomic -lm && :

    for type_info2: error: undefined reference to
    'std::type_info::__do_upcast(__cxxabiv1::__class_type_info const*,
    void**) const'

    clang++: error: linker command failed with exit code 1 (use -v to
    see invocation)

    ninja: build stopped: subcommand failed.


I am running into the above error when trying to build for Android. I have the latest ndk and sdk installed with Android studio.  Does
    anyone have any idea offhand why C++ isn't finding it's runtime?   I
    will attach the build script I am using to generate the ninja script....


-- Gregory Casamento
    GNUstep Lead Developer / OLC, Principal Consultant

Gregory Casamento
GNUstep Lead Developer / OLC, Principal Consultant <> - <> <>

Gnustep-dev mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]