简体   繁体   English

使用Android NDK生成的本机可执行文件与使用Raspbian的gcc-arm为Rasberry Pi生成的本机可执行文件有何不同(pi工具)

[英]How is a native executable built using Android NDK different from that built for Rasberry Pi using gcc-arm for Raspbian (pi-tools)

I recently built a simple Hello World program using NDK and tried it to run on my Rasberry Pi2 running Rasberry Linux distribution on a Arm processor. 我最近使用NDK构建了一个简单的Hello World程序,并尝试使其在运行于Arm处理器上的Rasberry Linux发行版的Rasberry Pi2上运行。 But, the OS could not recognize the executable and complained it not to be a valid executable. 但是,操作系统无法识别可执行文件,并抱怨它不是有效的可执行文件。

I am wondering why this is the case? 我想知道为什么会这样吗? Why do we have a different build tool chain for Android and Raspberry even though both are Linux and ARM. 为什么我们都为Linux和Raspberry建立了不同的构建工具链,即使它们都是Linux和ARM。

Android uses armeabi or armeabi-v7a. Android使用armeabi或armeabi-v7a。 On the other hand, Raspberry uses an incompatible gnueabihf ABI. 另一方面,Raspberry使用了不兼容的gnueabihf ABI。 Note that Android has Bionic runtime library, which is not exactly compatible with rest of Linux. 请注意,Android具有Bionic运行时库,该库与Linux的其余部分不完全兼容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法运行使用 gcc 构建的可执行文件 - Unable to run executable built using gcc 从符号表中读取变量的类型,地址,大小。 使用gnu工具(例如gmake或gcc)构建的 - reading type,address,size of variables from symbol table. Which is built using gnu tools (like gmake or gcc) 在 raspberry Pi 3 上使用带有 chromedriver 的 selenium 时出错 - Raspbian Jessie - Error using selenium with chromedriver on raspberry Pi 3 - Raspbian Jessie Make继续使用原生gcc而不是Android NDK - Make keeps using native gcc instead of Android NDK 如何告诉 gcc 停止使用内置函数? - How to tell gcc to stop using built-in functions? 使用arm-linux-androideabi-gcc和android ndk编译对象时出现问题 - Problems compiling object using arm-linux-androideabi-gcc and android ndk 如何使用QEMU模拟Raspberry Pi Raspbian? - How to emulate Raspberry Pi Raspbian with QEMU? Rasberry PI:无法将RPI设置为路由器 - Rasberry PI : Unable to set my RPI as a router Wifi P2P 同时使用 wpa_supplicant 在 rasperry pi 3 Raspbian 上保持 Wifi 连接 - Wifi P2P while maintaining a Wifi connection on rasperry pi 3 Raspbian using wpa_supplicant 使用Android应用程序将命令发送到Raspberry PI - Sending a command to Raspberry PI using an Android App
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM