编译时出现这种情错误怎么解决

编译安装或者制作Deb包
回复
kokuty
帖子: 15
注册时间: 2015-03-07 10:58
系统: wind7
送出感谢: 0
接收感谢: 0

编译时出现这种情错误怎么解决

#1

帖子 kokuty » 2016-01-08 10:00

libcore/luni/src/main/native/Register.cpp:36: error: undefined reference to 'register_android_system_OsConstants(_JNIEnv*)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/home/jukie/android/system/out/host/linux-x86/obj32/lib/libjavacore.so] Error 1

每次走到这里就走不下去,网上的了解决说改了
did u find a solution to it? I managed to find one. the error most probably lies in the folder <SOURCEDIR>/out/host/linux-x86/obj32/SHARED_LIBRARIES/libjavacore_intermediates/luni/src/main/native

there, you might file a file named register_android_system_OsConstants.d which was supposed to be register_android_system_OsConstants.P

somehow the file was named with wrong extension.
这样改了,还是不行。
具体是怎么改的。
回复

回到 “编译或打包”