On Monday, April 14, 2014 4:27:07 PM UTC+5:30, himansh...@brainvire.com wrote: > Hello I android developer i just work to build Firefox android build by Step > given in This Site : > > > > https://wiki.mozilla.org/Mobile/Fennec/Android#Explained > > > > Now let me give my system Info : > > Ubuntu 12.04 64 Bit OS > > 4 GB RAM > > Processor :Intel(R) Core(tm) i3-2120 CPU @ 3.30GHz × 4 > > > > I follow below step and which work fine with out any Error : > > > > sudo apt-get update > > sudo apt-get build-dep firefox > > sudo apt-get install ant > > wget http://dl.google.com/android/ndk/android-ndk-r8e-linux-x86_64.tar.bz2 > > tar -xjf android-ndk-r8e-linux-x86_64.tar.bz2 > > wget http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20131030.zip > > unzip adt-bundle-linux-x86_64-20131030.zip > > apt-get install -y ia32-libs > > sudo apt-get install mercurial ccache > > sudo apt-get build-dep firefox > > > > I have create .mozconfig by below code : > > > > # Add the correct paths here: > > ac_add_options --with-android-ndk="$HOME/android-ndk-r8e" > > ac_add_options > --with-android-sdk="$HOME/adt-bundle-linux/sdk/platforms/android-16" > > > > # android options > > ac_add_options --enable-application=mobile/android > > ac_add_options --target=arm-linux-androideabi > > > > Now when i Run first time : > > > > Mozilla/src$ ./mach build > > > > It process and setup some file and at end it say me re run same command . > > > > Now when i re run it it give below Error : > > Mozilla/src$ ./mach build > > /home/ubbvand2/Himanshu/Mozilla/src/python/psutil/psutil/_pslinux.py:108: > RuntimeWarning: couldn't determine platform's TOTAL_PHYMEM > > warnings.warn("couldn't determine platform's TOTAL_PHYMEM", RuntimeWarning) > > Error running mach: > > > > ['build'] > > > > The error occurred in code that was called by the mach command. This is either > > a bug in the called code itself or in the way that mach is calling it. > > > > You should consider filing a bug for this issue. > > > > If filing a bug, please include the full output of mach, including this error > > message. > > > > The details of the failure are as follows: > > > > AttributeError: 'module' object has no attribute 'get_sysinfo' > > > > File > "/home/ubbvand2/Himanshu/Mozilla/src/python/mozbuild/mozbuild/mach_commands.py", > line 287, in build > > monitor.init(warnings_path) > > File > "/home/ubbvand2/Himanshu/Mozilla/src/python/mozbuild/mozbuild/controller/building.py", > line 161, in init > > self.resources = SystemResourceMonitor(poll_interval=1.0) > > File > "/home/ubbvand2/Himanshu/Mozilla/src/testing/mozbase/mozsystemmonitor/mozsystemmonitor/resourcemonitor.py", > line 180, in __init__ > > virt = psutil.virtual_memory() > > File > "/home/ubbvand2/Himanshu/Mozilla/src/python/psutil/psutil/__init__.py", line > 1170, in virtual_memory > > return _psplatform.virtual_memory() > > File > "/home/ubbvand2/Himanshu/Mozilla/src/python/psutil/psutil/_pslinux.py", line > 143, in virtual_memory > > total, free, buffers, shared, _, _ = _psutil_linux.get_sysinfo() > > > > I found solution here :https://bugzilla.mozilla.org/show_bug.cgi?id=930808#c5 > > > > But that seem does not work in my case . > > My python package for python-psutil 1.2.1-1~ppa1 is installed. > > > > > > Any help will be great to go further for me.
If any one have same issue like me then they can follow step like below . 1)sudo apt-get --purge remove python-psutil 2)sudo apt-get --purge autoremove 3)sudo apt-get update 4)Follow step from this link to install psutil-1.0.1.tar.gz https://bugzilla.mozilla.org/show_bug.cgi?id=908296 5) Unzip it and sudo -s 6)cd psutil python setup.py install python -c "import psutil; psutil.virtual_memory()" make sure when you are running above two command you have root permission else it may be fail due to permission issue . 8) sudo -s 9)Mozilla /src/./mach build it is now working for me. _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform