no webview sample on Linux

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
User avatar
cutecode
Super wx Problem Solver
Super wx Problem Solver
Posts: 329
Joined: Fri Dec 09, 2016 7:28 am
Contact:

no webview sample on Linux

Post by cutecode » Sun Jun 07, 2020 12:08 pm

I have sample webview on

Code: Select all

wx/samples folder.
But thear's no webview samples on compiled folders

Code: Select all

 wx/_Debug/samples 
 and 
 wx/_Release/samples 
 
As far as I understand I should define wxUSE_WEBVIEW somewhere and rebuild the wswidgets?
I'm I right?

In what file should I define this variable on linux?

Thank you
wx 3.1.4 win/mac/linux

regards,
Alexander Saprykin
https://v2.dental-soft.ru

DavidHart
Site Admin
Site Admin
Posts: 3991
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Re: no webview sample on Linux

Post by DavidHart » Sun Jun 07, 2020 12:58 pm

Hi,
But thear's no webview sample on compiled folders
I should define wxUSE_WEBVIEW somewhere
No, it almost certainly means that 'configure' has noticed that your system is missing the webview dependencies. To confirm that, have a look at the configure output in <builddir>/config.log.

The solution depends on your distro/version and which GTK+ you are trying to build against. Recent distros no longer support the old, unmaintained libwebkit2. Instead they supply libwebkit2gtk (the name varies from distro to distro) which is only available for GTK+3, not GTK+2.

So install libwebkit2gtk and its dependencies; then rebuild wx, using ../configure --with-gtk=3 --<etc>

Regards,

David

User avatar
cutecode
Super wx Problem Solver
Super wx Problem Solver
Posts: 329
Joined: Fri Dec 09, 2016 7:28 am
Contact:

Re: no webview sample on Linux

Post by cutecode » Mon Jun 08, 2020 12:38 am

Thank you, DavidHart!!!

I rebuilded wx with gtk3 and the sample did showed up on samples folder.
wx 3.1.4 win/mac/linux

regards,
Alexander Saprykin
https://v2.dental-soft.ru

Post Reply