Closed amansx closed 2 years ago
I've never tested this on mac. It should work because of the multithreading architecture. I can't test this that good on my pc. Do you have more information. Can you give me a step by step instruction what you did? Have you followed the Application Layout guide from the CEF Wiki?
I did not, I'm going through it again and will let you know
on of the issues I found was the ifdef on linux you'll probably need to add _APPLE && MACH__
I'll work with you over the next few months and can help get this out
PR are welcome as i din't have much time the next days
Dropping a note here, in case someone is still around.
I got this compiling by:
#ifdef linux
on the darwin files with #if defined(__APPLE__) && defined(__MACH__)
#cgo darwin LDFLAGS: -F./Release -framework "Chromium Embedded Framework"
This makes go compile all cfe
(and the examples).
Then I created an app directory, following the layout. When I try to run the binary, I get the same error as above.
It's not very clear what I should be putting as the "helper" binary? I copied the same binary that go generated.
Hello everyone. I've found a bit of time to try cefgo on an old MacMini back from 2011. I made some changes to compile it on macOS. I also added a note for bundling on macOS and refer to the CEF Wiki. Sadly i could not run the example on my MacMini. The exception i got is related with the GPU. Could you guys try it?
[example app]fillMainArgs [./.app/Contents/MacOS/app --enable-logging --v=10] 3 [example app]ExecuteProcess [example app]Initialize Settings [example app]RemoteDebuggingPort= 6696 [example app]IgnoreCertificateErrors= false [example app]CommandLineArgsDisabled= false [example app]File /Users/aman/Projects/gomvc/icon.png does not exist [example app]fillMainArgs [./.app/Contents/MacOS/app --enable-logging --v=10] 3 init_gui cef_initialize on_before_command_line_processing on_register_custom_schemes [0915/113659.510557:VERBOSE1:pref_proxy_config_tracker_impl.cc(185)] 0xce58da0: set chrome proxy config service to 0xce5a4c0 [0915/113659.512004:VERBOSE1:webrtc_internals.cc(119)] Could not get the download directory. get_browser_process_handler [0915/113659.513443:WARNING:gpu_process_host.cc(1217)] The GPU process has crashed 1 time(s) get_resource_bundle_handler [0915/113659.520208:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_cookies_allowed_for_urls [0915/113659.520248:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_cookies_blocked_for_urls [0915/113659.520270:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_cookies_sessiononly_for_urls [0915/113659.520289:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_images_allowed_for_urls [0915/113659.520306:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_images_blocked_for_urls [0915/113659.520323:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_insecure_content_allowed_for_urls [0915/113659.520340:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_insecure_content_blocked_for_urls [0915/113659.520357:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_javascript_allowed_for_urls [0915/113659.520374:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_javascript_blocked_for_urls [0915/113659.520391:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_notifications_allowed_for_urls [0915/113659.520408:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_notifications_blocked_for_urls [0915/113659.520425:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_plugins_allowed_for_urls [0915/113659.520441:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_plugins_blocked_for_urls [0915/113659.520458:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_popups_allowed_for_urls [0915/113659.520474:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_popups_blocked_for_urls [0915/113659.520491:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_web_usb_ask_for_urls [0915/113659.520508:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_web_usb_blocked_for_urls [0915/113659.520525:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_legacy_cookie_access_allowed_for_domains [0915/113659.520542:VERBOSE2:content_settings_policy_provider.cc(313)] Skipping unset preference: profile.managed_auto_select_certificate_for_urls initialize_window_delegate cef_run_message_loop [0915/113659.562396:WARNING:gpu_process_host.cc(1217)] The GPU process has crashed 2 time(s) [0915/113659.563684:WARNING:gpu_process_host.cc(1217)] The GPU process has crashed 3 time(s) [0915/113659.565045:WARNING:gpu_process_host.cc(1217)] The GPU process has crashed 4 time(s) [0915/113659.566373:WARNING:gpu_process_host.cc(1217)] The GPU process has crashed 5 time(s) [0915/113659.567625:WARNING:gpu_process_host.cc(1217)] The GPU process has crashed 6 time(s) [0915/113659.567658:FATAL:gpu_data_manager_impl_private.cc(439)] GPU process isn't usable. Goodbye.