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.

7 comments:

sachin.ogeninfo said...
This comment has been removed by the author.
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...

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

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

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