I would like to use wxWebView on Ubuntu 16.04.
I used to have webkitgtk-1.0 but this is no longer the case, and Ubuntu now proposes 'libwebkitgtk-1.0-common'. I guess (hope) it fills the same functions as webkitgtk-1.0.
'configure' looks for webkit-1.0, but this kit is not available. How can I convince configure to accept 'libwebkitgtk-1.0-common' and include wxWebView in the configuration?
installing webkitgtk
Re: installing webkitgtk
Hi,
What are you trying to do? To build wxWidgets, configuring with --enable-webview? If so, you probably need to install libwebkitgtk-dev.
Otherwise please give more details about what you wish to build.
Regards,
David
What are you trying to do? To build wxWidgets, configuring with --enable-webview? If so, you probably need to install libwebkitgtk-dev.
Otherwise please give more details about what you wish to build.
Regards,
David
-
- Super wx Problem Solver
- Posts: 488
- Joined: Fri Oct 27, 2006 4:35 pm
- Location: Paris, France
- Contact:
Re: installing webkitgtk
I installed libwebkitgtk-dev, which configure accepts as a webkit. However, the application fails with this kit (it did not with the older webkitgtk-1.0). BTW, gdb also fails, with a segment fault so that I cannot trace where the problem is
I removed libwebkitgtk-dev and installed libwebkitgtk-1.0-0-amd64. configure declares 'webkitgtk not found' & 'webkit not found', and disables wxWebView.
This seems strange, as libwebkitgtk-1.0-0 is the current offering on Ubuntu.
I removed libwebkitgtk-dev and installed libwebkitgtk-1.0-0-amd64. configure declares 'webkitgtk not found' & 'webkit not found', and disables wxWebView.
This seems strange, as libwebkitgtk-1.0-0 is the current offering on Ubuntu.
Re: installing webkitgtk
The wx3.1.1 'webview' sample doesn't crash on my ubuntu 16.04 vbox guest. Does it crash for you?
If not, presumably the problem is how your program and libwebkitgtk interact.
If not, presumably the problem is how your program and libwebkitgtk interact.
Why? If you try to build without the dev package and its dependencies, you want configure to notice and refuse to try to build wx. If configure failed to notice, compilation would fail instead.This seems strange
What do you mean? Does gdb crash when it starts? Does it crash when debugging other programs (try e.g. the wx 'minimal' sample, then the 'webview' sample)? Or only when debugging your program? Maybe get the latest gdb version; it's easy to build.BTW, gdb also fails, with a segment fault
-
- Super wx Problem Solver
- Posts: 488
- Joined: Fri Oct 27, 2006 4:35 pm
- Location: Paris, France
- Contact:
Re: installing webkitgtk
After reinstalling libwebkitgtk-dev everything compiles as expected.
My application (developed with DialogBlocks) requires an access to a https website. since I did not want to delve into https-specific kits, I decided that wxWebView would be sufficient, but that requires to take care of the fact that wxWebView works in an asynch mode.
Basically, I have the url loaded into wxWebView browser, and a timer is launched on a 'DocumnetLoaded' event.
When the page is loaded it is processed to extract the data.
The mechanism works fine in Windows (Visual Studio) and in OSX (compiled with gcc/g++).
Under Ubuntu/GTK, using the same code (copied from the Windows/OSX version) the mechanism fails, and the DocumentLoaded event is not reached. gdb collapses somewhere after the url is loaded.
I have no idea why this happens, and the debugger is not very helpful inasmuch as it must be debugged before it can be of any help.
I finally disabled the functions which use wxWebView in the GTK version.
My application (developed with DialogBlocks) requires an access to a https website. since I did not want to delve into https-specific kits, I decided that wxWebView would be sufficient, but that requires to take care of the fact that wxWebView works in an asynch mode.
Basically, I have the url loaded into wxWebView browser, and a timer is launched on a 'DocumnetLoaded' event.
When the page is loaded it is processed to extract the data.
The mechanism works fine in Windows (Visual Studio) and in OSX (compiled with gcc/g++).
Under Ubuntu/GTK, using the same code (copied from the Windows/OSX version) the mechanism fails, and the DocumentLoaded event is not reached. gdb collapses somewhere after the url is loaded.
I have no idea why this happens, and the debugger is not very helpful inasmuch as it must be debugged before it can be of any help.
I finally disabled the functions which use wxWebView in the GTK version.