在Ubuntun下Windows分区无法编译android

Issue

        In Ubuntun11.04,sometimes my /home disk  is not enough,so switch to /media/d: or /meida/e: to make Android,but  there are errors:

build for the simulator or the device?
     1. Device
     2. Simulator
Which would you like? [1] 1
/bin/bash: prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: Permission denied
/bin/bash: prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: Permission denied
/bin/bash: build/core/find-jdk-tools-jar.sh: Permission denied
/bin/bash: prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: Permission denied

Today I try toget android source code from http://source.android.com/source/downloading.html,when exec
 repo init -u https://android.googlesource.com/platform/manifest

get error:

fatal: unable to start /media/d:/DroidSourceFromGoogle/.repo/repo/main.py
fatal: [Errno 13] Permission denied

   But  in /home/, above 2 operations are  OK

TroubleShooting

   add following conten in /etc/fstab and restart:

#added by yuebao @20120312:enable make android in d:/e:
/dev/sda5 /media/d: ntfs user,exec,uid=yuebao,gid=yuebao 0 1
/dev/sda6 /media/e: ntfs user,exec,uid=yuebao,gid=yuebao 0 1

*change your uid & gid

Reference

ubuntu 系统中codeblocks 设置问题——解决编译找不到编译器路径,运行时出现permission denied情况




你可能感兴趣的:(在Ubuntun下Windows分区无法编译android)