Thursday, July 11, 2013

Building chromiumembedded on Ubuntu with pkg-config

Even after installing the necessary gtk libraries, you may find chromiumembedded build script complaining about a missing gtk/gtk.h file. To remedy this, you just have to tell the script where to find it.

First, make sure you have the a suitable version installed.

$ pkg-config --cflags gtk+-3.0
-pthread -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libpng12

pkg-config will output the necessary include parameters so the build script knows where to find the script.  If pkg-config returns nothing, make sure you have a gtk development package installed.

Once that is properly set up, add this to the build file's cflags.  Find the line in the Makefile that defines the cflags.  Add the `pkg-config` in backticks, so when make runs, it will evaluate the flags and include the correct directions.

CFLAGS.target ?= $(CFLAGS)
becomes
CFLAGS.target ?= $(CFLAGS) `pkg-config --cflags gtk+-3.0`


If everything worked, you should have a Debug or Release directory with a beautiful libcef.so library in it.

30 comments:

Unknown said...

As I am fresher I have an interest in new Technology. So, now I am planning to learn Informatica in your blog i had some interesting concepts, it was crystal clear to read keep sharing thanks SAS Training in Chennai| SAS Course in Chennai

Aashi siva said...

Really, these quotes are the holistic approach towards mindfulness. In fact, all of your posts are. Proudly saying I’m getting fruitfulness out of it what you write and share. Thank you so much to both of you.

J2ee Training in Chennai Saidapet

Shalini said...

I just see the post i am so happy to the communication science post of information's.So I have really enjoyed and reading your blogs for these posts.Any way I’ll be replay for your great thinks and I hope you post again soon.

digital marketing company in india

Digital Marketing said...

hello sir,
thanks for giving that type of information. digital marketing company in delhi

sachin.ogeninfo said...
This comment has been removed by the author.
sachin.ogeninfo said...

Lyrics with music
English Song lyrics
punjabi Song lyrics

Misty said...

I really enjoyed your blog Thanks for sharing such an informative post.
clipping path
clipping path service

Dharani M said...

Nice post
java training in Marathahalli

spring training in Marathahalli

java training institute in Marathahalli

spring and hibernate training in Marathahalli

sachin.ogeninfo said...

website designing company in Gurgaon
ppc company in Gurgaon
seo company in Gurgaon

sachin.ogeninfo said...

plastic pouch manufacturers in delhi
wall putty bag manufacturers
gusseted bags manufacturers

sachin.ogeninfo said...

Haier Fridge Repair In Faridabad
Panasonic Fridge Repair In Faridabad

sachin.ogeninfo said...

refrigerator repair in gurgaon
lg fridge repair in gurgaon
washing machine repair in gurgaon

شركة المثالي سوبر said...

شركة عزل الاسطح بالخبر

رجب البرنس said...


شركة تنظيف خزانات بحائل
شركة تنظيف فلل بحائل
شركة تسليك مجارى بحائل


sachindigitalplanner said...

Rice Packaging Bags Manufacturers
Pouch Manufacturers

sachindigitalplanner said...

we have provide the best ppc service in Gurgaon.
ppc company in gurgaon
website designing company in Gurgaon

sachindigitalplanner said...

we have provide the best fridge repair service.
fridge repair in faridabad
Bosch Fridge Repair in Faridabad
Godrej Fridge Repair in Faridabad
Haier Fridge Repair in Faridabad
Videocon Fridge Repair in Faridabad

sachindigitalplanner said...

Bali Honeymoon Packages From Delhi
Bali Honeymoon Packages From Chennai
Hong Kong Packages From Delhi
Europe Packages from Delhi

rohini said...

"Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here."
Mobile phone Battery replacement | Mobile phone unlocking service | 100% genuine mobile parts | Mobile service center in chennai | Dell laptop service center in chennai | Mobile phone glass replacement

cdcdcdcd said...


Thanks for sharing the information. It is very useful for my future. keep sharing
Deer Hunting Tips Camping Trips Guide DEER HUNTING TIPS travel touring tips

cdcdcdcd said...


Very enjoyable to visit this blog and find something exciting and amazing.
Still Hunting Method
Hunting psych tips Survival Tips Travel Touring Tips

cdcdcdcd said...

NICE for giving a chance to share ideas for your community I really thanks for that great post.
travel trekking tips
see the link Tent Camping 101 Exploring Smithriver

شوشو said...

شركة تنظيف براس تنوره
شركة تسليك مجارى بالخبر
شركة تسليك مجاري بالقطيف
شركة مكافحة حشرات بالخبر

Lisa Resnick said...


Really nice and informative blog, keep it up buddy…
clipping path

devasuresh121@gmail.com said...

Thanks for this blog are informative contents step by step. I here by attached my site would you see this blog.

7 tips to start a career in digital marketing

“Digital marketing is the marketing of product or service using digital technologies, mainly on the Internet, but also including mobile phones, display advertising, and any other digital medium”. This is the definition that you would get when you search for the term “Digital marketing” in google. Let’s give out a simpler explanation by saying, “the form of marketing, using the internet and technologies like phones, computer etc”.

we have offered to the advanced syllabus course digital marketing for available join now.

more details click the link now.

https://www.webdschool.com/digital-marketing-course-in-chennai.html

devasuresh121@gmail.com said...

Amazing article useful information.

Web designing trends in 2020

When we look into the trends, everything which is ruling today’s world was once a start up and slowly begun getting into. But Now they have literally transformed our lives on a tremendous note. To name a few, Facebook, Whats App, Twitter can be a promising proof for such a transformation and have a true impact on the digital world.

we have offered to the advanced syllabus course web design and development for available join now.

more details click the link now.

https://www.webdschool.com/web-development-course-in-chennai.html

Angel Ana said...

Searched a lot of sites but the thing was not clear. This Article is Really Fantastic And You have written the blog in proper order so the visitors can understand easily. Thanks For Sharing The Valuable Post.We Provide photoshop clipping path services

Clipping Path Product said...

Very good the post and posting the blog.

Debug said...

Mobile App Development Services in Gurgaon
Digital Marketing Services in Gurgaon

Gaurav Sharma said...

Good blog informatve for readers such a nice content keep posting thanks for sharing
Best Hotel in Mussoorie
business news in hindi
CHOPTA – “Mini Switzerland of Uttrakhand"
TOP 20 HILL STATIONS OF INDIA