我已将 Android 源代码下载到我的 Mac。当我去构建时,我收到了这条消息:
$make -j4
Checking build tools versions...
build/core/main.mk:90: ************************************************************
build/core/main.mk:91: You are building on a case-insensitive filesystem.
build/core/main.mk:92: Please move your source tree to a case-sensitive filesystem.
build/core/main.mk:93: ************************************************************
build/core/main.mk:94: *** Case-insensitive filesystems not supported. Stop.
然后我意识到我错过了创建区分大小写的图像。所以我创建了一个新的,如 http://source.android.com/source/initializing.html 中所述,像这样:
hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 40g ~/android.dmg
...但我无法在其中创建任何文件夹,它说:
mkdir android
mkdir: android: Read-only file system
如何将在我的 Mac 操作系统上下载的 Android 源代码移动到新创建的区分大小写的图像中?
最佳答案
我遇到了同样的问题。我发现如果你使用 sudo 那么问题就消失了。
请注意 Google 分步指南中的 #
字符:
# hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 40g ~/android.dmg
function mountAndroid { hdiutil attach ~/android.dmg -mountpoint /Volumes/android; }
所以你必须使用 sudo
运行命令:
sudo hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 40g ~/android.dmg
sudo hdiutil attach ~/android.dmg -mountpoint /Volumes/android
关于android - 将 Android 源移动到区分大小写的图像中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8341375/