Unable to build content_shell_apk by this Command ninja -C out/Release content_shell_apk

585 views
Skip to first unread message

Herry Mistri

unread,
Apr 2, 2014, 5:28:52 AM4/2/14
to chromi...@chromium.org
Why i am getting this error.

My have Ubuntu 13.10 with 64 bit I have done this command step Successfully.

. build/android/envsetup.sh
export GYP_DEFINES='OS=android'
gclient runhooks

But only problem occur at command ninja


ubbvand2@ubbvand2:~/himanshu/FreshCheckout/src$ ninja -C out/Release content_shell_apk
ninja: Entering directory `out/Release'
ninja: warning: multiple rules generate icudtl.dat. builds involving this target will not be correct; continuing anyway
[782/11547] CC obj.host/third_party/icu/source/common/icuuc.putil.o
../../third_party/icu/source/common/putil.c: In function ‘compareBinaryFiles’:
../../third_party/icu/source/common/putil.c:883:22: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
                 fread(tzInfo->defaultTZBuffer, 1, tzInfo->defaultTZFileSize, tzInfo->defaultTZFilePtr);
                      ^
[943/11547] ACTION Generating JNI bindings from  /home/ubbvand2/himans...id_tools/sdk//platforms/android-19/android.jar/java/util/HashSet.class
FAILED: cd ../../content; ../base/android/jni_generator/jni_generator.py -j /home/ubbvand2/himanshu/FreshCheckout/src/third_party/android_tools/sdk//platforms/android-19/android.jar --input_file java/util/HashSet.class --output_dir ../out/Release/gen/content/jni --includes base/android/jni_generator/jni_generator_helper.h --optimize_generation 0
Traceback (most recent call last):
  File "../base/android/jni_generator/jni_generator.py", line 1346, in <module>
    sys.exit(main(sys.argv))
  File "../base/android/jni_generator/jni_generator.py", line 1342, in main
    GenerateJNIHeader(input_file, output_file, options)
  File "../base/android/jni_generator/jni_generator.py", line 1230, in GenerateJNIHeader
    jni_from_javap = JNIFromJavaP.CreateFromClass(input_file, options)
  File "../base/android/jni_generator/jni_generator.py", line 574, in CreateFromClass
    stderr=subprocess.PIPE)
  File "/usr/lib/python2.7/subprocess.py", line 709, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1326, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
[943/11547] CXX obj.host/third_party/icu/source/common/icuuc.triedict.o
ninja: build stopped: subcommand failed.

Does any one known what i am missing here?

Primiano Tucci

unread,
Apr 2, 2014, 7:29:59 AM4/2/14
to himansh...@brainvire.com, Chromium-dev
You're missing javap from libnb-javaparser-java.
But, really, follow the instructions, you'll be fine. ;-)


--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Herry Mistri

unread,
Apr 2, 2014, 9:37:01 AM4/2/14
to chromi...@chromium.org, himansh...@brainvire.com
Hello i have follow instruction site given by you in that following package which i am unable to install .

My System is Ubuntu 13.10 64 bit OS


sudo apt-get install python2.5-dev
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Package python2.5-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  python-old-doctools

E: Package 'python2.5-dev' has no installation candidate


sudo apt-get install gcc/g++
Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: Release 'g++' for 'gcc' was not found
E: Release 'g+' for 'gcc' was not found


sudo apt-get install libbzip2-dev
Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: Unable to locate package libbzip2-dev

Does thing all issue with effect when i again go for android build.

Thiago Farina

unread,
Apr 2, 2014, 10:06:35 AM4/2/14
to himansh...@brainvire.com, Chromium-dev
On Wed, Apr 2, 2014 at 10:37 AM, Herry Mistri <himansh...@brainvire.com> wrote:
Hello i have follow instruction site given by you in that following package which i am unable to install .

My System is Ubuntu 13.10 64 bit OS


sudo apt-get install python2.5-dev
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Package python2.5-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  python-old-doctools

E: Package 'python2.5-dev' has no installation candidate

You should be able to figure out the right package name with `sudo apt-cache search` and/or using your preferred search engine.

This is almost beyond the scope of this mailing list (i.e., this is not a help forum).

Thanks!

--
Thiago Farina

Torne (Richard Coles)

unread,
Apr 2, 2014, 10:12:31 AM4/2/14
to Thiago Farina, Herry Mistri, Chromium-dev
It looks like you're following the instructions for an ancient version of ubuntu from 2008, which we probably should just delete from the wiki entirely. Run build/install-build-deps.sh.


--

Primiano Tucci

unread,
Apr 2, 2014, 10:13:57 AM4/2/14
to Thiago Farina, Herry Mistri, Chromium-dev
Actually, there is no need to figure out anything. Just run the build/install-build-deps.sh script.

Thiago: shouldn't we update  https://code.google.com/p/chromium/wiki/LinuxBuildInstructionsPrerequisites and remove completely that obsolete list of packages (i.e. "remove anything below Please update that script if you find it's incomplete.")?
That would be probably be less confusing and make it more evident that you just need to run the install-deps script.


--

Herry Mistri

unread,
Apr 2, 2014, 11:32:46 AM4/2/14
to chromi...@chromium.org, Thiago Farina, Herry Mistri

@Primiano Tucci and Thiago Farina

Why i am getting below Error when i run

 sudo ./install-build-deps-android.sh

Here is my terminal logs:

Skipping debugging symbols.
Skipping ARM cross toolchain.
Skipping standalone NaCl dependencies.
Ign http://opensource.wandisco.com precise InRelease
Get:1 http://opensource.wandisco.com precise Release.gpg [198 B]                     
Get:2 http://opensource.wandisco.com precise Release [7,888 B]                       
Get:3 http://opensource.wandisco.com precise/git amd64 Packages [4,671 B]            
Ign http://extras.ubuntu.com saucy InRelease                                         
Get:4 http://opensource.wandisco.com precise/git i386 Packages [4,663 B]             
Hit http://extras.ubuntu.com saucy Release.gpg                                       
Hit http://extras.ubuntu.com saucy Release                                           
Hit http://extras.ubuntu.com saucy/main Sources                                      
Ign http://in.archive.ubuntu.com saucy InRelease                                     
Hit http://extras.ubuntu.com saucy/main amd64 Packages                               
Ign http://in.archive.ubuntu.com saucy-updates InRelease                           
Hit http://extras.ubuntu.com saucy/main i386 Packages                              
Ign http://in.archive.ubuntu.com saucy-backports InRelease                         
Hit http://in.archive.ubuntu.com saucy Release.gpg                                 
Hit http://in.archive.ubuntu.com saucy-updates Release.gpg                         
Ign http://opensource.wandisco.com precise/git Translation-en_IN                   
Ign http://opensource.wandisco.com precise/git Translation-en                      
Hit http://in.archive.ubuntu.com saucy-backports Release.gpg                       
Hit http://in.archive.ubuntu.com saucy Release                                     
Hit http://in.archive.ubuntu.com saucy-updates Release                               
Hit http://in.archive.ubuntu.com saucy-backports Release                             
Hit http://in.archive.ubuntu.com saucy/main Sources                                  
Ign http://security.ubuntu.com saucy-security InRelease                              
Hit http://in.archive.ubuntu.com saucy/restricted Sources
Hit http://security.ubuntu.com saucy-security Release.gpg
Hit http://security.ubuntu.com saucy-security Release
Hit http://in.archive.ubuntu.com saucy/universe Sources
Hit http://security.ubuntu.com saucy-security/main Sources            
Hit http://in.archive.ubuntu.com saucy/multiverse Sources
Hit http://security.ubuntu.com saucy-security/restricted Sources
Hit http://in.archive.ubuntu.com saucy/main amd64 Packages
Hit http://security.ubuntu.com saucy-security/universe Sources
Hit http://in.archive.ubuntu.com saucy/restricted amd64 Packages
Ign http://extras.ubuntu.com saucy/main Translation-en_IN
Hit http://security.ubuntu.com saucy-security/multiverse Sources
Hit http://in.archive.ubuntu.com saucy/universe amd64 Packages
Hit http://security.ubuntu.com saucy-security/main amd64 Packages
Ign http://extras.ubuntu.com saucy/main Translation-en
Hit http://in.archive.ubuntu.com saucy/multiverse amd64 Packages
Hit http://security.ubuntu.com saucy-security/restricted amd64 Packages
Hit http://security.ubuntu.com saucy-security/universe amd64 Packages                
Hit http://security.ubuntu.com saucy-security/multiverse amd64 Packages              
Hit http://in.archive.ubuntu.com saucy/main i386 Packages                            
Hit http://security.ubuntu.com saucy-security/main i386 Packages                     
Hit http://in.archive.ubuntu.com saucy/restricted i386 Packages                      
Hit http://security.ubuntu.com saucy-security/restricted i386 Packages               
Hit http://in.archive.ubuntu.com saucy/universe i386 Packages                        
Hit http://security.ubuntu.com saucy-security/universe i386 Packages                 
Hit http://in.archive.ubuntu.com saucy/multiverse i386 Packages                      
Hit http://security.ubuntu.com saucy-security/multiverse i386 Packages               
Hit http://in.archive.ubuntu.com saucy/main Translation-en                           
Hit http://security.ubuntu.com saucy-security/main Translation-en                    
Hit http://in.archive.ubuntu.com saucy/multiverse Translation-en                     
Hit http://security.ubuntu.com saucy-security/multiverse Translation-en              
Hit http://security.ubuntu.com saucy-security/restricted Translation-en              
Hit http://in.archive.ubuntu.com saucy/restricted Translation-en                     
Hit http://security.ubuntu.com saucy-security/universe Translation-en                
Hit http://in.archive.ubuntu.com saucy/universe Translation-en                       
Hit http://in.archive.ubuntu.com saucy-updates/main Sources                          
Hit http://in.archive.ubuntu.com saucy-updates/restricted Sources                    
Hit http://in.archive.ubuntu.com saucy-updates/universe Sources                      
Hit http://in.archive.ubuntu.com saucy-updates/multiverse Sources                    
Hit http://in.archive.ubuntu.com saucy-updates/main amd64 Packages                   
Hit http://in.archive.ubuntu.com saucy-updates/restricted amd64 Packages             
Hit http://in.archive.ubuntu.com saucy-updates/universe amd64 Packages
Hit http://in.archive.ubuntu.com saucy-updates/multiverse amd64 Packages
Ign http://security.ubuntu.com saucy-security/main Translation-en_IN
Hit http://in.archive.ubuntu.com saucy-updates/main i386 Packages
Ign http://security.ubuntu.com saucy-security/multiverse Translation-en_IN
Hit http://in.archive.ubuntu.com saucy-updates/restricted i386 Packages
Ign http://security.ubuntu.com saucy-security/restricted Translation-en_IN
Hit http://in.archive.ubuntu.com saucy-updates/universe i386 Packages
Ign http://security.ubuntu.com saucy-security/universe Translation-en_IN
Hit http://in.archive.ubuntu.com saucy-updates/multiverse i386 Packages
Hit http://in.archive.ubuntu.com saucy-updates/main Translation-en
Hit http://in.archive.ubuntu.com saucy-updates/multiverse Translation-en
Hit http://in.archive.ubuntu.com saucy-updates/restricted Translation-en
Hit http://in.archive.ubuntu.com saucy-updates/universe Translation-en
Hit http://in.archive.ubuntu.com saucy-backports/main Sources
Hit http://in.archive.ubuntu.com saucy-backports/restricted Sources
Hit http://in.archive.ubuntu.com saucy-backports/universe Sources
Hit http://in.archive.ubuntu.com saucy-backports/multiverse Sources
Hit http://in.archive.ubuntu.com saucy-backports/main amd64 Packages
Hit http://in.archive.ubuntu.com saucy-backports/restricted amd64 Packages
Hit http://in.archive.ubuntu.com saucy-backports/universe amd64 Packages
Hit http://in.archive.ubuntu.com saucy-backports/multiverse amd64 Packages
Hit http://in.archive.ubuntu.com saucy-backports/main i386 Packages
Hit http://in.archive.ubuntu.com saucy-backports/restricted i386 Packages
Hit http://in.archive.ubuntu.com saucy-backports/universe i386 Packages
Hit http://in.archive.ubuntu.com saucy-backports/multiverse i386 Packages
Hit http://in.archive.ubuntu.com saucy-backports/main Translation-en
Hit http://in.archive.ubuntu.com saucy-backports/multiverse Translation-en
Hit http://in.archive.ubuntu.com saucy-backports/restricted Translation-en
Hit http://in.archive.ubuntu.com saucy-backports/universe Translation-en
Ign http://in.archive.ubuntu.com saucy/main Translation-en_IN
Ign http://in.archive.ubuntu.com saucy/multiverse Translation-en_IN
Ign http://in.archive.ubuntu.com saucy/restricted Translation-en_IN
Ign http://in.archive.ubuntu.com saucy/universe Translation-en_IN
Ign http://in.archive.ubuntu.com saucy-updates/main Translation-en_IN
Ign http://in.archive.ubuntu.com saucy-updates/multiverse Translation-en_IN
Ign http://in.archive.ubuntu.com saucy-updates/restricted Translation-en_IN
Ign http://in.archive.ubuntu.com saucy-updates/universe Translation-en_IN
Ign http://in.archive.ubuntu.com saucy-backports/main Translation-en_IN
Ign http://in.archive.ubuntu.com saucy-backports/multiverse Translation-en_IN
Ign http://in.archive.ubuntu.com saucy-backports/restricted Translation-en_IN
Ign http://in.archive.ubuntu.com saucy-backports/universe Translation-en_IN
Fetched 17.4 kB in 34s (497 B/s)
Reading package lists... Done
Finding missing packages...
Packages required:  apache2.2-bin bison curl dpkg-dev elfutils fakeroot flex g++ git-core gperf language-pack-da language-pack-fr language-pack-he language-pack-zh-hant lib32gcc1 lib32stdc++6 libapache2-mod-php5 libasound2 libasound2-dev libatk1.0-0 libbluetooth-dev libbrlapi0.6 libbrlapi-dev libbz2-1.0 libbz2-dev libc6 libc6-i386 libcairo2 libcairo2-dev libcap2 libcap-dev libcups2 libcups2-dev libcurl4-gnutls-dev libdrm-dev libelf-dev libexif12 libexif-dev libexpat1 libfontconfig1 libfreetype6 libgconf2-dev libgl1-mesa-dev libglib2.0-0 libglib2.0-dev libglu1-mesa-dev libgnome-keyring0 libgnome-keyring-dev libgtk2.0-0 libgtk2.0-dev libjpeg-dev libkrb5-dev libnspr4 libnspr4-dev libnss3 libnss3-dev libpam0g libpam0g-dev libpango1.0-0 libpci3 libpci-dev libpcre3 libpixman-1-0 libpng12-0 libpulse0 libpulse-dev libsctp-dev libspeechd2 libspeechd-dev libsqlite3-0 libsqlite3-dev libssl-dev libstdc++6 libudev1 libudev-dev libwww-perl libx11-6 libxau6 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxi6 libxinerama1 libxrandr2 libxrender1 libxslt1-dev libxss-dev libxt-dev libxtst6 libxtst-dev mesa-common-dev openbox patch perl php5-cgi pkg-config python python-cherrypy3 python-dev python-psutil rpm ruby subversion ttf-dejavu-core ttf-indic-fonts ttf-kochi-gothic ttf-kochi-mincho ttf-mscorefonts-installer ttf-thai-tlwg wdiff xfonts-mathml zlib1g

E: Package 'ttf-thai-tlwg' has no installation candidate
The following command failed:  sudo apt-get install --reinstall apache2.2-bin bison curl dpkg-dev elfutils fakeroot flex g++ git-core gperf language-pack-da language-pack-fr language-pack-he language-pack-zh-hant lib32gcc1 lib32stdc++6 libapache2-mod-php5 libasound2 libasound2-dev libatk1.0-0 libbluetooth-dev libbrlapi0.6 libbrlapi-dev libbz2-1.0 libbz2-dev libc6 libc6-i386 libcairo2 libcairo2-dev libcap2 libcap-dev libcups2 libcups2-dev libcurl4-gnutls-dev libdrm-dev libelf-dev libexif12 libexif-dev libexpat1 libfontconfig1 libfreetype6 libgconf2-dev libgl1-mesa-dev libglib2.0-0 libglib2.0-dev libglu1-mesa-dev libgnome-keyring0 libgnome-keyring-dev libgtk2.0-0 libgtk2.0-dev libjpeg-dev libkrb5-dev libnspr4 libnspr4-dev libnss3 libnss3-dev libpam0g libpam0g-dev libpango1.0-0 libpci3 libpci-dev libpcre3 libpixman-1-0 libpng12-0 libpulse0 libpulse-dev libsctp-dev libspeechd2 libspeechd-dev libsqlite3-0 libsqlite3-dev libssl-dev libstdc++6 libudev1 libudev-dev libwww-perl libx11-6 libxau6 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxi6 libxinerama1 libxrandr2 libxrender1 libxslt1-dev libxss-dev libxt-dev libxtst6 libxtst-dev mesa-common-dev openbox patch perl php5-cgi pkg-config python python-cherrypy3 python-dev python-psutil rpm ruby subversion ttf-dejavu-core ttf-indic-fonts ttf-kochi-gothic ttf-kochi-mincho ttf-mscorefonts-installer ttf-thai-tlwg wdiff xfonts-mathml zlib1g

It produces the following output:

Reading package lists... Done
Building dependency tree      
Reading state information... Done
Package ttf-thai-tlwg is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  fonts-tlwg-waree fonts-tlwg-umpush fonts-tlwg-typo fonts-tlwg-typist
  fonts-tlwg-typewriter fonts-tlwg-sawasdee fonts-tlwg-purisa fonts-tlwg-norasi
  fonts-tlwg-mono fonts-tlwg-loma fonts-tlwg-kinnari fonts-tlwg-garuda

E: Package 'ttf-thai-tlwg' has no installation candidate

You will have to install the above packages yourself.

And for your reference i am attaching my

install-build-deps-android.sh file as well.

Can you give me revised one if my one have issues in it.

Thanks  to all of you for such support.

install-build-deps-android.sh

Thiago Farina

unread,
Apr 2, 2014, 12:05:03 PM4/2/14
to Primiano Tucci, Lei Zhang, Herry Mistri, Chromium-dev, Elliot Glaysher
On Wed, Apr 2, 2014 at 11:13 AM, Primiano Tucci <prim...@chromium.org> wrote:
Actually, there is no need to figure out anything. Just run the build/install-build-deps.sh script.

Thiago: shouldn't we update  https://code.google.com/p/chromium/wiki/LinuxBuildInstructionsPrerequisites and remove completely that obsolete list of packages (i.e. "remove anything below Please update that script if you find it's incomplete.")?
I'm OK with this, since maintaing it up to date and in sync with the script changes is pretty hard and time consuming.

+Lei, in case he has a different opinion.
 
--
Thiago Farina

Primiano Tucci

unread,
Apr 2, 2014, 12:11:48 PM4/2/14
to Herry Mistri, Chromium-dev, Thiago Farina
Herry, please note that, as stated in our docs, the Ubuntu distribution officially supported is Ubuntu 12.04. You are using Ubuntu 13.10.
It doesn't necessarily mean that you won't be able to compile Chromium on Ubuntu 13. But it means that you might need some extra manual steps to figure out the package names yourself.

> E: Package 'ttf-thai-tlwg' has no installation candidate
> You will have to install the above packages yourself. 

I think that output you got is telling you pretty clearly what to do... the answer is already inside your question.

Lei Zhang

unread,
Apr 2, 2014, 12:26:54 PM4/2/14
to Thiago Farina, Primiano Tucci, Herry Mistri, Chromium-dev, Elliot Glaysher
Several years ago, the wiki pages were public and anyone can edit
them. So lots of folks added instructions for various distros. It
appears the wiki pages got locked down at some point so only
chromium.org developers can edit them, so the prereq lists for other
distros are likely very much out of date. Even for Ubuntu,
install-build-deps.sh is really the master list and since nobody is
keeping the package list on the wiki in sync, it is also hopelessly
out of date. Given this, I'd say:

- For Ubuntu, tell developers to run install-build-deps.sh. We should
fix the script for reports like Herry's. In this case, the package to
install should be changed to fonts-thai-tlwg.
- For other distros, many already have a wiki page for Chromium, e.g.
[1] [2] If anyone care about those distros, update and move the
information to the distro's wiki and just update our prereqs page with
a link to theirs.

[1] https://fedoraproject.org/wiki/Chromium
[2] http://www.gentoo.org/proj/en/desktop/chromium/index.xml

Primiano Tucci

unread,
Apr 2, 2014, 12:51:59 PM4/2/14
to Lei Zhang, Thiago Farina, Herry Mistri, Chromium-dev, Elliot Glaysher
Ok I cleaned up the Ubuntu instructions on https://code.google.com/p/chromium/wiki/LinuxBuildInstructionsPrerequisites and added a note that the other distro are currently unsupported / outdated.

Feel free to remove / cleanup the instructions other Linux distros.

Herry Mistri

unread,
Apr 3, 2014, 6:13:04 AM4/3/14
to chromi...@chromium.org, Lei Zhang, Thiago Farina, Herry Mistri, Elliot Glaysher
Hello ,

I have resolved issue in Script Running for Script

 sudo ./install-build-deps-android.sh

By making change two patch set from this https://codereview.chromium.org/222183002/#ps20001

but i still i got below error


 ninja -C out/Release content_shell_apk
ninja: Entering directory `out/Release'
ninja: warning: multiple rules generate icudtl.dat. builds involving this target will not be correct; continuing anyway
[10/10286] ACTION Generating JNI bindings f...roid-19/android.jar/java/util/HashSet.class

FAILED: cd ../../content; ../base/android/jni_generator/jni_generator.py -j /home/ubbvand2/himanshu/FreshCheckout/src/third_party/android_tools/sdk//platforms/android-19/android.jar --input_file java/util/HashSet.class --output_dir ../out/Release/gen/content/jni --includes base/android/jni_generator/jni_generator_helper.h --optimize_generation 0
Traceback (most recent call last):
  File "../base/android/jni_generator/jni_generator.py", line 1346, in <module>
    sys.exit(main(sys.argv))
  File "../base/android/jni_generator/jni_generator.py", line 1342, in main
    GenerateJNIHeader(input_file, output_file, options)
  File "../base/android/jni_generator/jni_generator.py", line 1230, in GenerateJNIHeader
    jni_from_javap = JNIFromJavaP.CreateFromClass(input_file, options)
  File "../base/android/jni_generator/jni_generator.py", line 574, in CreateFromClass
    stderr=subprocess.PIPE)
  File "/usr/lib/python2.7/subprocess.py", line 709, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1326, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
[10/10286] ACTION Generating JNI bindings f...d-19/android.jar/android/view/Surface.class
FAILED: cd ../../ui/gl; ../../base/android/jni_generator/jni_generator.py -j /home/ubbvand2/himanshu/FreshCheckout/src/third_party/android_tools/sdk//platforms/android-19/android.jar --input_file android/view/Surface.class --output_dir ../../out/Release/gen/ui/gl/jni --includes base/android/jni_generator/jni_generator_helper.h --optimize_generation 0

Traceback (most recent call last):
  File "../../base/android/jni_generator/jni_generator.py", line 1346, in <module>
    sys.exit(main(sys.argv))
  File "../../base/android/jni_generator/jni_generator.py", line 1342, in main
    GenerateJNIHeader(input_file, output_file, options)
  File "../../base/android/jni_generator/jni_generator.py", line 1230, in GenerateJNIHeader
    jni_from_javap = JNIFromJavaP.CreateFromClass(input_file, options)
  File "../../base/android/jni_generator/jni_generator.py", line 574, in CreateFromClass

    stderr=subprocess.PIPE)
  File "/usr/lib/python2.7/subprocess.py", line 709, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1326, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
[10/10286] ACTION Generating JNI bindings f...droid.jar/android/widget/OverScroller.class
FAILED: cd ../../webkit/child; ../../base/android/jni_generator/jni_generator.py -j /home/ubbvand2/himanshu/FreshCheckout/src/third_party/android_tools/sdk//platforms/android-19/android.jar --input_file android/widget/OverScroller.class --output_dir ../../out/Release/gen/webkit/jni --includes base/android/jni_generator/jni_generator_helper.h --optimize_generation 0

Traceback (most recent call last):
  File "../../base/android/jni_generator/jni_generator.py", line 1346, in <module>
    sys.exit(main(sys.argv))
  File "../../base/android/jni_generator/jni_generator.py", line 1342, in main
    GenerateJNIHeader(input_file, output_file, options)
  File "../../base/android/jni_generator/jni_generator.py", line 1230, in GenerateJNIHeader
    jni_from_javap = JNIFromJavaP.CreateFromClass(input_file, options)
  File "../../base/android/jni_generator/jni_generator.py", line 574, in CreateFromClass

    stderr=subprocess.PIPE)
  File "/usr/lib/python2.7/subprocess.py", line 709, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1326, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
[10/10286] CXX obj/third_party/libyuv/source/libyuv_neon.row_neon.o

ninja: build stopped: subcommand failed.


Any idea what should i miss now.

Herry Mistri

unread,
Apr 3, 2014, 9:18:20 AM4/3/14
to chromi...@chromium.org

Now i am getting this Error after completing following steps:


Step1 ) gclient sync --nohooks   Run Fine

Step 2)
. build/android/envsetup.sh Run Fine no Error


Step 3) gclient runhooks No Error

Step 4) src$ sudo ./build/install-build-deps.sh

It run fine with Below message :

Installing Chrome OS fonts.
Chrome OS fonts already up-to-date in /usr/local/share/fonts/chromeos.
NOTE: If you were expecting the option to install 32bit libs,
please run with the --lib32 flag.

Installation complete.

Now tell me how to run this script with --lib32 flag if it required

Step 5) sudo ./build/install-build-deps-android.sh

It also complete with no Error.


Step 6)export GYP_DEFINES='OS=android'   Run Fine

Step 7) gclient runhooks No Error

Step 8) ninja -C out/Release content_shell_apk

It give below Error Report now :


src$ ninja -C out/Release content_shell_apk
ninja: Entering directory `out/Release'
ninja: warning: multiple rules generate icudtl.dat. builds involving this target will not be correct; continuing anyway
[51/10431] ACTION Generating JNI bindi....jar/android/widget/OverScroller.class
FAILED: cd ../../webkit/child; ../../base/android/jni_generator/jni_generator.py -j /home/ubbvand2/himanshu/FreshCheckout/src/third_party/android_tools/sdk//platforms/android-19/android.jar --input_file android/widget/OverScroller.class --output_dir ../../out/Release/gen/webkit/jni --includes base/android/jni_generator/jni_generator_helper.h --optimize_generation 0

Traceback (most recent call last):
  File "../../base/android/jni_generator/jni_generator.py", line 1346, in <module>
    sys.exit(main(sys.argv))
  File "../../base/android/jni_generator/jni_generator.py", line 1342, in main
    GenerateJNIHeader(input_file, output_file, options)
  File "../../base/android/jni_generator/jni_generator.py", line 1230, in GenerateJNIHeader
    jni_from_javap = JNIFromJavaP.CreateFromClass(input_file, options)
  File "../../base/android/jni_generator/jni_generator.py", line 576, in CreateFromClass
    jni_from_javap = JNIFromJavaP(stdout.split('\n'), options)
  File "../../base/android/jni_generator/jni_generator.py", line 524, in __init__
    signature=JniParams.ParseJavaPSignature(contents[lineno + 1]))]
  File "../../base/android/jni_generator/jni_generator.py", line 172, in ParseJavaPSignature
    return '"%s"' % signature_line[signature_line.index(prefix) + len(prefix):]
ValueError: substring not found
[51/10431] CXX obj/breakpad/src/client...iter/breakpad_client.minidump_writer.o

ninja: build stopped: subcommand failed.


So i am still unable to go ahead to build ContentShell.apk.

Primiano Tucci

unread,
Apr 7, 2014, 5:53:42 AM4/7/14
to Herry Mistri, Chromium-dev
I took some spare time during this WE and brought up two new fresh Ubuntu VMs on my personal machine, respectively 12.04 (the officially supported one)  and 13.10 (the one you are using). 
I performed a brand-new default Ubuntu desktop installation on both and then followed our instructions (without installing any extra magic package) and I do confirm that if you follow our instructions you will definitely be able to build both Chrome (desktop Linux) and content_shell_apk (for Android), on both Ubuntu 12.04 and 13.10.
Please remember that at the moment 13.10 is still not officially supported, which means that even if I tested today, tomorrow we might break it (or, more likely, you might be required to do some extra trickery),
However, it is not the case today. At the time of writing, both 12.04 and 13.10 worked for me.

In all honesty, I have to confess that even if our scripts and instructions are complete, they could (and should) be improved a bit, in particular:
1) fetch android --nohooks should do its job (and not run hooks) :)
2) probably the android fetch recipe shouldn't run hooks by default (i.e. without even passing --nohooks). Hooks will fail if you haven't met some prerequisites. But (most of the) prerequisites are supposed to be installed by the install-build-deps-android.sh, which are available only after running fetch. So we might have some logical cyclic dependency here :/
I'll try to fix our instructions / scripts soon.

Going back to your specific problem, you are getting that because you haven't followed our Java Prerequisites step

In order to avoid further roundtrips and ambiguities, I'm pasting below the sequence of commands which will give you a content_shell_apk starting from a brand new Ubuntu installation. If you get any further issue, at this point, I'm afraid it will be due to some weird package / env configuration in your system. I have testes that the steps below do actually work.

###############################################################################
primiano@ubuntu-vm-13:/src/chrome/src$ uname -a
Linux ubuntu-phoenix-13 3.11.0-19-generic #33-Ubuntu SMP Tue Mar 11 18:48:34 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
 
sudo mkdir /src
cd /src
sudo chown primiano .
sudo chmod 755 .
sudo apt-get install git
export PATH=$PATH:$(pwd)/depot_tools
mkdir chrome
cd chrome
fetch android --nosvn=true  # This will fail at some point running the hooks, don't worry.
src/build/install-build-deps-android.sh

# At this point a recent JDK (http://goo.gl/uPRSq), will give you jdk-6u35-linux-x64.bin

chmod u+x ~/Downloads/jdk-6u35-linux-x64.bin
sudo ~/Downloads/jdk-6u35-linux-x64.bin

cd /usr/lib/jvm/
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_35/bin/javac 50000
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_35/bin/java 50000
sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_35/bin/javaws 50000
sudo update-alternatives --install /usr/bin/javap javap /usr/lib/jvm/jdk1.6.0_35/bin/javap 50000
sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.6.0_35/bin/jar 50000
sudo update-alternatives --install /usr/bin/jarsigner jarsigner /usr/lib/jvm/jdk1.6.0_35/bin/jarsigner 50000
sudo update-alternatives --config javac
sudo update-alternatives --config java

cd /src/chrome/src
. build/android/envsetup.sh
GYP_DEFINES="OS=android" build/gyp_chromium

ninja -C out/Release content_shell_apk
###############################################################################

Cheers,
Primiano

Herry Mistri

unread,
Apr 7, 2014, 7:56:42 AM4/7/14
to chromi...@chromium.org, Herry Mistri
@Primiano

Yes ,you are right for 
Java Prerequisites step that i have not follow that properly ,but honestly i have followed them but i have follow then with installing java 1.8.0 not java1.6.0_35  So may be that cause issue in my building process.


As of now i have Ubuntu 12.04 and i have follow this instruction steps:

Get Android Chromium Code :

1)fetch android --nosvn=true

2)gclient sync --nohooks

3)cd $SRC/build
  sudo   ./install-build-deps.sh
 sudo ./install-build-deps-android.sh

Make sure both script done them job for install all packages .

4)
Java Prerequisites step make sure you install Java Version 1.6.0_35-b10 Because when i have install Java 1.8.0 that cause Error in
ninja build process


sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_35/bin/javac 50000
sudo update
-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_35/bin/java 50000
sudo update
-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_35/bin/javaws 50000
sudo update
-alternatives --install /usr/bin/javap javap /usr/lib/jvm/jdk1.6.0_35/bin/javap 50000
sudo update
-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.6.0_35/bin/jar 50000
sudo update
-alternatives --install /usr/bin/jarsigner jarsigner /usr/lib/jvm/jdk1.6.0_35/bin/jarsigner 50000
sudo update
-alternatives --config javac
sudo update
-alternatives --
config java
sudo update
-alternatives --config javaws
sudo update
-alternatives --config javap
sudo update
-alternatives --config jar
sudo update
-alternatives --config jarsigner

5)

. build/android/envsetup.sh
export GYP_DEFINES='OS=android'

gclient runhooks
ninja
-C out/Release content_shell_apk

Now it going for building without issue like

ValueError: substring not found
[51/10431] CXX obj/breakpad/src/client...iter/breakpad_client.minidump_writer.o


Hope my build process will not stop in mid of process. 

Thank you very mush for all support @Primiano. :)
Reply all
Reply to author
Forward
0 new messages