Hello superspirit, did you manage to solve that problem? I am having exactly the same issue, I tried casting the variables as suggested in other thread. But that just produces more errors.
thanks On Nov 3, 3:24 am, superspirit <[email protected]> wrote: > hi, i got rid of the javac error, for that i needed to install the > jdk.1.5 and set its path in PATH. but i am getting some other error > > Install: out/host/linux-x86/bin/atree > host C++: bb2sym <= development/emulator/qtools/bb2sym.cpp > host C++: bb2sym <= development/emulator/qtools/trace_reader.cpp > development/emulator/qtools/trace_reader.cpp: In function ‘char* > ExtractDexPathFromMmap(const char*)’: > development/emulator/qtools/trace_reader.cpp:1012: error: invalid > conversion from ‘const char*’ to ‘char*’ > development/emulator/qtools/trace_reader.cpp:1015: error: invalid > conversion from ‘const char*’ to ‘char*’ > make: *** [out/host/linux-x86/obj/EXECUTABLES/bb2sym_intermediates/ > trace_reader.o] Error 1 > > any idea how to overcome this. > > thanks > super > > On Nov 3, 1:59 pm, Chih-Wei <[email protected]> wrote:> Actually java 1.6 > can be used to compile Android. > > You can use openjdk shipped with Fedora: > > > yum install java-1.6.0-openjdk > > > But you need to patch Android build system > > to enable compiling with java 1.6. > > > On 11月3日, 下午3時02分, Chew Esmero <[email protected]> wrote: > > > > In order to properly build android sources, you need sun-java5-jdk > > > package. My machine is Ubuntu so I can download the package using $apt- > > > get install sun-java5-jdk. I'm not sure what's equivalent in Fedora. > > > Is it $yum install sun-java5-jdk? Or you can manually download from > > > sun website. Be sure its version 5.0, not 6.0. Hope this can help. > > > > On Nov 2, 9:38 pm, superspirit <[email protected]> wrote: > > > > > hi, i am trying to build donut android on my development machine > > > > (linux-feroa), but i could not able find proper java version. people > > > > any sugesstions. > > > > > /prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin) > > > > build/core/find-jdk-tools-jar.sh: line 5: [: too many arguments > > > > ************************************************************ > > > > You are attempting to build with the incorrect version > > > > of javac. > > > > > Your version is: /bin/bash: javac: command not found. > > > > The correct version is: 1.5. -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
