看到问题点了在这
make: *** No rule to make target `external/alljoyn/alljoyn_core/../common/src/CryptoRSA.cc', needed by `out/target/product/generic/obj/SHARED_LIBRARIES/liballjoyn_intermediates/../common/src/CryptoRSA.o'. Stop.是不没有 对 *.cc文件的编译规则
make: *** No rule to make target `external/alljoyn/alljoyn_core/../common/src/CryptoRSA.cc', needed by `out/target/product/generic/obj/SHARED_LIBRARIES/liballjoyn_intermediates/../common/src/CryptoRSA.o'. Stop.是不没有 对 *.cc文件的编译规则
解决方案 »
- 怎么获取android标准的quick search box的内容
- 你们公司android应用是如何适应不同屏幕的,有什么好方法吗
- 求解:设定默认闹钟铃声需要申明神马权限?
- 关于adapter的getview调用问题
- 设置 android 默认字体的大小
- 关于SlidingDrawer的问题
- 竞OPhone SDN版主 享超豪华礼遇 OPhone SDN 版主火热招募中!!!
- 求android适合我的书和职业生涯的建议,大家可以一起来讨论Andriod的成长之路
- 自定义横向listview响应点击item消息的时候,adapter为空,程序异常
- 网页是根据什么识别终端设备的?
- DLNA协议
- (处女作)我写的男人撑20秒游戏源码欢迎下载免积分,丰富的代码注释
各位好,我在vmware 虚拟机下的ubuntu12.04编译android4.0代码,make -j4 出现下列错误,要怎样解决!!!!!!!!host Java: jsr305lib (out/host/common/obj/JAVA_LIBRARIES/jsr305lib_intermediates/classes)
host Java: antlr (out/host/common/obj/JAVA_LIBRARIES/antlr_intermediates/classes)
target Java: core (out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes)
host Java: dx (out/host/common/obj/JAVA_LIBRARIES/dx_intermediates/classes)
/bin/bash: jar: command not found
make: *** [out/host/common/obj/JAVA_LIBRARIES/jsr305lib_intermediates/javalib.jar] Error 127
make: *** Waiting for unfinished jobs....
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
/bin/bash: jar: command not found
make: *** [out/host/common/obj/JAVA_LIBRARIES/antlr_intermediates/javalib.jar] Error 127
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
/bin/bash: jar: command not found
make: *** [out/host/common/obj/JAVA_LIBRARIES/dx_intermediates/javalib.jar] Error 127
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
/bin/bash: jar: command not found
make: *** [out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes-full-debug.jar] Error 127
配置JDK如下:
#set java environmentJAVA_HOME=/home/test/jdk1.6.0_33export JRE_HOME=/home/test/jdk1.6.0_33/jreexport CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATHexport PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
请问怎么创建这个规则呢?
还有我查了一下 external/alljoyn/common/src/CryptoRSA.cc 根本没有这个文件
apt-get 去
各位好,我在vmware 虚拟机下的ubuntu12.04编译android4.0代码,make -j4 出现下列错误,要怎样解决!!!!!!!!host Java: jsr305lib (out/host/common/obj/JAVA_LIBRARIES/jsr305lib_intermediates/classes)
host Java: antlr (out/host/common/obj/JAVA_LIBRARIES/antlr_intermediates/classes)
target Java: core (out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes)
host Java: dx (out/host/common/obj/JAVA_LIBRARIES/dx_intermediates/classes)
/bin/bash: jar: command not found
make: *** [out/host/common/obj/JAVA_LIBRARIES/jsr305lib_intermediates/javalib.jar] Error 127
make: *** Waiting for unfinished jobs....
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
/bin/bash: jar: command not found
make: *** [out/host/common/obj/JAVA_LIBRARIES/antlr_intermediates/javalib.jar] Error 127
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
/bin/bash: jar: command not found
make: *** [out/host/common/obj/JAVA_LIBRARIES/dx_intermediates/javalib.jar] Error 127
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
/bin/bash: jar: command not found
make: *** [out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes-full-debug.jar] Error 127
配置JDK如下:
#set java environmentJAVA_HOME=/home/test/jdk1.6.0_33export JRE_HOME=/home/test/jdk1.6.0_33/jreexport CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATHexport PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04-415-11M3635)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01-415, mixed mode)
localhost:~ lv$ java -v
Unrecognized option: -v
Could not create the Java virtual machine.
localhost:~ lv$
你是有很多Android.mk文件么?我前几天好像也出现过类似的问题,编译器要编译某个文件,可是这个问题根本不存在,最后我把各个目录下的Android.mk写成了一个,放在工程的根目录下面,然后在编译,最后就没有出现这个问题了。你可以试试。
external/alljoyn/alljoyn_core/src/RemoteEndpoint.h:215: error: ISO C++ forbids declaration of 'GUID' with no type
external/alljoyn/alljoyn_core/src/RemoteEndpoint.h:215: error: invalid use of '::'
external/alljoyn/alljoyn_core/src/RemoteEndpoint.h:215: error: expected ';' before '&' token
external/alljoyn/alljoyn_core/src/RemoteEndpoint.h:222: error: expected ';' before 'const'
In file included from external/alljoyn/alljoyn_core/daemon/DaemonRouter.h:36,
from external/alljoyn/alljoyn_core/daemon/Bus.h:41,
from external/alljoyn/alljoyn_core/daemon/BTController.h:42,
from external/alljoyn/alljoyn_core/daemon/BTController.cc:36:
external/alljoyn/alljoyn_core/daemon/NameTable.h:85: error: expected unqualified-id before '&' token
external/alljoyn/alljoyn_core/daemon/NameTable.h:85: error: expected ')' before '&' token
external/alljoyn/alljoyn_core/daemon/NameTable.h:85: error: expected ';' before '&' token
In file included from external/alljoyn/alljoyn_core/daemon/Bus.h:41,
from external/alljoyn/alljoyn_core/daemon/BTController.h:42,
from external/alljoyn/alljoyn_core/daemon/BTController.cc:36:
external/alljoyn/alljoyn_core/daemon/DaemonRouter.h:87: error: expected unqualified-id before '&' token
external/alljoyn/alljoyn_core/daemon/DaemonRouter.h:87: error: expected ')' before '&' token
external/alljoyn/alljoyn_core/daemon/DaemonRouter.h:87: error: expected ';' before '&' token
external/alljoyn/alljoyn_core/daemon/DaemonRouter.h:94: error: expected ';' before 'qcc'
make: *** [out/target/product/generic/obj/EXECUTABLES/alljoyn-daemon_intermediates/daemon/BTController.o] Error 1
external/alljoyn/alljoyn_core/src/RemoteEndpoint.h:215: error: invalid use of '::'
external/alljoyn/alljoyn_core/src/RemoteEndpoint.h:215: error: expected ';' before '&' token
external/alljoyn/alljoyn_core/src/RemoteEndpoint.h:222: error: expected ';' before 'const'
In file included from external/alljoyn/alljoyn_core/daemon/DaemonRouter.h:36,
from external/alljoyn/alljoyn_core/daemon/Bus.h:41,
from external/alljoyn/alljoyn_core/daemon/BTController.h:42,
from external/alljoyn/alljoyn_core/daemon/BTController.cc:36:
external/alljoyn/alljoyn_core/daemon/NameTable.h:85: error: expected unqualified-id before '&' token
external/alljoyn/alljoyn_core/daemon/NameTable.h:85: error: expected ')' before '&' token
external/alljoyn/alljoyn_core/daemon/NameTable.h:85: error: expected ';' before '&' token
In file included from external/alljoyn/alljoyn_core/daemon/Bus.h:41,
from external/alljoyn/alljoyn_core/daemon/BTController.h:42,
from external/alljoyn/alljoyn_core/daemon/BTController.cc:36:
external/alljoyn/alljoyn_core/daemon/DaemonRouter.h:87: error: expected unqualified-id before '&' token
external/alljoyn/alljoyn_core/daemon/DaemonRouter.h:87: error: expected ')' before '&' token
external/alljoyn/alljoyn_core/daemon/DaemonRouter.h:87: error: expected ';' before '&' token
external/alljoyn/alljoyn_core/daemon/DaemonRouter.h:94: error: expected ';' before 'qcc'
make: *** [out/target/product/generic/obj/EXECUTABLES/alljoyn-daemon_intermediates/daemon/BTController.o] Error 1
如果仍然问题,我觉得是你的c++编译器也就是g++的版本问题,可能会是太高了,你试着降一下版本,问题应该可以解决。
还有就是需要给你的gcc 降级试试看,g++都降级