看到问题点了在这
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文件的编译规则

解决方案 »

  1.   

    按照google推荐,最好用Ubuntu 10.04版本
      

  2.   


    各位好,我在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
      

  3.   


    请问怎么创建这个规则呢?
    还有我查了一下  external/alljoyn/common/src/CryptoRSA.cc 根本没有这个文件
      

  4.   

    你这个明显是没有 jar 命令
    apt-get 去
      

  5.   


    各位好,我在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
      

  6.   

    再你得环境里,java -version   和jar -v 俩个分别输出什么
      

  7.   

    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$ 
      

  8.   


    你是有很多Android.mk文件么?我前几天好像也出现过类似的问题,编译器要编译某个文件,可是这个问题根本不存在,最后我把各个目录下的Android.mk写成了一个,放在工程的根目录下面,然后在编译,最后就没有出现这个问题了。你可以试试。
      

  9.   

    最新的错误
    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
      

  10.   

    最新的错误。大家帮看看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
      

  11.   

    如果是android4.0的代码是可以编译的,在编译请不要使用make -j4 换成make -j1,表示开单线程,因为可能存在依赖问题。
    如果仍然问题,我觉得是你的c++编译器也就是g++的版本问题,可能会是太高了,你试着降一下版本,问题应该可以解决。
      

  12.   

    这种情况可能是:假如你是第一次编译的话,建议make就好了,不要4线程去编译;会有依赖关系;
    还有就是需要给你的gcc 降级试试看,g++都降级