3

我搜索了为 Android 构建提升的教程。我找到了这个。这似乎是它的教程,因为我发现的所有构建脚本(即这个)都建立在它之上。

它对我不起作用。但是我试图让它工作,它没有。已经很郁闷了

首先是有一个错误告诉我:

    Der Befehl ".." ist entweder falsch geschrieben oder konnte nicht gefunden werden.

这是德语:找不到命令“..”

我不知道那是从哪里来的。它连续出现 4 次。

除了这个错误,我得到了这个错误:

    cc1plus.exe: error: unrecognized command line option "-mthreads"

我在这里找到了一个解决方案: 在 cygwin 上为 android 编译 boost 时无法识别的命令行选项

现在我仍然有“..”-错误和:

    Building the Boost C++ Libraries.


    Performing configuration checks

        - 32-bit                   : yes
        - x86                      : no
        - power                    : no
        - arm                      : yes
    error: No best alternative for libs/context/build/asm_context_sources
        next alternative: required properties: <abi>aapcs <architecture>arm <binary-
    format>elf <toolset>gcc
            not matched
        next alternative: required properties: <abi>aapcs <architecture>arm <binary-
    format>elf <toolset>qcc
            not matched
        next alternative: required properties: <abi>aapcs <architecture>arm <binary-
    format>elf
            not matched
        next alternative: required properties: <abi>o32 <architecture>mips1 <binary-
    format>elf <toolset>gcc
            not matched
        next alternative: required properties: <abi>o32 <architecture>mips1 <binary-
    format>elf <toolset>qcc
            not matched
        next alternative: required properties: <abi>o32 <architecture>mips1 <binary-
    format>elf
            not matched
        next alternative: required properties: <abi>sysv <address-model>32 <architec
    ture>power <binary-format>elf <toolset>gcc
            not matched
        next alternative: required properties: <abi>sysv <address-model>32 <architec
    ture>power <binary-format>elf <toolset>qcc
            not matched
        next alternative: required properties: <abi>sysv <address-model>32 <architec
    ture>power <binary-format>elf
            not matched
        next alternative: required properties: <abi>sysv <address-model>64 <architec
    ture>power <binary-format>elf <toolset>gcc
            not matched
        next alternative: required properties: <abi>sysv <address-model>64 <architec
    ture>power <binary-format>elf <toolset>qcc
            not matched
        next alternative: required properties: <abi>sysv <address-model>64 <architec
    ture>power <binary-format>elf
            not matched

在我不知道的地方,那可能意味着什么。这还不是全部。

这里是整个输出

我做错了什么?

4

1 回答 1

0

用户配置中提到的包含和库路径详细信息与 NDK PATH 不匹配

请检查以下包含路径并根据 NDK 路径更新它

-I$(ANDROID_NDK)/sources/cxx-stl/gnu-libstdc++/4.4.3/include

-I$(ANDROID_NDK)/sources/cxx-stl/gnu-libstdc++/4.4.3/libs/armeabi/include

更新此路径后,您将不会收到错误消息。

于 2013-01-02T13:34:33.333 回答