Ubuntu编译android失败,没报错~~

chageoni 2012-07-03 09:15:26
我的环境是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.
...全文
1397 24 打赏 收藏 转发到动态 举报
写回复
用AI写文章
24 条回复
切换为时间正序
请发表友善的回复…
发表回复
l01011 2013-12-20
  • 打赏
  • 举报
回复
10.04是比较稳定的版本哦
yisiyou 2013-12-18
  • 打赏
  • 举报
回复
好深奥啊
Fast Boat 2013-12-18
  • 打赏
  • 举报
回复
这种情况可能是:假如你是第一次编译的话,建议make就好了,不要4线程去编译;会有依赖关系; 还有就是需要给你的gcc 降级试试看,g++都降级
hello_kitty8888 2012-10-13
  • 打赏
  • 举报
回复
[Quote=引用 19 楼 的回复:]

最新的错误。大家帮看看

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: invali……
[/Quote]


如果是android4.0的代码是可以编译的,在编译请不要使用make -j4 换成make -j1,表示开单线程,因为可能存在依赖问题。
如果仍然问题,我觉得是你的c++编译器也就是g++的版本问题,可能会是太高了,你试着降一下版本,问题应该可以解决。
llller 2012-10-12
  • 打赏
  • 举报
回复
[Quote=引用 19 楼 的回复:]

最新的错误。大家帮看看

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: invali……
[/Quote]

我跟你一样的错....你解决了没?????????????????
chageoni 2012-07-12
  • 打赏
  • 举报
回复
最新的错误。大家帮看看

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
chageoni 2012-07-12
  • 打赏
  • 举报
回复
最新的错误
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
chageoni 2012-07-09
  • 打赏
  • 举报
回复
请大家帮忙看下,楼主我的问题吧。。。。
如果是文件缺失的话,我去找了,没能找到文件
veryitman 2012-07-06
  • 打赏
  • 举报
回复
jdk 没有装好?
mr_president 2012-07-06
  • 打赏
  • 举报
回复
[Quote=引用 9 楼 的回复:]

引用 7 楼 的回复:
各位好,我在vmware 虚拟机下的ubuntu12.04编译android4.0代码,make -j4 出现下列错误,要怎样解决!!!!!!!!

host Java: jsr305lib (out/host/common/obj/JAVA_LIBRARIES/jsr305lib_intermediates/classes)
host Java: antlr ……
[/Quote]

你是有很多Android.mk文件么?我前几天好像也出现过类似的问题,编译器要编译某个文件,可是这个问题根本不存在,最后我把各个目录下的Android.mk写成了一个,放在工程的根目录下面,然后在编译,最后就没有出现这个问题了。你可以试试。
lvyile_cocoachina 2012-07-05
  • 打赏
  • 举报
回复
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$
念茜 2012-07-04
  • 打赏
  • 举报
回复
[Quote=引用 10 楼 的回复:]
各位好,我在vmware 虚拟机下的ubuntu12.04编译android4.0代码,make -j4 出现下列错误,要怎样解决!!!!!!!!

host Java: jsr305lib (out/host/common/obj/JAVA_LIBRARIES/jsr305lib_intermediates/classes)
host Java: antlr (out/host/commo……
[/Quote]
再你得环境里,java -version 和jar -v 俩个分别输出什么
念茜 2012-07-04
  • 打赏
  • 举报
回复
[Quote=引用 8 楼 的回复:]

引用 3 楼 的回复:

看到问题点了

在这
make: *** No rule to make target `external/alljoyn/alljoyn_core/../common/src/CryptoRSA.cc', needed by `out/target/product/generic/obj/SHARED_LIBRARIES/liballjoyn_interm……
[/Quote]
找找这个文件吧,目标规则有,就是没有文件
thl789 2012-07-03
  • 打赏
  • 举报
回复
没问题的
yrnaaa 2012-07-03
  • 打赏
  • 举报
回复
[Quote=引用 10 楼 的回复:]
各位好,我在vmware 虚拟机下的ubuntu12.04编译android4.0代码,make -j4 出现下列错误,要怎样解决!!!!!!!!

host Java: jsr305lib (out/host/common/obj/JAVA_LIBRARIES/jsr305lib_intermediates/classes)
host Java: antlr (out/host/commo……
[/Quote]
虚拟机下玩这个,机器配置很高啊
chen8867 2012-07-03
  • 打赏
  • 举报
回复

各位好,我在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
chageoni 2012-07-03
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 的回复:]
各位好,我在vmware 虚拟机下的ubuntu12.04编译android4.0代码,make -j4 出现下列错误,要怎样解决!!!!!!!!

host Java: jsr305lib (out/host/common/obj/JAVA_LIBRARIES/jsr305lib_intermediates/classes)
host Java: antlr (out/host/commo……
[/Quote]
你这个明显是没有 jar 命令
apt-get 去
chageoni 2012-07-03
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 的回复:]

看到问题点了

在这
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/../commo……
[/Quote]

请问怎么创建这个规则呢?
还有我查了一下 external/alljoyn/common/src/CryptoRSA.cc 根本没有这个文件
chen8867 2012-07-03
  • 打赏
  • 举报
回复

各位好,我在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
Trust_haitao365 2012-07-03
  • 打赏
  • 举报
回复
按照google推荐,最好用Ubuntu 10.04版本
加载更多回复(3)

80,349

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧