How to build pine and m-c (Please read)

Error about unknown option means you don’t have the proper gecko

Mozilla Discourse a écrit :


m.ducorpsM Ducorps

June 26

I confirm i have the error

mozbuild.configure.options.InvalidOptionError: Unknown option: --with-android-ndk

Here below the details of distrib version, make, path and build output...

Target is “emulator-kk”

http://termbin.com/16m6

on my side after a reboot the "B2G_ANDROID_NDK_PATH" is properly set (/etc/environment) see in the log provided..

PS: @Novski it seems the path is properly set also on your side looking at the output of your echo

Novski:

novski@novski-U140464deskVM:~/B2G$ echo $B2G_ANDROID_NDK_PATH/home/novski/android-ndk-r11b/


Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.

Envoyé depuis Firefox OS

okey, thanks for the tips looking at this, to find my mistake.

cheers

Matth

exactly. In that try i posted i had the path set as you in /etc/environment. what worked .:white_check_mark:
But the sugestion from Lissyx to paste the path to the B2G/.config it doesn’t. :no_entry_sign:

I wold like to know why and if that happens only in my case or in your as well…

Regards, Novski

Its in .userconfig and not in .config

please make sure you copy/pasted properly. It is expected not to be in your own environment so echo would show nothing.

Please refrain from changing your /etc/environment. The setup I described is the one I use so believe me it works. …

Mozilla Discourse a écrit :


NovskiIvan Hörler

June 26m.ducorps:

PS: @Novski it seems the path is properly set also on your side looking at the output of your echo

exactly. In that try i posted i had the path set as you in /etc/environment. what worked .:white_check_mark:

But the sugestion from Lissyx to paste the path to the B2G/.config it doesn’t. :no_entry_sign:

I wold like to know why and if that happens only in my case or in your as well...

Regards, Novski


Visit Topic or reply to this email to respond.


In Reply To

m.ducorpsM Ducorps

June 26I confirm i have the error

mozbuild.configure.options.InvalidOptionError: Unknown option: --with-android-ndk

Here below the details of distrib version, make, path and build output… Target is “emulator-kk”

http://termbin.com/16m6

on my side after a reboot the “B2G_ANDROID_NDK_PATH” is pro…


Visit Topic or reply to this email to respond.

To stop receiving notifications for this particular topic, click here.

To unsubscribe from these emails, change your user preferences.

Envoyé depuis Firefox OS

i don’t have any .userconfig file on my machine.
where is it located in your case?

Create it in B2G/

Mozilla Discourse a écrit :


NovskiIvan Hörler

June 27lissyx:

Its in .userconfig and not in .config

i don't have any .userconfig file on my machine.

where is it located in your case?


Visit Topic or reply to this email to respond.


In Reply To

lissyx

June 26Its in .userconfig and not in .config

please make sure you copy/pasted properly. It is expected not to be in your own environment so echo would show nothing.

Please refrain from changing your /etc/environment. The setup I described is the one I use so believe me it works. …

Mozilla Discours…


Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.

Envoyé depuis Firefox OS

Thank you Lissyx. I created /B2G/.userconfig and pasted :

export B2G_ANDROID_NDK_PATH="/home/novski/android-ndk-r11b/"
echo “… loading /.userconfig”

The echo to see that it is executed…

And then i run a build wich of course failed again because of the same failure Matth has as well.
Maybe @m.ducorps is able to find out why gecko is faulty.
Regards, Novski.

Please make sure you are building a pine tree ! The default gecko/ that is being used is NOT a pine. |GECKO_PATH=path/to/pine ./build.sh| should work. And make sure your gaia repo is checked out on kanikani branch.

@Novski could you give me the result of :

$cat .userconfig

maybe you are missing some info in it

Matth

Hi All,

on my side i i have the feeling i’m still having environment variable issue i first run in to this error :

ERROR: You have to specify --with-android-toolchain=/path/to/ndk/toolchain.

Which i fixed by adding the corresponding option in my .mozconfig file

See full log output here.

But now i have another issue where it don’t manage to create the “configure” file.

DEBUG: configure: error: not found. Please check your NDK. With the current configuration, it should be in /home/matthieu/android-ndk-r11b/platforms/android-19/arch-arm
ERROR: old-configure failed
*** Fix above errors and then restart with\

See the full output here.

I don’t really get where is my issue here.

Thanks for any input

Matth

You should not have to specify --with-android-toolchain, gonk-misc/ takes care of this: https://github.com/mozilla-b2g/gonk-misc/commit/8b88e0ddcfb658e3486694d0503251d7ba136591#diff-ad0844719b7ffa19d01c90446b218880R36

This error is a symptom you don’t have the proper gonk-misc or your .userconfig is wrong.

Hi @lissyx,

Here is the output of my original default-gecko-config with this version i have the error :

ERROR: You have to specify --with-android-toolchain=/path/to/ndk/toolchain.

Here is the output of my current default-gecko-config with this version i have this error :

DEBUG: configure: error: not found. Please check your NDK. With the current configuration, it should be in /home/matthieu/android-ndk-r11b/platforms/android-19/arch-arm
ERROR: old-configure failed
*** Fix above errors and then restart with\

here is the output of my .userconfig

It’s too messy. I cannot help you until you get me proper informations regarding your build environment and what you did.

That specific error means your .userconfig is properly read and your NDK is partly broken? Can you check the content of the said directory? Please share: ls -hal /home/matthieu/android-ndk-r11b/ and ls -hal /home/matthieu/android-ndk-r11b/platforms/ and /home/matthieu/android-ndk-r11b/platforms/arch-arm/

Oh la boulette !

I just notice with your message that i switch to another VM with a different home folder name…

:confounded:

Sorry about that !

it’s now building !

Matth

Yatta built !!

But now i have the same issue as in mulet the interface don’t show up see details about Gaia i’m using :

git Gaia info

This is a printscreen of my .config and my .userconfig…

Emulator can be slow. Please make sure you waited long enough and this is pine + kanikani. Also, there was an issue related to OpenGL that might cause the screen to be black. We need logcat to conclude.

Do we have a doc which explain how i can use logcat do grab the proper data ?

Yes, it’s everywhere.