Building Chromium from Source

New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.
jesmith
Black ninja
Black ninja
Posts: 31
Joined: 16 Jan 2012, 18:48
Location: USA

Building Chromium from Source

Post#1 by jesmith » 19 Aug 2014, 18:51

I have to rebuild chromium from source (I need to turn NPAPI support back on). I got the sources, but immediately ran into a dependency problem (porteus not including python is the first one I hit). Before I start the process of building all my dependencies from sources, would it make more sense to set up a Slackware 14 machine and build chromium there?

User avatar
Slaxmax
Contributor
Contributor
Posts: 408
Joined: 03 Jan 2013, 09:51
Distribution: KDE4
Location: Campinas Brazil https://goo.gl/yrxwKi

Re: Building Chromium from Source

Post#2 by Slaxmax » 19 Aug 2014, 20:25

NPAPI support was removed from Linux in Chromium 35.
If you need NPAPI download Chromium below version 35.
If you need Chromium 35 or higher with flash player (pepperflash) download the packages from alienbob
http://www.slackware.com/~alien/slackbuilds/chromium/
and pepperflash
http://www.slackware.com/~alien/slackbu ... sh-plugin/

see too
http://alien.slackbook.org/blog/chromiu ... and-pepper
“DNA is like a computer program but far, far more advanced than any software ever created.”
― Bill Gates, The Road Ahead

jesmith
Black ninja
Black ninja
Posts: 31
Joined: 16 Jan 2012, 18:48
Location: USA

Re: Building Chromium from Source

Post#3 by jesmith » 19 Aug 2014, 21:05

I already found a patch that purports to add NPAPI support back in for linux (it's just one ifdef change). I'd rather be up-to-date with Chromium if possible, which is why I want to try building with that patch.

(This has nothing to do with Flash. I need NPAPI for a different plugin that makes chrome support my multi-touch hardware.)

I've installed Slackware 14.1 on a VM on my Mac, and I've already made some pretty good progress with the build. So I think that's probably what I'm going to do.

-Joshua

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Building Chromium from Source

Post#4 by fanthom » 20 Aug 2014, 05:15

if you reckon that adding missing deps to porteus will take longer than installing full slackware then you should go with slackware.
just make sure that slackware version matches the one on which porteus was based :wink:
Please add [Solved] to your thread title if the solution was found.

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Building Chromium from Source

Post#5 by francois » 25 Aug 2014, 00:34

And please share your chromium module. It would be appreciated. :)
Prendre son temps, profiter de celui qui passe.

User avatar
wread
Module Guard
Module Guard
Posts: 1255
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v5.0-kde-64 bits
Location: Santo Domingo
Contact:

Re: Building Chromium from Source

Post#6 by wread » 26 Aug 2014, 02:08

@jesmith
Python is contained in 07-printing. Install it and find what you still need.
Months ago, I compiled chromium version 25 from source and I didn't find it so bad at all!
Don't be afraid! You can make it; only by doing you can learn...

Good luck! :D
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

jesmith
Black ninja
Black ninja
Posts: 31
Joined: 16 Jan 2012, 18:48
Location: USA

Re: Building Chromium from Source

Post#7 by jesmith » 26 Aug 2014, 17:29

It's still crunching along. The following things were missing from Slackware 14.1:

pulseaudio
json-c
PAM (I had to add #include <sys/resource.h> to one file to get this to compile)

Also, there were a couple files in the chromium source that include gssapi.h that I had to change to gss/api.h

The other big gotcha is that I'm building on a 32-bit system (of course), but chromium includes clang++ built for a 64-bit system, which means it can't compile anything. The workaround it to rebuild clang++

tools/clang/scripts/update.sh --force-local-build --without-android

I also had to crank the VM I'm using up to 2GB of RAM, because it couldn't link with only 1GB.

Looks like it might finally finish compiling today. I'll keep you posted...

jesmith
Black ninja
Black ninja
Posts: 31
Joined: 16 Jan 2012, 18:48
Location: USA

Re: Building Chromium from Source

Post#8 by jesmith » 26 Aug 2014, 20:30

Hmph. Well it turns out that the patch I found which alleged to re-enable NPAPI support doesn't actually work. So after all that, I have a brand-spanking-new clean build that still doesn't support NPAPI plugins. Grrr.

Making a porteus module you could install would actually be a lot of work, because chromium doesn't have anything like "make install."

So at this point, I'm not inclined to do anything more with this adventure. Instead, I guess I'm going to go figure out how to convert the existing NPAPI plugin I have into one of the other supported plugin formats.

-Joshua

User avatar
wread
Module Guard
Module Guard
Posts: 1255
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v5.0-kde-64 bits
Location: Santo Domingo
Contact:

Re: Building Chromium from Source

Post#9 by wread » 28 Aug 2014, 01:58

Maybe chromium-36 is what you need; this is alien's Bob compilation. Try it!

Regards 8)
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

jesmith
Black ninja
Black ninja
Posts: 31
Joined: 16 Jan 2012, 18:48
Location: USA

Re: Building Chromium from Source

Post#10 by jesmith » 02 Sep 2014, 20:08

I will! But NPAPI support went away in 35, so I'm probably screwed. I'm pretty sure the next step is for me to just bite the bullet and create the functionality I need using native message APIs instead of a plugin.

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Building Chromium from Source

Post#11 by francois » 03 Sep 2014, 08:02

Here is an interesting article from linux insider on the differences between chromium and chrome, that seems to favor chromium in terms of security:
http://www.linuxinsider.com/story/79510.html
It seem that the little advantage of using chromium is anihilated by the fact that you would log in with a gmail account.
Prendre son temps, profiter de celui qui passe.

Post Reply