草庐IT

androideabi

全部标签

android - 为什么arm-linux-androideabi-gcc强制执行-fpic?

我很惊讶地看到gcc强制代码与位置无关,即使在命令行中没有明确提供这样的标志。我怀疑这可能与Android的动态加载器的某些期望有关(例如,对重定位类型的期望和将代码放在它想要的任何地方的自由),但我不确定。谁能解释为什么会这样?$arm-linux-androideabi-gcc--version|grepGCCarm-linux-androideabi-gcc(GCC)4.4.3$arm-linux-androideabi-gcc-v-Smain.c|&grepfpic/home1/local64/android-toolchain/bin/../libexec/gcc/arm-l

android - 配置 : error: C compiler cannot create executables when configuring for Android

我已经下载了CPP单元测试框架并尝试为Android编译。但是,面临配置问题。我试着制作Standalonetoolchain还尝试配置但总是失败sh-4.1$./configureCXX=arm-linux-androideabi-g++CC=arm-linux-androideabi-gccCPP=arm-linux-androideabi-g++CXXCPP=arm-linux-androideabi-g++checkingforaBSD-compatibleinstall.../usr/bin/install-ccheckingwhetherbuildenvironmentis

android NDK fatal error : stdio. h : No such file or directory #include <stdio. h>

我正尝试在我的Archlinux中为我的Qtandroid项目构建QPSQL驱动程序,但它经常失败configure:error:Cpreprocessor"/opt/AndroidSDK/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-cpp"failssanitycheck所以我尝试了简单的helloWorld程序:-%/opt/AndroidSDK/ndk-bundle/toolchains/arm-linux-androideabi-4

android - std::map 链接器错误 ndk r8c with APP_STL := gnuSTL_static

我在native应用程序中链接STL时遇到一些问题。map::operator[]和map::insert的链接失败,而其他map函数的链接成功。我的Application.mk是:APP_STL:=gnustl_staticAPP_CPPFLAGS:=-fexceptions-frttiAPP_CPPFLAGS+=-g3APP_CPPFLAGS+=-DDEBUGAPP_ABI:=armeabi-v7aAPP_PLATFORM:=android-14NDK_TOOLCHAIN_VERSION:=4.6native代码包含两个文件夹级别。我为每个内部文件夹创建了一个Android.mk文

Android NDK eabi - 如何让 ndk 知道使用 hard fp?

我已经使用“-mfloat-abi=hard”参数预构建库(libxxx.so)。现在我想用这个库编译我的native代码并用ndk构建共享库(.so)。应用程序.mk:APP_ABI:=armeabi-v7aAndroid.mk:LOCAL_PATH:=$(callmy-dir)include$(CLEAR_VARS)LOCAL_MODULE:=xxxLOCAL_SRC_FILES:=libxxx.soinclude$(PREBUILT_SHARED_LIBRARY)include$(CLEAR_VARS)LOCAL_MODULE:=xxx_wrapperLOCAL_SRC_FILE

android - 构建cocos2d-x android项目失败: Unknown EABI object attribute 44

今天,我使用cygwin和ndk-r8交叉构建我的cocos2d-xandroid项目:HelloCpp,我失败并得到一些错误,如:UnknownEABIobjectattribute44这是来自cygwin的消息:StaticLibrary:libcocos2d.aSharedLibrary:libhellocpp.soE:/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-l

android - 在 Mac 上编译 x264 : "No working C compiler found" and "arm-linux-androideabi-gcc: command not found"

我正在尝试为Android编译x264库,遵循post.我已经克隆了x264项目gitclonegit://git.videolan.org/x264.git并尝试使用以下配置进行编译:NDK=~/development/android-ndk-r10cTOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64PLATFORM=$NDK/platforms/android-21/arch-arm./configure\--cross-prefix=$TOOLCHAIN/bin/arm-linux-a

android - 如何在 Android 应用程序中构建 ffmpeg?

通过以下步骤成功构建ffmpeg后http://stackoverflow.com/questions/22471514/ffmpeg-build-output-is-not-showingNowIhavecopyincludeandall.afileintomyJNIfolder.andmyAndroid.mkfileisas:-LOCAL_PATH:=$(callmy-dir)include$(CLEAR_VARS)LOCAL_MODULE:=ffmpegutilsLOCAL_SRC_FILES:=tutorial02.cLOCAL_C_INCLUDES:=$(LOCAL_PATH

No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi

1.我们在跑新工程的时候,在编译的时候,会有一下fail错误提示:NotoolchainsfoundintheNDKtoolchainsfolderforABIwithprefix:arm-linux-androideabi参数这个问题是因为ndk的版本和build不匹配导致的。常见的就是要动态指定ndk的版本即可,配置如下:1.该错误是因为NDK工具导致的。我们可以在build的文件中指定配置一下即可。NotoolchainsfoundintheNDKtoolchainsfolderforABIwithprefix:arm-linux-androideabi_linux新增:ndkVersi

android - 为什么 arm-linux-androideabi-gcc 给出 iostream 错误

我的电脑上安装了arm-linux-androideabi-gcc,但是当我尝试编译一个简单的hellowworld时,它给出了错误(我选择不使用ndk-build)。我只想从命令行编译...#includeusingnamespacestd;intmain(){return0;}我收到了这个错误:error:iostream:Nosuchfileordirectory我在~/android-ndk-r8b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin中有arm-linux-androideabi-gcc。我