我搜索了为Android构建boost的教程。我找到了this one。它似乎是它的教程,因为我找到的所有构建脚本(即this one)构建在它上面。
它对我不起作用。但是我尝试让它工作,但事实并非如此。它已经令人沮丧了。
首先,有一个错误告诉我:
Der Befehl ".." ist entweder falsch geschrieben oder konnte nicht gefunden werden.
哪个是德语:找不到命令“..”
我不知道它来自哪里。它连续出现4次。
除了这个错误之外,我还有这个错误:
cc1plus.exe: error: unrecognized command line option "-mthreads"
我在这里找到了解决方案: unrecognized command line option while compiling boost for android on cygwin
现在我仍然有“..” - 错误并且:
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
我不知道这可能意味着什么。这不是一切。
我做错了什么?
答案 0 :(得分:0)
用户配置DOESNOT中提到的包含和库路径详细信息与NDK PATH匹配
plz检查以下包含路径并根据NDK路径更新它
-I $(ANDROID_NDK)/源/ CXX-STL / GNU-的libstdc ++ / 4.4.3 /包括
-I $(ANDROID_NDK)/源/ CXX-STL / GNU-的libstdc ++ / 4.4.3 /库/ armeabi /包括
更新此路径后,您将不会收到错误。