Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't make the gtk3 version work with latest CEF #16

Open
antoyo opened this issue Aug 5, 2019 · 4 comments
Open

Can't make the gtk3 version work with latest CEF #16

antoyo opened this issue Aug 5, 2019 · 4 comments

Comments

@antoyo
Copy link

antoyo commented Aug 5, 2019

Hi.
I'm trying to run the linux gtk3 example, but I get a blank window.
When I'm trying with latest cef (with the update to the version file), here's the output:

gcc -std=c99 -Wall -Werror -o Release/cefcapi-gtk3 -I. -I.. -Wl,-rpath,. -L./Release examples/main_linux.c -lX11 -lcef `pkg-config --libs --cflags gtk+-3.0`
cd Release/ && ./cefcapi-gtk3 && cd ../

Process args: none (Main process)

initialize_cef_app
initialize_cef_base_ref_counted
cef_base_ref_counted_t.size = 72
cef_execute_process, argc=1
cef_base_ref_counted_t.add_ref
cef_base_ref_counted_t.release
cef_initialize
on_register_custom_schemes
get_resource_bundle_handler
get_render_process_handler

Process args: --type=zygote --log-file=/Source/cefcapi/Release/debug.log --log-severity=warning --lang=en-US 

initialize_cef_app
initialize_cef_base_ref_counted
cef_base_ref_counted_t.size = 72
cef_execute_process, argc=5
cef_base_ref_counted_t.add_ref
cef_base_ref_counted_t.release
on_register_custom_schemes
get_resource_bundle_handler
get_browser_process_handler
initialize_gtk 3.24.10

Process args: --type=gpu-process --field-trial-handle=2712795478167384992,3790689281789308514,131072 --disable-features=NetworkService --log-file=/Source/cefcapi/Release/debug.log --log-severity=warning --lang=en-US --gpu-preferences=KAAAAAAAAAAgAAAgAQAAAAAAAAAAAGAAAAAAAAAAAAAIAAAAAAAAAAgAAAAAAAAA --log-file=/Source/cefcapi/Release/debug.log --service-request-channel-token=8067843791169823745 

initialize_cef_app
initialize_cef_base_ref_counted
cef_base_ref_counted_t.size = 72
cef_execute_process, argc=10
cef_base_ref_counted_t.add_ref
cef_base_ref_counted_t.release
on_register_custom_schemes
get_resource_bundle_handler
create_gtk_window
Window xid 39845890
initialize_client_handler
initialize_cef_base_ref_counted
cef_base_ref_counted_t.size = 152
cef_browser_host_create_browser
get_request_handler
cef_run_message_loop
window_destroy_signal
cef_shutdown

When I try with the version specified in the readme, I get this error:

(cefcapi-gtk3:4837): Gtk-ERROR **: 13:17:04.138: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported

(The gtk2 version works fine with the older cef version.)

I'm on ArchLinux and use gtk+ 3.24.

Thanks for your help.

@cztomczak cztomczak changed the title Can't make the gtk3 version work Can't make the gtk3 version work with latest CEF Aug 5, 2019
@cztomczak
Copy link
Owner

cztomczak commented Aug 5, 2019

Only branch 3202 was tested as specified in README. You have to build CEF from sources with "use_gtk3=true" GN define to use GTK 3.

Update: FYI, latest version of CEF works with any version of GTK, so that define is not required.

@vipertecpro
Copy link

Only branch 3202 was tested as specified in README. You have to build CEF from sources with "use_gtk3=true" GN define to use GTK 3.

Update: FYI, latest version of CEF works with any version of GTK, so that define is not required.

Why don't you write the steps or command to make that happen ?

@cztomczak
Copy link
Owner

@vipertecpro See https://bitbucket.org/chromiumembedded/cef/wiki/AutomatedBuildSetup.md#markdown-header-linux-configuration . Modify GN_DEFINES to add "use_gtk3=true".

@vipertecpro
Copy link

Okay, go it thanks that really helped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants