If your build fails, complaining about a missing "run-java-tool", try
setting the ANDROID_JAVA_HOME env var to $JAVA_HOME before making.  E.g.,

    $ export ANDROID_JAVA_HOME=$JAVA_HOME

2009/6/13 Thierry GAYET <[email protected]>

> About the compilation problem of the Android source code you can read those
> links:
>
> My java alternative setting:
>
> $ sudo update-alternatives --config javaws
> [sudo] password for thierryg:
>
> Il y a 3 alternatives fournissant « javaws ».
>
>   Sélection    Alternative
> -----------------------------------------------
>
>           1    /usr/lib/jvm/java-1.5.0-sun/jre/bin/javaws
> *         2    /usr/lib/jvm/java-6-sun/jre/bin/javaws
>  +        3    /usr/lib/jvm/java-6-openjdk/jre/bin/javaws
>
> $ sudo update-alternatives --config java
>
> Il y a 6 alternatives fournissant « java ».
>
>   Sélection    Alternative
> -----------------------------------------------
>           1    /usr/lib/jvm/java-1.5.0-sun/jre/bin/java
> *         2    /usr/lib/jvm/java-6-sun/jre/bin/java
>
>  +        3    /usr/lib/jvm/java-6-openjdk/jre/bin/java
>           4    /usr/bin/gij-4.3
>           5    /usr/bin/gij-4.2
>           6    /usr/lib/jvm/java-gcj/jre/bin/java
>
> $ sudo update-alternatives --config javac
>
> Il y a 4 alternatives fournissant « javac ».
>
>   Sélection    Alternative
> -----------------------------------------------
> *         1    /usr/lib/jvm/java-6-sun/bin/javac
>  +        2    /usr/lib/jvm/java-gcj/bin/javac
>
>           3    /usr/bin/gcj-wrapper-4.3
>           4    /usr/bin/ecj
>
> $ sudo update-alternatives --config javah
>
> Il y a 3 alternatives fournissant « javah ».
>
>   Sélection    Alternative
> -----------------------------------------------
>
> *         1    /usr/lib/jvm/java-6-sun/bin/javah
>           2    /usr/bin/gjavah-4.3
>  +        3    /usr/lib/jvm/java-gcj/bin/javah
>
> $ sudo update-alternatives --config jar
>
> Il y a 4 alternatives fournissant « jar ».
>
>   Sélection    Alternative
> -----------------------------------------------
> *         1    /usr/lib/jvm/java-6-sun/bin/jar
>           2    /usr/bin/gjar-4.3
>  +        3    /usr/lib/jvm/java-gcj/jre/bin/jar
>
>           4    /usr/bin/fastjar
>
> On other GNU Linux system than the Ubuntu distribution, the 
> 'update-alternative' binary is just called 'alternative'.
>
>
>    - http://code.google.com/p/android/issues/detail?id=1004
>    - http://ubuntuforums.org/showthread.php?t=297770
>    -
>    
> http://groups.google.com/group/android-platform/browse_thread/thread/3660c2ac60a305b0/89e1a0517e66eee4?lnk=raot
>
> If you wanna more detail during the making process you can add showcommands
> such as :
>
> make TARGET_PRODUCT=freerunner showcommands
>
> $ make TARGET_PRODUCT=freerunner
>
> build/core/product_config.mk:229: WARNING: adding test OTA key
> build/core/main.mk:177: implicitly installing apns-conf_sdk.xml
> host Java: clearsilver 
> (out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/classes)
>
> Unrecognized option : 9999999
> make: *** 
> [out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/javalib.jar] 
> Erreur 41
>
> and in verbose mode:
>
> $ make TARGET_PRODUCT=freerunner showcommands
> build/core/product_config.mk:229: WARNING: adding test OTA key
> build/core/main.mk:177: implicitly installing apns-conf_sdk.xml
>
> host Java: clearsilver 
> (out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/classes)
> for f in ; do if [ ! -f $f ]; then echo Missing file $f; exit 1; fi; unzip -q 
> $f -d  out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/classes; 
> (cd  out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/classes && 
> rm -rf META-INF); done
>
> javac -J-Xmx256m -target 1.5 -Xmaxerrs 9999999 -encoding ascii -g   -extdirs 
> "" -d out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/classes 
> external/clearsilver/java-jni/CS.java 
> external/clearsilver/java-jni/CSFileLoader.java 
> external/clearsilver/java-jni/JNI.java external/clearsilver/java-jni/HDF.java 
>   || ( rm -rf 
> out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/classes ; exit 
> 41 )
>
> Unrecognized option : 9999999
> make: *** 
> [out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/javalib.jar] 
> Erreur 41
>
> Best regards
>
> Thierry GAYET
>
>
> 2009/6/12 <[email protected]>
>
> Send android-freerunner mailing list submissions to
>>        [email protected]
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>        http://android.koolu.org/listinfo.cgi/android-freerunner-koolu.org
>> or, via email, send a message with subject or body 'help' to
>>        [email protected]
>>
>> You can reach the person managing the list at
>>        [email protected]
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of android-freerunner digest..."
>>
>>
>> Today's Topics:
>>
>>   1. Re: how to run the cupcake (Alexander Shulgin)
>>   2. Re: how to run the cupcake (Alexander Shulgin)
>>   3. Re: how to run the cupcake (Alexander Shulgin)
>>   4. changing init.rc ([email protected])
>>   5. can not make TARGET_PRODUCT=freerunner ([email protected])
>>   6. Roaming GPRS problem (Vallieswaran V)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Fri, 12 Jun 2009 09:24:30 +0300
>> From: Alexander Shulgin <[email protected]>
>> Subject: Re: [android-freerunner] how to run the cupcake
>> To: Android on Freerunner Development
>>        <[email protected]>
>> Message-ID:
>>        <[email protected]>
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> On Thu, Jun 4, 2009 at 8:11 PM, Michael
>> Trimarchi<[email protected]> wrote:
>> > Hi,
>> >
>> > narko$ wrote:
>> >>
>> >> Hi all,
>> >> I would like to try the cupcake version; I tried the build (29/5)
>> provided
>> >> by marcelo but the archive seems to be corrupted. I compiled from git
>> but
>> >> the freerunner remains with a very nice android logo shining on the
>> >> screen...I know that it should be a problem with the media player, is
>> there
>> >> any solution?
>> >> If it help I can attach the logcat: it is quite big, I guess it is in a
>> >> loop.
>> >
>> > Can you try the
>> >
>> > repo init -u git://git.moko.serdar-dere.net/cupcake/manifest.git -b
>> cupcake
>> >
>> > I start to work on it, I don't apply all the patches and maybe the audio
>> > still crash
>> > Can you give a try?
>>
>> Confirming it works after compiling from git.  WiFi still isn't
>> working -- will try default branch later.
>>
>> Thanks Michael for your hard work! :)
>>
>> --
>> Alex
>>
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Fri, 12 Jun 2009 10:02:33 +0300
>> From: Alexander Shulgin <[email protected]>
>> Subject: Re: [android-freerunner] how to run the cupcake
>> To: Android on Freerunner Development
>>        <[email protected]>
>> Message-ID:
>>        <[email protected]>
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> On Fri, Jun 12, 2009 at 9:24 AM, Alexander
>> Shulgin<[email protected]> wrote:
>> > On Thu, Jun 4, 2009 at 8:11 PM, Michael
>> > Trimarchi<[email protected]> wrote:
>> >> Can you try the
>> >>
>> >> repo init -u git://git.moko.serdar-dere.net/cupcake/manifest.git -b
>> cupcake
>> >>
>> >> I start to work on it, I don't apply all the patches and maybe the
>> audio
>> >> still crash
>> >> Can you give a try?
>> >
>> > Confirming it works after compiling from git. ?WiFi still isn't
>> > working -- will try default branch later.
>>
>> Unfortunately, the default branch isn't compiling.
>>
>> I get some errors like this:
>>
>> target Java: android.policy_phone
>>
>> (out/target/common/obj/JAVA_LIBRARIES/android.policy_phone_intermediates/classes)
>>
>> frameworks/policies/base/phone/com/android/internal/policy/impl/KeyguardViewBase.java:48:
>> cannot find symbol
>> symbol  : variable mForegroundInPadding
>> location: class com.android.internal.policy.impl.KeyguardViewBase
>>        mForegroundInPadding = false;
>>        ^
>>
>> frameworks/policies/base/phone/com/android/internal/policy/impl/KeyguardViewBase.java:145:
>> cannot find symbol
>> symbol  : variable KEYCODE_MEDIA_PLAY_PAUSE
>> location: class android.view.KeyEvent
>>                case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE:
>>                             ^
>> ...
>> (more errors with KeyEvent follow)
>> ...
>>
>>
>> frameworks/policies/base/phone/com/android/internal/policy/impl/ShutdownThread.java:124:
>> cannot find symbol
>> symbol  : method getBluetoothState()
>> location: interface android.bluetooth.IBluetoothDevice
>>                           sBluetooth.getBluetoothState() ==
>> BluetoothDevice.BLUETOOTH_STATE_OFF;
>>                                     ^
>> ... (some more errors with bluetooth)
>>
>> I recall having these same errors with koolu git tree, but I was never
>> able to overcome them.
>>
>> A quick search gives e.g. this: http://trac.koolu.org/ticket/26 which
>> is still unanswered. :-/
>>
>> Any hints?
>>
>> --
>> Regards,
>> Alex
>>
>>
>> ------------------------------
>>
>> Message: 3
>> Date: Fri, 12 Jun 2009 10:33:58 +0300
>> From: Alexander Shulgin <[email protected]>
>> Subject: Re: [android-freerunner] how to run the cupcake
>> To: Android on Freerunner Development
>>        <[email protected]>
>> Message-ID:
>>        <[email protected]>
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> On Fri, Jun 12, 2009 at 9:24 AM, Alexander
>> Shulgin<[email protected]> wrote:
>> >
>> > Confirming it works after compiling from git. ?WiFi still isn't
>> > working -- will try default branch later.
>>
>> Just found out that opening TonePicker (0.9.2.1) is crashing the phone
>> with git cupcake.  It reboots starting from ANDROID logo.
>>
>> Will try to obtain some info using adb logcat.
>>
>> --
>> Alex
>>
>>
>> ------------------------------
>>
>> Message: 4
>> Date: Fri, 12 Jun 2009 15:45:54 +0200
>> From: [email protected]
>> Subject: [android-freerunner] changing init.rc
>> To: [email protected]
>> Message-ID: <[email protected]>
>> Content-Type: text/plain; charset=iso-8859-15
>>
>> Hello,
>> I want to mount my rootfs a+rw....
>> I tried to edit the /init.rc by:
>>
>> 1)
>>  remount rootfs rw,pulled init.rc , edited it and pushed it
>> back...sync....bur after reboot the changes were  was gone...
>>
>> 2)
>> write a new ramdisk.img
>> ....
>> mkdir ramdisk_files/
>> cd ramdisk_files/
>> gunzip -c ../ramdisk.img | cpio -i
>> find . | cpio -o -H newc | gzip > ../newramdisk.cpio.gz
>> ../mkbootimg --cmdline 'no_console_suspend=1 console=null' --kernel
>> ./uImage --ramdisk ./newramdisk.cpio.gz -o ./mynewimage.img
>>
>> but my new kernel was not accepted...
>> and the ramdisk.img on the SD was ignored at reinstallation....
>>
>> What can I do?
>> regards
>> sascha
>> ____________________________________________________________
>> Text: GRATIS f?r alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
>> Jetzt freischalten unter http://movieflat.web.de
>>
>>
>>
>> ------------------------------
>>
>> Message: 5
>> Date: Fri, 12 Jun 2009 15:59:39 +0200
>> From: [email protected]
>> Subject: [android-freerunner] can not make TARGET_PRODUCT=freerunner
>> To: [email protected]
>> Message-ID: <[email protected]>
>> Content-Type: text/plain; charset=iso-8859-15
>>
>> Hello,
>>
>>
>> got a repo initialized in /mydroid
>>
>> but I can not buil it..
>>
>> koolu$ make TARGET_PRODUCT=freerunner
>> build/core/product_config.mk:229: WARNING: adding test OTA key
>> build/core/main.mk:177: implicitly installing apns-conf_sdk.xml
>> system/core/rootdir/Android.mk:24: Warnung: Die Befehle f?r das Ziel
>> ?out/target/product/freerunner/system/etc/mountd.conf? werden ?berschrieben
>> vendor/neo/freerunner/Android.mk:79: Warnung: Alte Befehle f?r das Ziel
>> ?out/target/product/freerunner/system/etc/mountd.conf? werden ignoriert
>> host Java: clearsilver
>> (out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/classes)
>> Unrecognized option : 9999999
>> make: ***
>> [out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/javalib.jar]
>> Fehler 41
>>
>>
>> regards
>> sascha
>> ____________________________________________________________
>> Text: GRATIS f?r alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
>> Jetzt freischalten unter http://movieflat.web.de
>>
>>
>>
>> ------------------------------
>>
>> Message: 6
>> Date: Fri, 12 Jun 2009 07:54:47 -0700
>> From: Vallieswaran V <[email protected]>
>> Subject: [android-freerunner] Roaming GPRS problem
>> To: Android on Freerunner Development
>>        <[email protected]>
>> Message-ID:
>>        <[email protected]>
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> Hi all,
>>
>> I am having a problem in connecting to GPRS in Roaming State.
>>
>> i had build android from koolu - releases branch
>>
>> i am getting an exception
>> "Unable to set numeric to the current provider "
>>
>> if  handle the exception to set numeric value and return true
>> in telephony provider.java
>>
>> still PPPD call is not happening
>>
>> any idea how to solve it
>>
>> yours
>> vallieswaran
>>
>>
>>
>>
>> yours
>> vallies
>>
>>
>> ------------------------------
>>
>> _______________________________________________
>> android-freerunner mailing list
>> [email protected]
>> http://android.koolu.org/listinfo.cgi/android-freerunner-koolu.org
>>
>>
>> End of android-freerunner Digest, Vol 6, Issue 15
>> *************************************************
>>
>
>
>
> --
>
> Cordialement
>
> Thierry GAYET
> +33.663.849.589
>



-- 

Cordialement

Thierry GAYET
+33.663.849.589
_______________________________________________
android-freerunner mailing list
[email protected]
http://android.koolu.org/listinfo.cgi/android-freerunner-koolu.org

Reply via email to