How to build a GTK + CEF simple application

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

How to build a GTK + CEF simple application

Postby RdlP » Wed Oct 11, 2017 4:03 pm

I want to use CEF with GTK3, but I have no idea whats step I should follow.

I see that in cefbuilds (http://opensource.spotify.com/cefbuilds/index.html) I can download prebuild package. If I download for linux when I extract it in the test/cefclient I can see a GTK example. But I have some questions

- how can I compile only that example and not the whole project?
- If I open the cefclient_gtk.cc file I can see that it requires many includes

Code: Select all
#include <stdlib.h>
#include <unistd.h>
#include <string>

#include "include/base/cef_logging.h"
#include "include/base/cef_scoped_ptr.h"
#include "include/cef_app.h"
#include "include/cef_command_line.h"
#include "include/wrapper/cef_helpers.h"
#include "tests/cefclient/browser/main_context_impl.h"
#include "tests/cefclient/browser/test_runner.h"
#include "tests/shared/browser/client_app_browser.h"
#include "tests/shared/browser/main_message_loop_external_pump.h"
#include "tests/shared/browser/main_message_loop_std.h"
#include "tests/shared/common/client_app_other.h"
#include "tests/shared/common/client_switches.h"
#include "tests/shared/renderer/client_app_renderer.h"


all these includes are really necessary?

Thanks
RdlP
Newbie
 
Posts: 1
Joined: Wed Oct 11, 2017 3:58 pm

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 38 guests