Ubuntu编译android失败,没报错~~
我的环境是Ubuntu10.1 jdk1.6 按照各大攻略下载好了源码,开始编译其中遇到如下输出后,跳出编译
求教~~~~
--------------------编程问答-------------------- 没问题的 --------------------编程问答-------------------- 可是就是停了啊。编译没完结。 --------------------编程问答-------------------- 看到问题点了
Notice file: external/netperf/NOTICE -- out/target/product/generic/obj/NOTICE_FILES/src//system/xbin/netserver.txt
Notice file: system/extras/procmem/NOTICE -- out/target/product/generic/obj/NOTICE_FILES/src//system/xbin/procmem.txt
Notice file: system/extras/procrank/NOTICE -- out/target/product/generic/obj/NOTICE_FILES/src//system/xbin/procrank.txt
Notice file: frameworks/base/cmds/rawbu/NOTICE -- out/target/product/generic/obj/NOTICE_FILES/src//system/xbin/rawbu.txt
Notice file: external/dropbear/NOTICE -- out/target/product/generic/obj/NOTICE_FILES/src//system/xbin/scp.txt
Notice file: system/extras/showmap/NOTICE -- out/target/product/generic/obj/NOTICE_FILES/src//system/xbin/showmap.txt
Notice file: system/extras/showslab/NOTICE -- out/target/product/generic/obj/NOTICE_FILES/src//system/xbin/showslab.txt
Notice file: external/sqlite/dist/NOTICE -- out/target/product/generic/obj/NOTICE_FILES/src//system/xbin/sqlite3.txt
Notice file: external/dropbear/NOTICE -- out/target/product/generic/obj/NOTICE_FILES/src//system/xbin/ssh.txt
Notice file: external/strace/NOTICE -- out/target/product/generic/obj/NOTICE_FILES/src//system/xbin/strace.txt
Notice file: system/extras/su/NOTICE -- out/target/product/generic/obj/NOTICE_FILES/src//system/xbin/su.txt
Notice file: external/tcpdump/NOTICE -- out/target/product/generic/obj/NOTICE_FILES/src//system/xbin/tcpdump.txt
Notice file: external/libpcap/NOTICE -- out/target/product/generic/obj/NOTICE_FILES/src//system/lib/libpcap.a.txt
Notice file: system/extras/timeinfo/NOTICE -- out/target/product/generic/obj/NOTICE_FILES/src//system/xbin/timeinfo.txt
Notice file: external/zlib/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//bin/minigzip.txt
host Java: core-hostdex (out/host/common/obj/JAVA_LIBRARIES/core-hostdex_intermediates/classes)
host Java: cts-api-coverage (out/host/common/obj/JAVA_LIBRARIES/cts-api-coverage_intermediates/classes)
host Java: host-libprotobuf-java-2.3.0-lite (out/host/common/obj/JAVA_LIBRARIES/host-libprotobuf-java-2.3.0-lite_intermediates/classes)
Note: external/protobuf/java/src/main/java/com/google/protobuf/GeneratedMessageLite.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
host Java: host-libprotobuf-java-2.3.0-micro (out/host/common/obj/JAVA_LIBRARIES/host-libprotobuf-java-2.3.0-micro_intermediates/classes)
Note: external/protobuf/java/src/main/java/com/google/protobuf/micro/CodedInputStreamMicro.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
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.
make: *** Waiting for unfinished jobs....
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.
在这
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文件的编译规则 --------------------编程问答-------------------- 机器够强大不,貌似4个G的内存才能行啊。 --------------------编程问答-------------------- --------------------编程问答-------------------- 按照google推荐,最好用Ubuntu 10.04版本 --------------------编程问答--------------------
各位好,我在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 environment
JAVA_HOME=/home/test/jdk1.6.0_33
export JRE_HOME=/home/test/jdk1.6.0_33/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH --------------------编程问答--------------------
请问怎么创建这个规则呢?
还有我查了一下 external/alljoyn/common/src/CryptoRSA.cc 根本没有这个文件 --------------------编程问答--------------------
你这个明显是没有 jar 命令
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 environment
JAVA_HOME=/home/test/jdk1.6.0_33
export JRE_HOME=/home/test/jdk1.6.0_33/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH --------------------编程问答--------------------
虚拟机下玩这个,机器配置很高啊 --------------------编程问答--------------------
找找这个文件吧,目标规则有,就是没有文件
--------------------编程问答--------------------
再你得环境里,java -version 和jar -v 俩个分别输出什么 --------------------编程问答-------------------- localhost:~ lv$ java -version
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$
--------------------编程问答-------------------- jdk 没有装好? --------------------编程问答--------------------
你是有很多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: 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 --------------------编程问答--------------------
我跟你一样的错....你解决了没????????????????? --------------------编程问答--------------------
如果是android4.0的代码是可以编译的,在编译请不要使用make -j4 换成make -j1,表示开单线程,因为可能存在依赖问题。
如果仍然问题,我觉得是你的c++编译器也就是g++的版本问题,可能会是太高了,你试着降一下版本,问题应该可以解决。 --------------------编程问答-------------------- 好深奥啊 --------------------编程问答-------------------- 这种情况可能是:假如你是第一次编译的话,建议make就好了,不要4线程去编译;会有依赖关系;
还有就是需要给你的gcc 降级试试看,g++都降级 --------------------编程问答-------------------- 10.04是比较稳定的版本哦
补充:移动开发 , Android