Building Eclair from source - java problem - myTouch 3G, Magic Android Development

I'm trying to build Eclair from source using instructions here:
http://source.android.com/download
And here:
http://source.android.com/documentation/building-for-dream
It does not build and java crashes out with an exception error:
Code:
Note: Recompile with -Xlint:deprecation for details.
target Java: VpnServices (out/target/common/obj/APPS/VpnServices_intermediates/classes)
An exception has occurred in the compiler (1.5.0). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.AssertionError: writePool E
at com.sun.tools.javac.jvm.ClassWriter.writePool(ClassWriter.java:513)
at com.sun.tools.javac.jvm.ClassWriter.writeClassFile(ClassWriter.java:1333)
at com.sun.tools.javac.jvm.ClassWriter.writeClass(ClassWriter.java:1211)
at com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:325)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:474)
at com.sun.tools.javac.main.Main.compile(Main.java:592)
at com.sun.tools.javac.main.Main.compile(Main.java:544)
at com.sun.tools.javac.Main.compile(Main.java:58)
at com.sun.tools.javac.Main.main(Main.java:48)
make: *** [out/target/common/obj/APPS/VpnServices_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
I am using java 1.5.0 as suggested on the AOSP site.
Code:
java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)
My system is Ubuntu 9.10 32bit.
Are there any tips to get this working? Is this the best version of Java to use?

I was getting a ton of errors with 1.5, I started building with Java 1.6 but I had to stop it. It was definitely getting further.
I have also heard that if you use Java 1.6, you should first run a
Code:
make update-api
and then run
Code:
make

Related

[Q] N1(Passion) building CM7 Invalid or corrupt jarfile

Hi,
I'm building CM7 for N1 and I am following: http://forum.xda-developers.com/showthread.php?t=775505
My OS is Ubuntu 11.04 VB.
when I run the following command . build/envsetup.sh && brunch passion, I get the following error:
Install: out/host/linux-x86/framework/dumpkey.jar
DumpPublicKey: out/target/product/passion/obj/PACKAGING/ota_keys_intermediates/keys <= build/target/product/security/testkey.x509.pem
java -jar out/host/linux-x86/framework/dumpkey.jar build/target/product/security/testkey.x509.pem > out/target/product/passion/obj/PACKAGING/ota_keys_intermediates/keys
Invalid or corrupt jarfile out/host/linux-x86/framework/dumpkey.jar
make: *** [out/target/product/passion/obj/PACKAGING/ota_keys_intermediates/keys] Error 1
make: *** Deleting file `out/target/product/passion/obj/PACKAGING/ota_keys_intermediates/keys'
Help please...
Thank you.
I resolved the error. I deleted the /out file, repo sync, and recompiled. I now have a CM7 build for my N1. I haven't tried it on the phone yet but hopefully it works.

[Q] Building Android Kernel for MIPS

I've spent several days for building the android kernel for MIPS, but no luck for me.
Anyone here please help!
Some facts:
I'm running Ubuntu 10.04 64 bit in VM ware on Windows 7 64bit machine.
Kernel Version 3.0.8, downloaded from develope.mips : android-porting-guide
Toolchain: Sourcery_CodeBench_Lite_for_MIPS_GNU_Linux, gcc version 4.5.2
.config: Extract from Ainol Paladin Tablet. ICS 4.0.1, Kernel:3.0.8
I used the below commands:
$ export compiler=/home/android/tool/sourcerymips/bin/mips-linux-gnu-
$ make ARCH=mips menuconfig
$ make ARCH=mips CROSS_COMPLIE=$compiler
Click to expand...
Click to collapse
The errors
...
CC arch/mips/kernel/time.o
CC arch/mips/kernel/topology.o
CC arch/mips/kernel/traps.o
cc1: warnings being treated as errors
arch/mips/kernel/traps.c: In function 'trap_init':
arch/mips/kernel/traps.c:1815:6: error: "cpu_data" is not defined
arch/mips/kernel/traps.c:1815:6: error: token "[" is not valid in preprocessor expressions
arch/mips/kernel/traps.c:1943:6: error: "cpu_data" is not defined
arch/mips/kernel/traps.c:1943:6: error: token "[" is not valid in preprocessor expressions
make[2]: *** [arch/mips/kernel/traps.o] Error 1
make[1]: *** [arch/mips/kernel] Error 2
make: *** [arch/mips] Error 2
Click to expand...
Click to collapse

SDK installation issue

Hi, I downloaded the android sdk from the official site, and when I launch eclipse, it gives me this error:
Code:
[email protected] ~/adt-bundle-linux-x86/eclipse $ ./eclipse
Eclipse:
JVM terminated. Exit code=13
/usr/bin/java
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx768m
-Declipse.buildId=v21.0.1-543035
-jar /home/xacobe/adt-bundle-linux-x86/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
-os linux
-ws gtk
-arch x86
-showsplash
-launcher /home/xacobe/adt-bundle-linux-x86/eclipse/eclipse
-name Eclipse
--launcher.library /home/xacobe/adt-bundle-linux-x86/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20120522-1813/eclipse_1502.so
-startup /home/xacobe/adt-bundle-linux-x86/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.overrideVmargs
-exitdata 288006
-product com.android.ide.eclipse.adt.package.product
-vm /usr/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx768m
-Declipse.buildId=v21.0.1-543035
-jar /home/xacobe/adt-bundle-linux-x86/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
The java version is the correct
Code:
[email protected] ~/adt-bundle-linux-x86/eclipse $ java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.5) (6b24-1.11.5-0ubuntu1~12.10.1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
I don't know why is this error, can anyone help? Thanks :good:
I'm trying to install eclipse and sdk separately, i just made the sdk work
I needed ia32-libs to make everything work, cause my computer is 64. Then i downloaded the Eclipse IDE for Java Developers, and it works! Finally i installed the plugin and pointed eclipse to the sdk. If someone have this same problem, here is the solution

[Q] Cross-compiling Percy .cc files for Android phone

Hi,
I am struggling cross-compiling the Percy++ (percy.sourceforge.net/readme.php) for android phones that mainly require some other libraries to be included i.e. libgcrypt, socket++ etc. I can create the toolchain using android NDK with the following options 'android-17', 'ARM-based', 'linux-x86_64', and 'arm-linux-androideabi-4.8'. After I try to compile one of the required libraries, it gives me the following error:
arm-linux-androideabi-gcc --sysroot=/path-to-built-toolchain/sysroot
-I../include
-I. -march=armv7-a -c MakeDescAux.c
-I. -march=armv7-a -march=armv7-a -o MakeDesc MakeDesc.c MakeDescAux.o
-lm
./MakeDesc
./MakeDesc: 1: ./MakeDesc: Syntax error: word unexpected (expecting ")")
make[1]: *** [setup1] Error 2
make[1]: Leaving directory 'src'
> make: *** [all] Error 2
The reason that during the compilation, it creates some .exe files that are run during the compilation time on the desktop machine and they simply do not run, since these files have been compiled for another target i.e. android phone.
I want to create the .exe file out of the Percy installation. My question is; do I need some different linker or different linker settings, different LDFLAGS/CFLAGS/CPPFLAGS etc.? Is there any other way to compile the Percy without cross-compiling the required libraries? although I have tried with statically including the required libraries using the 'LOCAL_STATIC_LIBRARIES' option, but that also does not work. I think that the required libraries should be compiled before they are statically included to your main installation software. Any help in this regard is highly appreciated. Thanks.

[Q] [Q&A]problems when build android-5.1.1_r2

Hello, everyone,
I'm using Ubuntu14.0.4 virtualbox virtual machine, the memory size is set as 2G. I set two more virtual disks(/disk_2nd for source code download, /disk_3rd for build output and the directory is android_out).
Java version is openjdk7 as required by android official website.
Git was rebuilt for openssl because of gnutls_handshake error during downloading source code.
I had met the problem caused by small swap so that I already set a new 8G swap partion(not swapfile).
Now I meet two problems during build the android-5.1.1_r2. I searched from web but can't find answer(looks someone met same problem but no answer). If someone can help, it will be very great. Thank you very much.
--------------------------------------------------------------------------------------------------------
1.
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /disk_3rd/android_out/androidsource/host/linux-x86/obj32/SHARED_LIBRARIES/libjavacore_intermediates/luni/src/main/native/android_system_OsConstants.o: file is empty
libcore/luni/src/main/native/Register.cpp:36: error: undefined reference to 'register_android_system_OsConstants(_JNIEnv*)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
2.
target Strip: libwebviewchromium (/disk_3rd/android_out/androidsource/target/product/generic/obj/lib/libwebviewchromium.so)
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-strip:/disk_3rd/android_out/androidsource/target/product/generic/symbols/system/lib/libwebviewchromium.so: File format not recognized
make: *** [/disk_3rd/android_out/androidsource/target/product/generic/obj/lib/libwebviewchromium.so] error 1
make: *** Waiting for unfinished work .....( It could be not exact the same words because I translate it from Chinese)

Categories

Resources