how to compile the chromium browser source code

Asked by Kim Liu

I get the chromium source code by running the following commands :
apt-get source chromium-browser
sudo apt-get build-dep chromium-browser

And now I have got three files as follows:
chromium-browser_49.0.2623.87-0ubuntu0.14.04.1.1112.debian.tar.xz
chromium-browser_49.0.2623.87-0ubuntu0.14.04.1.1112.dsc
chromium-browser_49.0.2623.87.orig.tar.xz

And now how should I compile the source code?

Thanks
Kim

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu chromium-browser Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Kim Liu (236443111-k) said :
#1

kim@ubuntu:~/workspace/kim$ cat /etc/os-release
NAME="Ubuntu"
VERSION="14.04.4 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.4 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Are you after Chromium version 49?

There are PPAs with various versions of Chromium-browser

This PPA has version 50
https://launchpad.net/~saiarcot895/+archive/ubuntu/chromium-beta

https://launchpad.net/ubuntu/+ppas?name_filter=chromium%2Dbrowser

Remember to filter the PPA for Trusty and you will see the packages offered for your release.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Why even bother compiling. The default repository has the version you are after
http://packages.ubuntu.com/trusty/chromium-browser

Revision history for this message
Kim Liu (236443111-k) said :
#4

Hi, actionparsnip

Thanks for comments.

I have download chromium-browser_49.0.2623.108.orig.tar.xz file and I still cannot compile it success.

 ./build/install-build-deps.sh success.
./build/gyp_chromium --depth=. failed

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

But why are you compiling at all?

Revision history for this message
Kim Liu (236443111-k) said :
#6

Actually I want to make a chromium browser with source code, which load a default website page and have no address bar and toolbar. And it also cannot be closed and minimized. But now I still cannot compile the source code.

actionparsnip, could u kindly help me with this?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

You won't get those options by compiling the application. Those are settings of the browser and of the underlying OS.

Revision history for this message
Kim Liu (236443111-k) said :
#8

I just need a chromium browser like which does not have toolbar or address bar. I would like to make a show in a high school to conduct my website page, so I do not want the browser to have other functions.

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

The command

sudo apt-get build-dep chromium-browser

downloads all required dependencies to build (compile) the chromium-browser package

and the command

apt-get source --compile chromium-browser

will download the source and try compiling it (with help of dpkg-buildpackage).

You have to be aware that you will get the same executable files as those in the repositories.

Revision history for this message
Bova Bovaev (bova-bovaev) said :
#10

Build failed on trusty amd64 in chroot. My steps:
1. debootstrap --variant=buildd --arch i386 trusty trusty_i386
2. copy my apt/sources.list to chroot
3. mount /dev/shm (tmpfs) in chroot
4. sudo chroot trusty_i386
5. apt-get update
6. apt-get source chromium-browser
7. apt-get build-dep chromium-browser
8. cd <source dir>
9. dpkg-buildpackage -us -uc

Build failed after 1-2 hours with error:
FAILED: cd ../../v8/tools/gyp; ../../../out/Release/mksnapshot --random-seed 314159265 --startup_blob ../../../out/Release/snapshot_blob.bin ""
../../../out/Release/mksnapshot: error while loading shared libraries: libicui18n.so: cannot open shared object file: No such file or directory
ninja: build stopped: subcommand failed.
make[1]: *** [build-stamp] Error 1
make[1]: Leaving directory `/chromium-browser-51.0.2704.79'
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

PS: I found libicui18n.so in libicu-dev, but compile also failed with this package with error:
FAILED: cd ../../v8/tools/gyp; ../../../out/Release/mksnapshot --random-seed 314159265 --startup_blob ../../../out/Release/snapshot_blob.bin ""
../../../out/Release/mksnapshot: symbol lookup error: ../../../out/Release/mksnapshot: undefined symbol: _ZTVN6icu_5613UnicodeStringE
ninja: build stopped: subcommand failed.
make[1]: *** [build-stamp] Error 1
make[1]: Leaving directory `/root/chromium-browser-51.0.2704.79'
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Revision history for this message
Manfred Hampl (m-hampl) said :
#11

Sorry, no idea.

Revision history for this message
Bova Bovaev (bova-bovaev) said :
#12

Build success after i replaced chroot to schroot and started debootstrap with --foreign

Can you help with this problem?

Provide an answer of your own, or ask Kim Liu for more information if necessary.

To post a message you must log in.