简体   繁体   English

如何在FAT上构建Android NDK应用

[英]How to build an Android NDK app on FAT

I'm using the FAT32 file system in Linux (as I need to also access it on Windows and OSX), but when I compile with ndk-build I get the error 我在Linux中使用FAT32文件系统(因为我也需要在Windows和OSX上访问它),但是当我使用ndk-build编译时,出现错误

install: setting permissions for `./libs/armeabi/libfoo.so': Operation not permitted

I gather it's trying to set more restrictive permissions for the newly-created library, however you cannot change permissions on files in a FAT partition. 我收集到它正在尝试为新创建的库设置更多的限制性权限,但是您不能更改FAT分区中文件的权限。

Is there any workaround, such as flags in the toolchain to stop it trying to change files' permissions? 是否有任何解决方法,例如工具链中的标志以阻止其尝试更改文件的权限? Or perhaps something in Linux to fake a successful permission change? 还是Linux中有一些伪造成功的权限更改的东西?

You might try running the NDK build under fakeroot , although I've never tried that and not sure it is applicable. 您可以尝试在fakeroot下运行NDK构建,尽管我从未尝试过并且不确定它是否适用。

A much better solution IMHO would be to use ext3 and install drivers to access ext3 file system from Windows and MacOSX: 恕我直言,更好的解决方案是使用ext3并安装驱动程序以从Windows和MacOSX访问ext3文件系统:

You can use Ext2 IFS for Windows driver to access the files from Windows and extfsx or fuse-ext2 to do the same from MacOSX 您可以使用Windows的Ext2 IFS驱动程序从Windows访问文件,而extfsx或fuse-ext2可以从MacOSX进行操作

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM