Building Chromium on Ubuntu 12.04

595 views
Skip to first unread message

Vishvesh Community

unread,
Oct 22, 2012, 8:16:46 AM10/22/12
to chromi...@chromium.org
Hi All,
    I am a newbie trying to build Chromium on Ubuntu 12.04. I went through few sites but I have ended up having build errors. I just want to build basic Chromium debug build to understand the working on Chrome Packaged Apps.

    Can anybody help me with the instructions on how to build for the same.

Thanks and Regards,
Vishvesh

Anton Vayvod

unread,
Oct 22, 2012, 8:31:07 AM10/22/12
to vishve...@gmail.com, chromi...@chromium.org
Hi,

it would certainly help if you posted a) the exact steps you followed (installing prerequisites, getting source code, building) and b) your build log with build errors.
Would asking specific question on how packaged apps work instead of trying to build/debug Chrome work for you (there even should be a separate mailing list for that, maybe chromium-extensions[at]chromium.org?)

Anton.



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

ranjan kumar

unread,
Oct 23, 2012, 6:47:28 PM10/23/12
to ava...@google.com, vishve...@gmail.com, chromi...@chromium.org
Hi Vishvesh,

You might want to follow the steps as outlined at http://code.google.com/p/chromium/wiki/LinuxBuildInstructions. I follwed exactly the same steps on Ubuntu12.04 and i could build Chrome without errors. 
--
Thanks & Regards,
Ranjan Kumar

Vishvesh Community

unread,
Oct 26, 2012, 3:11:08 AM10/26/12
to chromi...@chromium.org, ranjan kumar

Thanks Ranjan, I was able to set things up correctly.

I am building getting follwoing build errors. 

out/Debug/../../third_party/gold/gold32: fatal error: out/Debug/chrome: mmap: failed to allocate 1361962892 bytes for output file: Cannot allocate memory
collect2: ld returned 1 exit status
make: *** [out/Debug/chrome] Error 1

My machine configuration is 
Ubuntu 12.04, 32 bit virtual machine and I have allocated 1 GB of RAM for the virtual box. Is this causing the problem?

Thanks and Regards,
Vishvesh

Simon Hong

unread,
Oct 26, 2012, 3:24:17 AM10/26/12
to vishve...@gmail.com, chromi...@chromium.org, ranjan kumar
On Fri, Oct 26, 2012 at 4:11 PM, Vishvesh Community <vishve...@gmail.com> wrote:

Thanks Ranjan, I was able to set things up correctly.

I am building getting follwoing build errors. 

out/Debug/../../third_party/gold/gold32: fatal error: out/Debug/chrome: mmap: failed to allocate 1361962892 bytes for output file: Cannot allocate memory
collect2: ld returned 1 exit status
make: *** [out/Debug/chrome] Error 1

My machine configuration is 
Ubuntu 12.04, 32 bit virtual machine and I have allocated 1 GB of RAM for the virtual box. Is this causing the problem?
 
Linker complains your small memory.
1GB RAM is not sufficient for build chromium.
Furthermore, debug build needs more memory than release build.
If you want debug build, I think you need more memory more than 4GB,

ranjan kumar

unread,
Oct 29, 2012, 1:23:57 AM10/29/12
to Simon Hong, vishve...@gmail.com, chromi...@chromium.org
http://code.google.com/p/chromium/wiki/LinuxBuildInstructionsPrerequisites#Memory_space

I have the same OS but 4GB RAM and I was getting similar failure message. After i increased the swap space to 10GB i could build it successfully. Although 1GB RAM seems insufficient. You may give it a try.

Also, try building just Chrome and that too in Release mode. http://code.google.com/p/chromium/wiki/LinuxBuildInstructions#Build_just_chrome

$ make chrome BUILDTYPE=Release

Vishvesh Community

unread,
Oct 29, 2012, 2:19:58 AM10/29/12
to ranjan kumar, Simon Hong, chromi...@chromium.org
Thanks Ranjan, Currently I am trying out Simon's suggestion. I installed ninja using "apt-get install" and building in release mode.

Now I am building on a Machine with 4 GB RAM. Debug build failed on it. I will try your suggestion.

Regards,
Vishvesh

Vishvesh Community

unread,
Oct 29, 2012, 7:25:55 AM10/29/12
to ranjan kumar, Simon Hong, chromi...@chromium.org
I was able to build chrome in release mode. I used "make chrome BUILDTYPE=Release" to make the build.

Is this enough to build code related  to Google Applications (CRX extension)? Second thing is that I was not able to find the binaries. Where are the chromium binaries saved?

Thanks and Regards,
Vishvesh

Simon Hong

unread,
Oct 29, 2012, 7:41:57 AM10/29/12
to Vishvesh Community, ranjan kumar, chromium-dev@chromium org


2012. 10. 29. 오후 8:25에 "Vishvesh Community" <vishve...@gmail.com>님이 작성:


>
> I was able to build chrome in release mode. I used "make chrome BUILDTYPE=Release" to make the build.
>
> Is this enough to build code related  to Google Applications (CRX extension)?

Yes  you can run extensions.


Second thing is that I was not able to find the binaries. Where are the chromium binaries saved?

You can run out/Release/chrome

Reply all
Reply to author
Forward
0 new messages