This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TI Android GingerBread 2.3.4 DevKit 2.1 Compilation errors

Hi,

 

I have followed the steps as mentioned in http://processors.wiki.ti.com/index.php/TI-Android-GingerBread-2.3.4-DevKit-2.1_DeveloperGuide and I am getting compilation errors.

#compilation procedure:

$ make CROSS_COMPILE=arm-eabi- omap3evm_config
>>> this results in

make: *** No rule to make target `omap3evm_config'. Stop.

$ make CROSS_COMPILE=arm-eabi-

>>>>and for this command, I am getting this error message

"packages/apps/Calculator/src/com/android/calculator2/CalculatorDisplay.java:19: cannot access android.content.Context
bad class file: android/content/Context.class(android/content:Context.class)
unable to access file: corrupted zip file
Please remove or make sure it appears in the correct subdirectory of the classpath.
import android.content.Context;
^
make: *** [out/target/common/obj/APPS/Calculator_intermediates/classes-full-debug.jar] Error 41
"

Please help me out, If i am missing out something. Btw., I have tried the pre-built binaries and they are working fine.

Best regards,
Rakesh.M
 
  • Hi Rakesh,

     

    Here is the catch...

    1. To comiple x-loader you need to first go to x-loader directory..

    $ cd x-loader

    make CROSS_COMPILE=arm-eabi- omap3evm_config

    Similarly to compile u-boot you need first go to u-boot directory...

    -

    satish

  • one more thing....

    just add ARCH=arm

    $ cd x-loader

    make ARCH=arm CROSS_COMPILE=arm-eabi- omap3evm_config

     

    will include the same in our user guide.. thank you 

     

    -satish

  • Hi Satish,

     

    Thanks for the quick response. I have tried the same. I result is the same a previous error

    /x-loader$  make ARCH=arm CROSS_COMPILE=arm-eabi- omap3_evm_android_defconfig
    make: *** No rule to make target `omap3_evm_android_defconfig'.  Stop.

    Actually, I am trying with "omap3_evm_android_defconfig" I suppose that shouldn't make a difference. 

     

    and when I tried to

    /x-loader$ make ARCH=arm CROSS_COMPILE=arm-eabi-
    System not configured - see README
    make: *** [all] Error 1

     

    I guess I need to add make menuconfig. and need to copy that "omap3_evm_android_defconfig" to the current directory as .config. Is that so?

     

    Best regards,

    Rakesh.M

  • HI Rakesh,

     

    I think you are trying with wrong config option

    /x-loader$  make ARCH=arm CROSS_COMPILE=arm-eabi- omap3_evm_android_defconfig
    make: *** No rule to make target `omap3_evm_android_defconfig'.  Stop.

    Pelase use below commands

    x-loader compilation:

    1. cd <android_source>/x-loader

    2. make ARCH=arm CROSS_COMPILE=arm-eabi- distclean

    3. make ARCH=arm CROSS_COMPILE=arm-eabi- omap3evm_config

    4. make ARCH=arm CROSS_COMPILE=arm-eabi-

     

    U-boot compilation:

    1. cd <android_source>/u-boot

    2. make ARCH=arm CROSS_COMPILE=arm-eabi- distclean

    3. make ARCH=arm CROSS_COMPILE=arm-eabi- omap_3evm_config

    4. make ARCH=arm CROSS_COMPILE=arm-eabi-

    Kernel compilation:

    1. cd <android_source>/kernel

    2. make ARCH=arm CROSS_COMPILE=arm-eabi- distclean

    3. make ARCH=arm CROSS_COMPILE=arm-eabi- omap3_evm_android_defconfig

    4. make ARCH=arm CROSS_COMPILE=arm-eabi- uImage

     

    Thanks and Regards,

    Pankaj Bharadiya

  • Hi,

     

    Few more errors while building for Android Filesystem.,

    Texas_Instruments/TI_Android_GingerBread_2_3_4Sources$ make TARGET_PRODUCT=beagleboard OMAPES=3.x -j8

    target SharedLib: libstlport (out/target/product/beagleboard/obj/SHARED_LIBRARIES/libstlport_intermediates/LINKED/libstlport.so)
    packages/apps/DeskClock/src/com/android/alarmclock/AnalogAppWidgetProvider.java:22: cannot access android.app.PendingIntent
    bad class file: android/app/PendingIntent.class(android/app:PendingIntent.class)
    unable to access file: corrupted zip file
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    import android.app.PendingIntent;
                      ^
    make: *** [out/target/common/obj/APPS/DeskClock_intermediates/classes-full-debug.jar] Error 41
    make: *** Waiting for unfinished jobs....

    packages/apps/Calculator/src/com/android/calculator2/CalculatorDisplay.java:19: cannot access android.content.Context
    bad class file: android/content/Context.class(android/content:Context.class)
    unable to access file: corrupted zip file
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    import android.content.Context;
                          ^
    make: *** [out/target/common/obj/APPS/Calculator_intermediates/classes-full-debug.jar] Error 41
    packages/apps/Protips/src/com/android/protips/ProtipWidget.java:19: cannot access android.app.AlarmManager
    bad class file: android/app/AlarmManager.class(android/app:AlarmManager.class)
    unable to access file: corrupted zip file
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    import android.app.AlarmManager;
                      ^
    make: *** [out/target/common/obj/APPS/Protips_intermediates/classes-full-debug.jar] Error 41

     

    Any help here?

  • Hi Rakesh,

    Did you download sources from our release page?

    Please download sources from rowboat and try again. Use following commands to download sources from rowboat.

    $ mkdir
    ~/rowboat-android
    $ cd ~/
    rowboat-android
    $ repo init
    -u git://gitorious.org/rowboat/manifest.git -m TI-Android-GingerBread-2.3.4-DevKit-2.1.xml
    $ repo sync

    Thanks and Regards,
    Pankaj Bharadiya.
  • Make sure you have the correct version of java installed. Refer to the Host setup section of the Developer Guide.

    Also, I would suggest that you try to build without the -j8 option. This may give problems while building on some setups.

    $ make TARGET_PRODUCT=beagleboard OMAPES=3.x

  • Hi,

     

    I have the Java version

    rowboat_android_2_3_4_2_1$ java -version
    java version "1.6.0_22"
    OpenJDK Runtime Environment (IcedTea6 1.10.2) (6b22-1.10.2-0ubuntu1~11.04.1)
    OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)

    I have tried with removing the -j8 option and still the result remains the same.

    development/samples/ApiDemos/src/com/example/android/apis/animation/Rotate3dAnimation.java:19: cannot access android.view.animation.Animation
    bad class file: android/view/animation/Animation.class(android/view/animation:Animation.class)
    unable to access file: corrupted zip file
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    import android.view.animation.Animation;
                                 ^
    make: *** [out/target/common/obj/APPS/ApiDemos_intermediates/classes-full-debug.jar] Error 41

    and I am still getting the error.

    Any suggestions.

     

    Best regards,

    Rakesh.M

  • Google recommends to use the Sun JDK. Other versions may not work correctly.

    You can refer to the TI Android DevKit Developer Guide for installing Sun JDK http://processors.wiki.ti.com/index.php/TI-Android-GingerBread-2.3.4-DevKit-2.1_DeveloperGuide#Host_.28PC.29_setup_requirements

  • Hi,

     

    I have the latest Sun Java installed on my 64 bit Linux machine.

     

    /TI_Android_GingerBread_2_3_4Sources$ uname -a
    Linux UW000523 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

    /TI_Android_GingerBread_2_3_4Sources$ sudo apt-get install sun-java6-jdk
    sudo: unable to resolve host UW000523
    Reading package lists... Done
    Building dependency tree      
    Reading state information... Done
    sun-java6-jdk is already the newest version.
    The following packages were automatically installed and are no longer required:
      linux-headers-2.6.38-8-generic linux-headers-2.6.38-8
    Use 'apt-get autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


    /TI_Android_GingerBread_2_3_4Sources$ sudo update-java-alternatives -s java-6-sun
    sudo: unable to resolve host UW000523
    update-alternatives: error: no alternatives for java-rmi.cgi.



    /TI_Android_GingerBread_2_3_4Sources$ make TARGET_PRODUCT=beagleboard OMAPES=3.x
    ============================================
    PLATFORM_VERSION_CODENAME=REL
    PLATFORM_VERSION=2.3.4
    TARGET_PRODUCT=beagleboard
    TARGET_BUILD_VARIANT=eng
    TARGET_SIMULATOR=
    TARGET_BUILD_TYPE=release
    TARGET_BUILD_APPS=
    TARGET_ARCH=arm
    HOST_ARCH=x86
    HOST_OS=linux
    HOST_BUILD_TYPE=release
    BUILD_ID=GRJ22
    ============================================
    find: `frameworks/base/frameworks/base/docs/html': No such file or directory
    find: `out/target/common/docs/gen': No such file or directory
    find: `frameworks/base/frameworks/base/docs/html': No such file or directory
    find: `out/target/common/docs/gen': No such file or directory
    find: `frameworks/base/frameworks/base/docs/html': No such file or directory
    find: `out/target/common/docs/gen': No such file or directory
    find: `frameworks/base/frameworks/base/docs/html': No such file or directory
    find: `out/target/common/docs/gen': No such file or directory
    find: `frameworks/base/frameworks/base/docs/html': No such file or directory
    find: `out/target/common/docs/gen': No such file or directory
    target Java: ApiDemos (out/target/common/obj/APPS/ApiDemos_intermediates/classes)
    development/samples/ApiDemos/src/com/example/android/apis/animation/Rotate3dAnimation.java:19: cannot access android.view.animation.Animation
    bad class file: android/view/animation/Animation.class(android/view/animation:Animation.class)
    unable to access file: corrupted zip file
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    import android.view.animation.Animation;
                                 ^
    make: *** [out/target/common/obj/APPS/ApiDemos_intermediates/classes-full-debug.jar] Error 41

     

    and still the error remains. seems it is not with Java JDK running on my machine. Any help?

     

    regards,

    Rakesh.M

  • Your Java version says openJDK. Do you have by any chance both Sun JDK and OpenJDK installed?

    Kindly paste the output of the following commands:

    $ whereis java

    $ echo $PATH

  • Here is the output of the both commands

     

    /rowboat_android_2_3_4_2_1$ whereis java
    java: /usr/bin/java /etc/java /usr/share/java /usr/share/man/man1/java.1.gz

    /rowboat_android_2_3_4_2_1$ echo $PATH
    /home/mutharak/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

  • Hi Rakesh,

    Path looks fine. Please post output of following commands.

    sudo update-alternatives --config java

    sudo update-alternatives --config jar

    Make sure that your system is pointing to correct Java version.

     

    Thanks and Regards,

    Pankaj Bharadiya

  • Hi Pankaj,

    /rowboat_android_2_3_4_2_1$ sudo update-alternatives --config java
    sudo: unable to resolve host UW000523
    There are 3 choices for the alternative java (providing /usr/bin/java).

      Selection    Path                                       Priority   Status
    ------------------------------------------------------------
      0            /usr/lib/jvm/java-6-openjdk/jre/bin/java    1061      auto mode
      1            /usr/lib/jvm/ia32-java-6-sun/jre/bin/java   63        manual mode
      2            /usr/lib/jvm/java-6-openjdk/jre/bin/java    1061      manual mode
    * 3            /usr/lib/jvm/java-6-sun/jre/bin/java        63        manual mode

    Press enter to keep the current choice[*], or type selection number:

    /rowboat_android_2_3_4_2_1$ sudo update-alternatives --config jar
    sudo: unable to resolve host UW000523
    There are 2 choices for the alternative jar (providing /usr/bin/jar).

      Selection    Path                             Priority   Status
    ------------------------------------------------------------
      0            /usr/bin/fastjar                  100       auto mode
      1            /usr/bin/fastjar                  100       manual mode
    * 2            /usr/lib/jvm/java-6-sun/bin/jar   63        manual mode

    Press enter to keep the current choice[*], or type selection number:
    mutharak@UW000523:~/Desktop/rowboat_android_2_3_4_2_1$

     

    Yes, system is pointing to correct JAVA version (SUN version 6)

     

    thanks and regards

    Rakesh.M

  • Hi All,

     

    Thanks I got it through with SUN-java6-jdk., I had to "make clean" and redo the "make TARGET_PRODUCT=beagleboard OMAPES=3.x". Seems build is successful. So far no errors noticed.

     

    Thanks for the support.

     

    best regards,

    Rakesh.M