我正在使用此link执行所有步骤。
构建成功但是当我说make -j4
时,我收到以下错误:
frameworks/base/libs/utils/RefBase.cpp: In member function ‘void android::RefBase::weakref_type::trackMe(bool, bool)’:
frameworks/base/libs/utils/RefBase.cpp:483:67: error: passing ‘const android::RefBase::weakref_impl’ as ‘this’ argument of ‘voidandroid::RefBase::weakref_impl::trackMe(bool, bool)’ discards qualifiers [-fpermissive]
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/RefBase.o] Error 1
make: *** Waiting for unfinished jobs....
frameworks/base/libs/utils/ResourceTypes.cpp: In member function ‘void android::ResTable::print(bool) const’:
frameworks/base/libs/utils/ResourceTypes.cpp:4369:84: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
frameworks/base/libs/utils/ResourceTypes.cpp:4375:43: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
frameworks/base/libs/utils/ResourceTypes.cpp: At global scope:
frameworks/base/libs/utils/ResourceTypes.cpp:4429:1: fatal error: opening dependency file out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/ResourceTypes.d: Permission denied
compilation terminated.
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/ResourceTypes.o] Error 1
为什么会出现此错误?有什么我做错的吗?谢谢你的帮助!
答案 0 :(得分:1)
您的错误是:
out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/ResourceTypes.d: Permission denied
确保该文件的权限对于运行该命令的用户是正确的。