Issue with downloading option of webview sample

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
Raphy
Experienced Solver
Experienced Solver
Posts: 62
Joined: Fri Jan 05, 2024 12:15 pm

Issue with downloading option of webview sample

Post by Raphy »

The downloading of wxWidgets/samples/webview/webview of a pdf file does not work:

I tried with https://dagrs.berkeley.edu/sites/defaul ... sample.pdf and with https://eur-lex.europa.eu/legal-content ... 12016P/TXT

I downloaded both with Google Chrome and with FireFox but I'm not able to download them with the wxwidget's webview sample: the downloading remains stuck without downloading the file
Last edited by Raphy on Sun Feb 11, 2024 10:57 am, edited 1 time in total.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7387
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Issue with downloading option of webview sample

Post by ONEEYEMAN »

Hi,
You are on Windows, right?
And you use Edge backend in the sample?

Thank you.
Raphy
Experienced Solver
Experienced Solver
Posts: 62
Joined: Fri Jan 05, 2024 12:15 pm

Re: Issue with downloading option of webview sample

Post by Raphy »

I'm with Ubuntu 23.10

These are the configuration options I used :

Code: Select all


raphy@raohy:~/wxWidgets$ ./configure --with-sdl --with-liblzma --with-expat --with-libmspack --enable-stl --enable-std_containers --enable-std_iostreams --enable-plugins --enable-ipc --enable-webview --enable-ipc --with-libnotify --with-libpng --with-libjpeg --with-libtiff --with-libxpm --with-libiconv --with-nanosvg --with-libcurl --enable-splash --enable-menus --enable-menubar --enable-mousewheel --enable-dragimage --enable-webviewwebkit --enable-timepick --enable-statusbar --enable-taskbaricon  --enable-popupwin --enable-grid --enable-display --enable-threads --enable-datetime --enable-cmdline --enable-base64 --enable-backtrace --enable-sockets  --enable-debugreport --enable-tarstream --enable-url --enable-docview --enable-html --enable-help --enable-stc --enable-printarch --enable-collpane --enable-colourpicker --enable-combobox --enable-commandlinkbutton --enable-listbook --enable-listbox --enable-dragimage --enable-gif --enable-pcx --enable-tga --enable-iff --enable-pnm --enable-uxtheme --enable-toolbar --enable-treelist --enable-togglebtn --enable-treelist --enable-menus --enable-menubar --enable-miniframe --enable-splines --enable-tooltips --enable-palette --with-gtk="any" --enable-webviewwebkit

User avatar
doublemax
Moderator
Moderator
Posts: 19032
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Issue with downloading option of webview sample

Post by doublemax »

When i run the webview sample under Linux, it won't try to download the PDF, it just displays it (with working selection BTW):

webview-gtk.png
webview-gtk.png (44.93 KiB) Viewed 471 times
What does https://www.whatismybrowser.com/ report when you open it with the webview sample?

The large number of configure options is suspicious, try with just --enable-debug , nothing else.
Use the source, Luke!
Raphy
Experienced Solver
Experienced Solver
Posts: 62
Joined: Fri Jan 05, 2024 12:15 pm

Re: Issue with downloading option of webview sample

Post by Raphy »

Output of https://www.whatismybrowser.com/ :
WhatIsMyBrowser01.jpg
WhatIsMyBrowser02.jpg
I do not understand why the large number of configure options is suspicious. If these configuration options are available for compiling and building process of wxWidgets, it should be possible to use them
When i run the webview sample under Linux, it won't try to download the PDF, it just displays it (with working selection BTW)
Does it mean that in Linux it's not possible to download the PDF rendered on the web page?
Raphy
Experienced Solver
Experienced Solver
Posts: 62
Joined: Fri Jan 05, 2024 12:15 pm

Re: Issue with downloading option of webview sample

Post by Raphy »

I compiled and build wxWidgets again with this time only two configuration options `--enable-debug` and `--enable-webview`:

Code: Select all

raphy@raohy:~/wxWidgets$ ./configure --enable-debug --enable-webview 
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for toolkit... gtk
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether we are using the Intel C compiler... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking whether gcc needs -traditional... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether we are using the Intel C++ compiler... no
checking whether we are using the Sun C++ compiler... no
checking whether g++ supports C++11 features by default... yes
checking for ar... ar
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for langinfo.h... yes
checking for wchar.h... yes
checking for sys/select.h... yes
checking for cxxabi.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking size of short... 2
checking size of void *... 8
checking size of int... 4
checking size of long... 8
checking size of size_t... 8
checking size of long long... 8
checking size of wchar_t... 4
checking for va_copy... yes
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking if large file support is available... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking whether byte ordering is bigendian... no
checking for __sync_xxx_and_fetch builtins... yes
checking for libraries directories... /usr/lib/x86_64-linux-gnu /usr/lib
checking for cos... no
checking for floor... no
checking if floating point functions link without -lm... no
checking for sin... yes
checking for ceil... yes
checking if floating point functions link with -lm... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBPCRE... yes
checking for zlib.h >= 1.1.4... yes
checking for zlib.h... (cached) yes
checking for deflate in -lz... yes
checking for png.h > 0.90... yes
checking for png.h... (cached) yes
checking for png_sig_cmp in -lpng... yes
checking for jpeglib.h... yes
checking for jpeg_read_header in -ljpeg... yes
checking for jbg_dec_init in -ljbig... yes
checking for LIBTIFF... yes
checking for expat.h... yes
checking if expat.h is valid C++ header... yes
checking for XML_ParserCreate in -lexpat... yes
checking for LIBCURL... yes
checking for GTK... configure: error: Package requirements (gtk+-3.0) were not met:

Package dependency requirement 'gobject-2.0 >= 2.62' could not be satisfied.
Package 'gobject-2.0' has version '2.8.6', required version is '>= 2.62'
Package dependency requirement 'gobject-2.0 >= 2.62' could not be satisfied.
Package 'gobject-2.0' has version '2.8.6', required version is '>= 2.62'
Package dependency requirement 'gobject-2.0 >= 2.56.0' could not be satisfied.
Package 'gobject-2.0' has version '2.8.6', required version is '>= 2.56.0'
Package dependency requirement 'glib-2.0 >= 2.14' could not be satisfied.
Package 'glib-2.0' has version '2.8.6', required version is '>= 2.14'
Package dependency requirement 'glib-2.0 >= 2.67.4' could not be satisfied.
Package 'glib-2.0' has version '2.8.6', required version is '>= 2.67.4'
Package dependency requirement 'glib-2.0 >= 2.14' could not be satisfied.
Package 'glib-2.0' has version '2.8.6', required version is '>= 2.14'
Package dependency requirement 'gobject-2.0 >= 2.56.0' could not be satisfied.
Package 'gobject-2.0' has version '2.8.6', required version is '>= 2.56.0'

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GTK_CFLAGS
and GTK_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.



raphy@raohy:~/wxWidgets$ make -j8
(if test -f utils/wxrc/Makefile ; then cd utils/wxrc && make all ; fi)
make[1]: Entering directory '/home/raphy/wxWidgets/utils/wxrc'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/raphy/wxWidgets/utils/wxrc'
raphy@raohy:~/wxWidgets$ 


raphy@raohy:~/wxWidgets$ sudo make install
[sudo] password for raphy: 
Sorry, try again.
[sudo] password for raphy: 
mkdir -p /usr/local/lib
/usr/bin/install -c -m 644 /home/raphy/wxWidgets/lib/libwx_baseu-3.3.so /usr/local/lib
mkdir -p /usr/local/lib
/usr/bin/install -c /home/raphy/wxWidgets/lib/libwx_baseu-3.3.so.0.0.0 /usr/local/lib
(cd /usr/local/lib ; rm -f libwx_baseu-3.3.so libwx_baseu-3.3.so.0; ln -s libwx_baseu-3.3.so.0.0.0 libwx_baseu-3.3.so.0; ln -s libwx_baseu-3.3.so.0 libwx_baseu-3.3.so)
mkdir -p /usr/local/lib
/usr/bin/install -c -m 644 /home/raphy/wxWidgets/lib/libwx_baseu_net-3.3.so /usr/local/lib
mkdir -p /usr/local/lib
/usr/bin/install -c /home/raphy/wxWidgets/lib/libwx_baseu_net-3.3.so.0.0.0 /usr/local/lib
(cd /usr/local/lib ; rm -f libwx_baseu_net-3.3.so libwx_baseu_net-3.3.so.0; ln -s libwx_baseu_net-3.3.so.0.0.0 libwx_baseu_net-3.3.so.0; ln -s libwx_baseu_net-3.3.so.0 libwx_baseu_net-3.3.so)
mkdir -p /usr/local/lib
/usr/bin/install -c -m 644 /home/raphy/wxWidgets/lib/libwx_gtk3u_core-3.3.so /usr/local/lib
mkdir -p /usr/local/lib
/usr/bin/install -c /home/raphy/wxWidgets/lib/libwx_gtk3u_core-3.3.so.0.0.0 /usr/local/lib
(cd /usr/local/lib ; rm -f libwx_gtk3u_core-3.3.so libwx_gtk3u_core-3.3.so.0; ln -s libwx_gtk3u_core-3.3.so.0.0.0 libwx_gtk3u_core-3.3.so.0; ln -s libwx_gtk3u_core-3.3.so.0 libwx_gtk3u_core-3.3.so)
mkdir -p /usr/local/lib
/usr/bin/install -c -m 644 /home/raphy/wxWidgets/lib/libwx_gtk3u_adv-3.3.so /usr/local/lib
mkdir -p /usr/local/lib
/usr/bin/install -c /home/raphy/wxWidgets/lib/libwx_gtk3u_adv-3.3.so.0.0.0 /usr/local/lib
(cd /usr/local/lib ; rm -f libwx_gtk3u_adv-3.3.so libwx_gtk3u_adv-3.3.so.0; ln -s libwx_gtk3u_adv-3.3.so.0.0.0 libwx_gtk3u_adv-3.3.so.0; ln -s libwx_gtk3u_adv-3.3.so.0 libwx_gtk3u_adv-3.3.so)
mkdir -p /usr/local/lib
/usr/bin/install -c -m 644 /home/raphy/wxWidgets/lib/libwx_gtk3u_media-3.3.so /usr/local/lib
mkdir -p /usr/local/lib
/usr/bin/install -c /home/raphy/wxWidgets/lib/libwx_gtk3u_media-3.3.so.0.0.0 /usr/local/lib
(cd /usr/local/lib ; rm -f libwx_gtk3u_media-3.3.so libwx_gtk3u_media-3.3.so.0; ln -s libwx_gtk3u_media-3.3.so.0.0.0 libwx_gtk3u_media-3.3.so.0; ln -s libwx_gtk3u_media-3.3.so.0 libwx_gtk3u_media-3.3.so)
mkdir -p /usr/local/lib
/usr/bin/install -c -m 644 /home/raphy/wxWidgets/lib/libwx_gtk3u_html-3.3.so /usr/local/lib
mkdir -p /usr/local/lib
/usr/bin/install -c /home/raphy/wxWidgets/lib/libwx_gtk3u_html-3.3.so.0.0.0 /usr/local/lib
(cd /usr/local/lib ; rm -f libwx_gtk3u_html-3.3.so libwx_gtk3u_html-3.3.so.0; ln -s libwx_gtk3u_html-3.3.so.0.0.0 libwx_gtk3u_html-3.3.so.0; ln -s libwx_gtk3u_html-3.3.so.0 libwx_gtk3u_html-3.3.so)
mkdir -p /usr/local/lib
/usr/bin/install -c -m 644 /home/raphy/wxWidgets/lib/libwx_gtk3u_webview-3.3.so /usr/local/lib
mkdir -p /usr/local/lib
/usr/bin/install -c /home/raphy/wxWidgets/lib/libwx_gtk3u_webview-3.3.so.0.0.0 /usr/local/lib
(cd /usr/local/lib ; rm -f libwx_gtk3u_webview-3.3.so libwx_gtk3u_webview-3.3.so.0; ln -s libwx_gtk3u_webview-3.3.so.0.0.0 libwx_gtk3u_webview-3.3.so.0; ln -s libwx_gtk3u_webview-3.3.so.0 libwx_gtk3u_webview-3.3.so)
mkdir -p /usr/local/lib
/usr/bin/install -c -m 644 /home/raphy/wxWidgets/lib/libwx_gtk3u_qa-3.3.so /usr/local/lib
mkdir -p /usr/local/lib
/usr/bin/install -c /home/raphy/wxWidgets/lib/libwx_gtk3u_qa-3.3.so.0.0.0 /usr/local/lib
(cd /usr/local/lib ; rm -f libwx_gtk3u_qa-3.3.so libwx_gtk3u_qa-3.3.so.0; ln -s libwx_gtk3u_qa-3.3.so.0.0.0 libwx_gtk3u_qa-3.3.so.0; ln -s libwx_gtk3u_qa-3.3.so.0 libwx_gtk3u_qa-3.3.so)
mkdir -p /usr/local/lib
/usr/bin/install -c -m 644 /home/raphy/wxWidgets/lib/libwx_baseu_xml-3.3.so /usr/local/lib
mkdir -p /usr/local/lib
/usr/bin/install -c /home/raphy/wxWidgets/lib/libwx_baseu_xml-3.3.so.0.0.0 /usr/local/lib
(cd /usr/local/lib ; rm -f libwx_baseu_xml-3.3.so libwx_baseu_xml-3.3.so.0; ln -s libwx_baseu_xml-3.3.so.0.0.0 libwx_baseu_xml-3.3.so.0; ln -s libwx_baseu_xml-3.3.so.0 libwx_baseu_xml-3.3.so)
mkdir -p /usr/local/lib
/usr/bin/install -c -m 644 /home/raphy/wxWidgets/lib/libwx_gtk3u_xrc-3.3.so /usr/local/lib
mkdir -p /usr/local/lib
/usr/bin/install -c /home/raphy/wxWidgets/lib/libwx_gtk3u_xrc-3.3.so.0.0.0 /usr/local/lib
(cd /usr/local/lib ; rm -f libwx_gtk3u_xrc-3.3.so libwx_gtk3u_xrc-3.3.so.0; ln -s libwx_gtk3u_xrc-3.3.so.0.0.0 libwx_gtk3u_xrc-3.3.so.0; ln -s libwx_gtk3u_xrc-3.3.so.0 libwx_gtk3u_xrc-3.3.so)
mkdir -p /usr/local/lib
/usr/bin/install -c -m 644 /home/raphy/wxWidgets/lib/libwx_gtk3u_aui-3.3.so /usr/local/lib
mkdir -p /usr/local/lib
/usr/bin/install -c /home/raphy/wxWidgets/lib/libwx_gtk3u_aui-3.3.so.0.0.0 /usr/local/lib
(cd /usr/local/lib ; rm -f libwx_gtk3u_aui-3.3.so libwx_gtk3u_aui-3.3.so.0; ln -s libwx_gtk3u_aui-3.3.so.0.0.0 libwx_gtk3u_aui-3.3.so.0; ln -s libwx_gtk3u_aui-3.3.so.0 libwx_gtk3u_aui-3.3.so)
mkdir -p /usr/local/lib
/usr/bin/install -c -m 644 /home/raphy/wxWidgets/lib/libwx_gtk3u_ribbon-3.3.so /usr/local/lib
mkdir -p /usr/local/lib
/usr/bin/install -c /home/raphy/wxWidgets/lib/libwx_gtk3u_ribbon-3.3.so.0.0.0 /usr/local/lib
(cd /usr/local/lib ; rm -f libwx_gtk3u_ribbon-3.3.so libwx_gtk3u_ribbon-3.3.so.0; ln -s libwx_gtk3u_ribbon-3.3.so.0.0.0 libwx_gtk3u_ribbon-3.3.so.0; ln -s libwx_gtk3u_ribbon-3.3.so.0 libwx_gtk3u_ribbon-3.3.so)
mkdir -p /usr/local/lib
/usr/bin/install -c -m 644 /home/raphy/wxWidgets/lib/libwx_gtk3u_propgrid-3.3.so /usr/local/lib
mkdir -p /usr/local/lib
/usr/bin/install -c /home/raphy/wxWidgets/lib/libwx_gtk3u_propgrid-3.3.so.0.0.0 /usr/local/lib
(cd /usr/local/lib ; rm -f libwx_gtk3u_propgrid-3.3.so libwx_gtk3u_propgrid-3.3.so.0; ln -s libwx_gtk3u_propgrid-3.3.so.0.0.0 libwx_gtk3u_propgrid-3.3.so.0; ln -s libwx_gtk3u_propgrid-3.3.so.0 libwx_gtk3u_propgrid-3.3.so)
mkdir -p /usr/local/lib
/usr/bin/install -c -m 644 /home/raphy/wxWidgets/lib/libwx_gtk3u_richtext-3.3.so /usr/local/lib
mkdir -p /usr/local/lib
/usr/bin/install -c /home/raphy/wxWidgets/lib/libwx_gtk3u_richtext-3.3.so.0.0.0 /usr/local/lib
(cd /usr/local/lib ; rm -f libwx_gtk3u_richtext-3.3.so libwx_gtk3u_richtext-3.3.so.0; ln -s libwx_gtk3u_richtext-3.3.so.0.0.0 libwx_gtk3u_richtext-3.3.so.0; ln -s libwx_gtk3u_richtext-3.3.so.0 libwx_gtk3u_richtext-3.3.so)
mkdir -p /usr/local/lib
/usr/bin/install -c -m 644 /home/raphy/wxWidgets/lib/libwx_gtk3u_stc-3.3.so /usr/local/lib
mkdir -p /usr/local/lib
/usr/bin/install -c /home/raphy/wxWidgets/lib/libwx_gtk3u_stc-3.3.so.0.0.0 /usr/local/lib
(cd /usr/local/lib ; rm -f libwx_gtk3u_stc-3.3.so libwx_gtk3u_stc-3.3.so.0; ln -s libwx_gtk3u_stc-3.3.so.0.0.0 libwx_gtk3u_stc-3.3.so.0; ln -s libwx_gtk3u_stc-3.3.so.0 libwx_gtk3u_stc-3.3.so)
mkdir -p /usr/local/lib
/usr/bin/install -c -m 644 /home/raphy/wxWidgets/lib/libwx_gtk3u_gl-3.3.so /usr/local/lib
mkdir -p /usr/local/lib
/usr/bin/install -c /home/raphy/wxWidgets/lib/libwx_gtk3u_gl-3.3.so.0.0.0 /usr/local/lib
(cd /usr/local/lib ; rm -f libwx_gtk3u_gl-3.3.so libwx_gtk3u_gl-3.3.so.0; ln -s libwx_gtk3u_gl-3.3.so.0.0.0 libwx_gtk3u_gl-3.3.so.0; ln -s libwx_gtk3u_gl-3.3.so.0 libwx_gtk3u_gl-3.3.so)
mkdir -p /usr/local/lib/wx/3.3.0
/usr/bin/install -c sound_sdlu-3.3.0.so /usr/local/lib/wx/3.3.0
mkdir -p /usr/local/lib/wx/3.3.0/web-extensions
/usr/bin/install -c webkit2_extu-3.3.0.so /usr/local/lib/wx/3.3.0/web-extensions
(if test -f utils/wxrc/Makefile ; then cd utils/wxrc && make all ; fi)
make[1]: Entering directory '/home/raphy/wxWidgets/utils/wxrc'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/raphy/wxWidgets/utils/wxrc'
(if test -f utils/wxrc/Makefile ; then cd utils/wxrc && make install ; fi)
make[1]: Entering directory '/home/raphy/wxWidgets/utils/wxrc'
mkdir -p /usr/local/bin
/usr/bin/install -c wxrc /usr/local/bin
rm -f /usr/local/bin/wxrc /usr/local/bin/wxrc-3.3
/usr/bin/install -c wxrc /usr/local/bin
mv -f /usr/local/bin/wxrc /usr/local/bin/wxrc-3.3
(cd /usr/local/bin && ln -s wxrc-3.3 wxrc)
make[1]: Leaving directory '/home/raphy/wxWidgets/utils/wxrc'
mkdir -p /usr/local/bin
mkdir -p /usr/local/lib/wx/config
/usr/bin/install -c lib/wx/config/gtk3-unicode-3.3 /usr/local/lib/wx/config
(cd /usr/local/bin && rm -f wx-config && ln -s /usr/local/lib/wx/config/gtk3-unicode-3.3 wx-config || cp -p /usr/local/lib/wx/config/gtk3-unicode-3.3 wx-config)
mkdir -p /usr/local/share/locale
for l in ca cs da de el es fi fr hu id it ja nl pl ru sl sv tr uk zh zh_CN zh_TW ; do \
mkdir -p /usr/local/share/locale/$l ; \
mkdir -p /usr/local/share/locale/$l/LC_MESSAGES ; \
if test -f ./locale/$l.mo ; then \
/usr/bin/install -c -m 644 ./locale/$l.mo /usr/local/share/locale/$l/LC_MESSAGES/wxstd-3.3.mo ; \
fi ; \
done
mkdir -p /usr/local/share/aclocal
(cd . ; /usr/bin/install -c -m 644  wxwin.m4 /usr/local/share/aclocal)
mkdir -p /usr/local/share/bakefile/presets
(cd ./build/bakefiles/wxpresets/presets ; /usr/bin/install -c -m 644  wx.bkl wx_unix.bkl wx_win32.bkl wx_xrc.bkl wx_presets.py /usr/local/share/bakefile/presets)
mkdir -p /usr/local/lib/wx/include/gtk3-unicode-3.3/wx
for f in setup.h ; do \
if test ! -d /usr/local/lib/wx/include/gtk3-unicode-3.3/wx/`dirname $f` ; then \
mkdir -p /usr/local/lib/wx/include/gtk3-unicode-3.3/wx/`dirname $f`; \
fi; \
/usr/bin/install -c -m 644 ./lib/wx/include/gtk3-unicode-3.3/wx/$f /usr/local/lib/wx/include/gtk3-unicode-3.3/wx/$f; \
done
mkdir -p /usr/local/include/wx-3.3
for f in wx/afterstd.h wx/any.h wx/anystr.h wx/app.h wx/apptrait.h wx/archive.h wx/arrimpl.cpp wx/arrstr.h wx/atomic.h wx/base64.h wx/beforestd.h wx/buffer.h wx/build.h wx/chartype.h wx/checkeddelete.h wx/chkconf.h wx/clntdata.h wx/cmdargs.h wx/cmdline.h wx/compiler.h wx/confbase.h wx/config.h wx/convauto.h wx/containr.h wx/cpp.h wx/crt.h wx/datetime.h wx/datstrm.h wx/dde.h wx/debug.h wx/defs.h wx/dir.h wx/dlimpexp.h wx/dlist.h wx/dynarray.h wx/dynlib.h wx/dynload.h wx/encconv.h wx/event.h wx/eventfilter.h wx/evtloop.h wx/evtloopsrc.h wx/except.h wx/features.h wx/flags.h wx/ffile.h wx/file.h wx/fileconf.h wx/filefn.h wx/filename.h wx/filesys.h wx/fontenc.h wx/fontmap.h wx/fs_arc.h wx/fs_filter.h wx/fs_mem.h wx/fs_zip.h wx/hash.h wx/hashmap.h wx/hashset.h wx/iconloc.h wx/init.h wx/intl.h wx/iosfwrap.h wx/ioswrap.h wx/ipc.h wx/ipcbase.h wx/kbdstate.h wx/language.h wx/link.h wx/list.h wx/listimpl.cpp wx/log.h wx/longlong.h wx/math.h wx/memconf.h wx/memory.h wx/memtext.h wx/mimetype.h wx/module.h wx/mousestate.h wx/msgout.h wx/msgqueue.h wx/mstream.h wx/numformatter.h wx/object.h wx/platform.h wx/platinfo.h wx/power.h wx/process.h wx/ptr_scpd.h wx/ptr_shrd.h wx/recguard.h wx/regex.h wx/rtti.h wx/scopedarray.h wx/scopedptr.h wx/scopeguard.h wx/sharedptr.h wx/snglinst.h wx/sstream.h wx/stack.h wx/stackwalk.h wx/stdpaths.h wx/stdstream.h wx/stockitem.h wx/stopwatch.h wx/strconv.h wx/stream.h wx/string.h wx/stringops.h wx/strvararg.h wx/sysopt.h wx/tarstrm.h wx/textbuf.h wx/textfile.h wx/thread.h wx/thrimpl.cpp wx/time.h wx/timer.h wx/tls.h wx/tokenzr.h wx/tracker.h wx/translation.h wx/txtstrm.h wx/typeinfo.h wx/types.h wx/unichar.h wx/uri.h wx/ustring.h wx/utils.h wx/variant.h wx/vector.h wx/version.h wx/versioninfo.h wx/volume.h wx/weakref.h wx/wfstream.h wx/wx.h wx/wxchar.h wx/wxcrt.h wx/wxcrtbase.h wx/wxcrtvararg.h wx/wxprec.h wx/xlocale.h wx/xti.h wx/xti2.h wx/xtistrm.h wx/xtictor.h wx/xtihandler.h wx/xtiprop.h wx/xtitypes.h wx/zipstrm.h wx/zstream.h wx/meta/convertible.h wx/meta/if.h wx/meta/implicitconversion.h wx/meta/int2type.h wx/meta/movable.h wx/meta/pod.h wx/meta/removeref.h wx/fswatcher.h wx/generic/fswatcher.h wx/secretstore.h wx/lzmastream.h wx/localedefs.h wx/uilocale.h wx/fs_data.h wx/unix/app.h wx/unix/apptbase.h wx/unix/apptrait.h wx/unix/chkconf.h wx/unix/evtloop.h wx/unix/evtloopsrc.h wx/unix/pipe.h wx/unix/stackwalk.h wx/unix/fswatcher_kqueue.h wx/unix/mimetype.h wx/unix/fswatcher_inotify.h wx/unix/stdpaths.h wx/fs_inet.h wx/protocol/file.h wx/protocol/ftp.h wx/protocol/http.h wx/protocol/log.h wx/protocol/protocol.h wx/sckaddr.h wx/sckipc.h wx/sckstrm.h wx/socket.h wx/url.h wx/webrequest.h wx/xml/xml.h wx/xtixml.h wx/affinematrix2dbase.h wx/affinematrix2d.h wx/anybutton.h wx/bmpbuttn.h wx/brush.h wx/button.h wx/checkbox.h wx/checklst.h wx/choicdlg.h wx/choice.h wx/cmndata.h wx/collpane.h wx/combo.h wx/combobox.h wx/compositewin.h wx/control.h wx/ctrlsub.h wx/cursor.h wx/custombgwin.h wx/dc.h wx/dcclient.h wx/dcgraph.h wx/dcmemory.h wx/dcprint.h wx/dcscreen.h wx/dcsvg.h wx/dialog.h wx/dirdlg.h wx/dragimag.h wx/encinfo.h wx/filedlg.h wx/frame.h wx/gauge.h wx/gbsizer.h wx/gdicmn.h wx/generic/accel.h wx/generic/animate.h wx/generic/buttonbar.h wx/generic/choicdgg.h wx/generic/combo.h wx/generic/custombgwin.h wx/generic/dcpsg.h wx/generic/dirctrlg.h wx/generic/dragimgg.h wx/generic/filectrlg.h wx/generic/headerctrlg.h wx/generic/infobar.h wx/generic/logg.h wx/generic/msgdlgg.h wx/generic/numdlgg.h wx/generic/notebook.h wx/generic/prntdlgg.h wx/generic/printps.h wx/generic/progdlgg.h wx/generic/richmsgdlgg.h wx/generic/scrolwin.h wx/generic/spinctlg.h wx/generic/splitter.h wx/generic/srchctlg.h wx/generic/statbmpg.h wx/generic/stattextg.h wx/generic/textdlgg.h wx/generic/treectlg.h wx/graphics.h wx/headercol.h wx/headerctrl.h wx/helphtml.h wx/icon.h wx/infobar.h wx/itemid.h wx/layout.h wx/listbox.h wx/mdi.h wx/menu.h wx/modalhook.h wx/mousemanager.h wx/msgdlg.h wx/nativewin.h wx/numdlg.h wx/overlay.h wx/palette.h wx/panel.h wx/pen.h wx/position.h wx/preferences.h wx/radiobox.h wx/radiobut.h wx/range.h wx/rearrangectrl.h wx/renderer.h wx/richmsgdlg.h wx/scrolbar.h wx/scrolwin.h wx/selstore.h wx/settings.h wx/sizer.h wx/slider.h wx/statbmp.h wx/statbox.h wx/stattext.h wx/statusbr.h wx/testing.h wx/textcompleter.h wx/textctrl.h wx/textdlg.h wx/textentry.h wx/textwrapper.h wx/toolbar.h wx/validate.h wx/valtext.h wx/valnum.h wx/window.h wx/windowid.h wx/windowptr.h wx/withimages.h wx/wrapsizer.h wx/wupdlock.h wx/accel.h wx/access.h wx/anidecod.h wx/animdecod.h wx/appprogress.h wx/artprov.h wx/bitmap.h wx/bookctrl.h wx/busyinfo.h wx/generic/busyinfo.h wx/caret.h wx/choicebk.h wx/clipbrd.h wx/clrpicker.h wx/cmdproc.h wx/colordlg.h wx/colour.h wx/colourdata.h wx/cshelp.h wx/dataobj.h wx/dcmirror.h wx/dcps.h wx/dialup.h wx/dirctrl.h wx/display.h wx/dnd.h wx/docmdi.h wx/docview.h wx/fdrepdlg.h wx/filectrl.h wx/filehistory.h wx/filepicker.h wx/fontpicker.h wx/fmappriv.h wx/font.h wx/fontdata.h wx/fontdlg.h wx/fontenum.h wx/fontutil.h wx/gdiobj.h wx/geometry.h wx/gifdecod.h wx/help.h wx/helpbase.h wx/helpwin.h wx/iconbndl.h wx/imagbmp.h wx/image.h wx/imaggif.h wx/imagiff.h wx/imagjpeg.h wx/imaglist.h wx/imagpcx.h wx/imagpng.h wx/imagpnm.h wx/imagtga.h wx/imagtiff.h wx/imagxpm.h wx/listbase.h wx/listbook.h wx/listctrl.h wx/matrix.h wx/menuitem.h wx/metafile.h wx/minifram.h wx/nonownedwnd.h wx/notebook.h wx/ownerdrw.h wx/paper.h wx/persist.h wx/persist/bookctrl.h wx/persist/dataview.h wx/persist/splitter.h wx/persist/toplevel.h wx/persist/treebook.h wx/persist/window.h wx/pickerbase.h wx/popupwin.h wx/print.h wx/printdlg.h wx/prntbase.h wx/progdlg.h wx/quantize.h wx/rawbmp.h wx/region.h wx/scopeguard.h wx/simplebook.h wx/spinbutt.h wx/spinctrl.h wx/splitter.h wx/srchctrl.h wx/statline.h wx/taskbarbutton.h wx/tbarbase.h wx/tglbtn.h wx/tipwin.h wx/toolbook.h wx/tooltip.h wx/toplevel.h wx/treebase.h wx/treebook.h wx/treectrl.h wx/uiaction.h wx/valgen.h wx/vidmode.h wx/vlbox.h wx/vms_x_fix.h wx/vscroll.h wx/xpmdecod.h wx/xpmhand.h wx/xrc/xmlreshandler.h wx/systhemectrl.h wx/collheaderctrl.h wx/generic/collheaderctrl.h wx/itemattr.h wx/peninfobase.h wx/dataview.h wx/generic/helpext.h wx/sashwin.h wx/tipdlg.h wx/generic/propdlg.h wx/generic/bmpcbox.h wx/datetimectrl.h wx/grid.h wx/generic/grid.h wx/wizard.h wx/generic/grideditors.h wx/generic/dataview.h wx/generic/wizard.h wx/generic/dvrenderers.h wx/dateevt.h wx/editlbox.h wx/splash.h wx/bmpcbox.h wx/generic/gridctrl.h wx/addremovectrl.h wx/generic/notifmsg.h wx/odcombo.h wx/animate.h wx/generic/hyperlink.h wx/dcbuffer.h wx/joystick.h wx/timectrl.h wx/hyperlink.h wx/generic/aboutdlgg.h wx/taskbar.h wx/generic/timectrl.h wx/commandlinkbutton.h wx/richtooltip.h wx/sound.h wx/generic/laywin.h wx/generic/splash.h wx/generic/calctrlg.h wx/generic/sashwin.h wx/treelist.h wx/notifmsg.h wx/datectrl.h wx/laywin.h wx/generic/gridsel.h wx/aboutdlg.h wx/dvrenderers.h wx/generic/datectrl.h wx/bannerwindow.h wx/activityindicator.h wx/generic/dvrenderer.h wx/calctrl.h wx/propdlg.h wx/generic/creddlgg.h wx/creddlg.h wx/bmpbndl.h wx/filedlgcustomize.h wx/compositebookctrl.h wx/persist/combobox.h wx/generic/caret.h wx/unix/fontutil.h wx/unix/utilsx11.h wx/unix/sound.h wx/unix/joystick.h wx/generic/icon.h wx/generic/paletteg.h wx/gtk/app.h wx/gtk/assertdlg_gtk.h wx/gtk/bitmap.h wx/gtk/brush.h wx/gtk/clipbrd.h wx/gtk/colour.h wx/gtk/cursor.h wx/gtk/dataform.h wx/gtk/dataobj.h wx/gtk/dataobj2.h wx/gtk/dnd.h wx/gtk/evtloop.h wx/gtk/evtloopsrc.h wx/gtk/font.h wx/gtk/filehistory.h wx/gtk/minifram.h wx/gtk/nonownedwnd.h wx/gtk/pen.h wx/gtk/popupwin.h wx/gtk/region.h wx/gtk/tooltip.h wx/gtk/toplevel.h wx/gtk/window.h wx/gtk/mimetype.h wx/generic/fdrepdlg.h wx/generic/filepickerg.h wx/generic/listctrl.h wx/generic/statusbr.h wx/gtk/accel.h wx/gtk/anybutton.h wx/gtk/bmpbuttn.h wx/gtk/button.h wx/gtk/checkbox.h wx/gtk/checklst.h wx/gtk/chkconf.h wx/gtk/collpane.h wx/gtk/colordlg.h wx/gtk/choice.h wx/gtk/combobox.h wx/gtk/control.h wx/gtk/clrpicker.h wx/gtk/dialog.h wx/gtk/dirdlg.h wx/gtk/filectrl.h wx/gtk/filedlg.h wx/gtk/fontpicker.h wx/gtk/filepicker.h wx/gtk/fontdlg.h wx/gtk/frame.h wx/gtk/gauge.h wx/gtk/gnome/gvfs.h wx/gtk/infobar.h wx/gtk/listbox.h wx/gtk/mdi.h wx/gtk/menu.h wx/gtk/menuitem.h wx/gtk/msgdlg.h wx/gtk/notebook.h wx/gtk/print.h wx/gtk/radiobox.h wx/gtk/radiobut.h wx/gtk/scrolbar.h wx/gtk/scrolwin.h wx/gtk/slider.h wx/gtk/spinbutt.h wx/gtk/spinctrl.h wx/gtk/statbmp.h wx/gtk/statbox.h wx/gtk/statline.h wx/gtk/stattext.h wx/gtk/toolbar.h wx/gtk/textctrl.h wx/gtk/textentry.h wx/gtk/tglbtn.h wx/gtk/animate.h wx/gtk/hyperlink.h wx/gtk/taskbar.h wx/gtk/dvrenderers.h wx/generic/activityindicator.h wx/gtk/activityindicator.h wx/gtk/calctrl.h wx/gtk/bmpcbox.h wx/gtk/dataview.h wx/gtk/dvrenderer.h wx/gtk/srchctrl.h wx/generic/imaglist.h wx/mediactrl.h  wx/html/helpctrl.h wx/html/helpdata.h wx/html/helpdlg.h wx/html/helpfrm.h wx/html/helpwnd.h wx/html/htmlcell.h wx/html/htmldefs.h wx/html/htmlfilt.h wx/html/htmlpars.h wx/html/htmlproc.h wx/html/htmltag.h wx/html/htmlwin.h wx/html/htmprint.h wx/html/m_templ.h wx/html/styleparams.h wx/html/winpars.h wx/wxhtml.h wx/htmllbox.h wx/html/forcelnk.h  wx/glcanvas.h wx/gtk/glcanvas.h wx/unix/glegl.h wx/unix/glx11.h wx/debugrpt.h wx/xrc/xh_activityindicator.h wx/xrc/xh_all.h wx/xrc/xh_animatctrl.h wx/xrc/xh_bannerwindow.h wx/xrc/xh_bmpbt.h wx/xrc/xh_bmp.h wx/xrc/xh_bmpcbox.h wx/xrc/xh_bttn.h wx/xrc/xh_cald.h wx/xrc/xh_chckb.h wx/xrc/xh_chckl.h wx/xrc/xh_choic.h wx/xrc/xh_choicbk.h wx/xrc/xh_clrpicker.h wx/xrc/xh_cmdlinkbn.h wx/xrc/xh_collpane.h wx/xrc/xh_combo.h wx/xrc/xh_comboctrl.h wx/xrc/xh_dataview.h wx/xrc/xh_datectrl.h wx/xrc/xh_dirpicker.h wx/xrc/xh_dlg.h wx/xrc/xh_editlbox.h wx/xrc/xh_filectrl.h wx/xrc/xh_filepicker.h wx/xrc/xh_fontpicker.h wx/xrc/xh_frame.h wx/xrc/xh_mdi.h wx/xrc/xh_gauge.h wx/xrc/xh_gdctl.h wx/xrc/xh_grid.h wx/xrc/xh_html.h wx/xrc/xh_hyperlink.h wx/xrc/xh_infobar.h wx/xrc/xh_listb.h wx/xrc/xh_listbk.h wx/xrc/xh_listc.h wx/xrc/xh_menu.h wx/xrc/xh_notbk.h wx/xrc/xh_odcombo.h wx/xrc/xh_panel.h wx/xrc/xh_propdlg.h wx/xrc/xh_radbt.h wx/xrc/xh_radbx.h wx/xrc/xh_scrol.h wx/xrc/xh_scwin.h wx/xrc/xh_htmllbox.h wx/xrc/xh_simplebook.h wx/xrc/xh_sizer.h wx/xrc/xh_slidr.h wx/xrc/xh_spin.h wx/xrc/xh_split.h wx/xrc/xh_srchctrl.h wx/xrc/xh_statbar.h wx/xrc/xh_stbmp.h wx/xrc/xh_stbox.h wx/xrc/xh_stlin.h wx/xrc/xh_sttxt.h wx/xrc/xh_text.h wx/xrc/xh_tglbtn.h wx/xrc/xh_timectrl.h wx/xrc/xh_toolb.h wx/xrc/xh_toolbk.h wx/xrc/xh_tree.h wx/xrc/xh_treebk.h wx/xrc/xh_unkwn.h wx/xrc/xh_wizrd.h wx/xrc/xmlres.h wx/xrc/xh_bookctrlbase.h wx/aui/framemanager.h wx/aui/dockart.h wx/aui/floatpane.h wx/aui/auibook.h wx/aui/auibar.h wx/aui/tabmdi.h wx/aui/aui.h wx/aui/tabart.h wx/xrc/xh_aui.h wx/xrc/xh_auitoolb.h   wx/propgrid/advprops.h wx/propgrid/editors.h wx/propgrid/manager.h wx/propgrid/property.h wx/propgrid/propgrid.h wx/propgrid/propgriddefs.h wx/propgrid/propgridiface.h wx/propgrid/propgridpagestate.h wx/propgrid/props.h wx/propgrid/private.h wx/ribbon/art.h wx/ribbon/art_internal.h wx/ribbon/bar.h wx/ribbon/buttonbar.h wx/ribbon/control.h wx/ribbon/gallery.h wx/ribbon/page.h wx/ribbon/panel.h wx/ribbon/toolbar.h wx/xrc/xh_ribbon.h wx/richtext/richtextbackgroundpage.h wx/richtext/richtextborderspage.h wx/richtext/richtextbuffer.h wx/richtext/richtextbulletspage.h wx/richtext/richtextctrl.h wx/richtext/richtextdialogpage.h wx/richtext/richtextfontpage.h wx/richtext/richtextformatdlg.h wx/richtext/richtexthtml.h wx/richtext/richtextimagedlg.h wx/richtext/richtextindentspage.h wx/richtext/richtextliststylepage.h wx/richtext/richtextmarginspage.h wx/richtext/richtextprint.h wx/richtext/richtextsizepage.h wx/richtext/richtextstyledlg.h wx/richtext/richtextstylepage.h wx/richtext/richtextstyles.h wx/richtext/richtextsymboldlg.h wx/richtext/richtexttabspage.h wx/richtext/richtextuicustomization.h wx/richtext/richtextxml.h wx/xrc/xh_richtext.h wx/stc/stc.h wx/xrc/xh_styledtextctrl.h wx/gtk/webviewhistoryitem_webkit.h wx/gtk/webview_webkit.h wx/webview.h wx/webviewarchivehandler.h wx/webviewfshandler.h; do \
if test ! -d /usr/local/include/wx-3.3/`dirname $f` ; then \
mkdir -p /usr/local/include/wx-3.3/`dirname $f`; \
fi; \
/usr/bin/install -c -m 644 ./include/$f /usr/local/include/wx-3.3/$f; \
done
 
 ------------------------------------------------------
 
 The installation of wxWidgets is finished.  On certain
 platforms (e.g. Linux) you'll now have to run ldconfig
 if you installed a shared library and also modify the
 LD_LIBRARY_PATH (or equivalent) environment variable.
 
 wxWidgets comes with no guarantees and doesn't claim
 to be suitable for any purpose.
 
 Read the wxWindows Licence on licencing conditions.
 
 ------------------------------------------------------
 
I'm still not able to download this https://eur-lex.europa.eu/legal-content ... 12016P/TXT pdf file, which is downloadable through Google Chrome and through Mozilla Firefox
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7387
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Issue with downloading option of webview sample

Post by ONEEYEMAN »

Hi,
1. Most of the configure options people use today are turned on by default.
2. When you build wxWidgets with just those 2 options - are you able to open the PDF in a browser and select a text?

Thank you.
User avatar
doublemax
Moderator
Moderator
Posts: 19032
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Issue with downloading option of webview sample

Post by doublemax »

Just a small - frustrating - update:

I'm not a Linux user, but usually i'm at least able to build wxWidgets and the samples from the command line. When i tested the "webview" sample earlier, that was an older wxWidgets 3.1.5 under Mint 20. The sample built and worked fine.

Then i tried with wx 3.2.4 on the same machine, and configure didn't enable the "webview" component, but i didn't see anything in the configure log that told me why. So, not webview here. (yes, i did add --enable-webview to the configure line)

Then testing with the latest wx version from git, once again on the same machine: configure did enable the "webview" component, the "webview" sample compiled and ran, but i couldn't open any website, was stuck with the busy cursor.

Being a Linux noob, i didn't know how to tackle these issues.
Use the source, Luke!
Raphy
Experienced Solver
Experienced Solver
Posts: 62
Joined: Fri Jan 05, 2024 12:15 pm

Re: Issue with downloading option of webview sample

Post by Raphy »

Hi @ONEEYEMAN ! And hi @doublemax!

I removed the previous wxWidgets folder and built it from scratch again, this time without any configure options :

Code: Select all


raphy@raohy:~$ git clone --recurse-submodules https://github.com/wxWidgets/wxWidgets.git

raphy@raohy:~/wxWidgets$ cmake -B builddir
-- Setting build type to 'Debug' as none was specified.
-- The C compiler identification is GNU 12.3.0
-- The CXX compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1")
-- Looking for GDK_WINDOWING_WAYLAND
-- Looking for GDK_WINDOWING_WAYLAND - found
-- Looking for GDK_WINDOWING_X11
-- Looking for GDK_WINDOWING_X11 - found
-- Found GTK3: /usr/include/gtk-3.0;/usr/include/pango-1.0;/usr/include;/usr/include/glib-2.0;/usr/lib/x86_64-linux-gnu/glib-2.0/include;/usr/include/harfbuzz;/usr/include/freetype2;/usr/include/libpng16;/usr/include/libmount;/usr/include/blkid;/usr/include/fribidi;/usr/include/cairo;/usr/include/pixman-1;/usr/include/gdk-pixbuf-2.0;/usr/include/x86_64-linux-gnu;/usr/include/gio-unix-2.0;/usr/include/atk-1.0;/usr/include/at-spi2-atk/2.0;/usr/include/at-spi-2.0;/usr/include/dbus-1.0;/usr/lib/x86_64-linux-gnu/dbus-1.0/include
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of wchar_t
-- Check size of wchar_t - done
-- Found PCRE2: /usr/lib/x86_64-linux-gnu/libpcre2-32.so (found version "10.42")
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.13")
-- Found EXPAT: /usr/lib/x86_64-linux-gnu/libexpat.so (found version "2.5.0")
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (found version "80")
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.6.40")
-- Found TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (found version "4.5.1")
-- Performing Test wxHAVE_CXX11
-- Performing Test wxHAVE_CXX11 - Success
-- Performing Test wxHAVE_CXX17
-- Performing Test wxHAVE_CXX17 - Success
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version "8.2.1")
-- Found LIBSECRET: /usr/include/libsecret-1;/usr/include/glib-2.0;/usr/lib/x86_64-linux-gnu/glib-2.0/include;/usr/include;/usr/include/libmount;/usr/include/blkid;/usr/include/gio-unix-2.0
-- Found Iconv: /usr/lib/x86_64-linux-gnu/libc.so
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
-- Found WAYLANDEGL: wayland-egl;wayland-client
-- Found LIBSOUP: /usr/include/libsoup-3.0 (found suitable version "3.4.2", minimum required is "3.0")
-- Found GSTREAMER: 1.22.5 (Required is at least version "1.0")
-- Found SDL2: /usr/lib/x86_64-linux-gnu/libSDL2main.a;/usr/lib/x86_64-linux-gnu/libSDL2.so
-- Found LIBNOTIFY: /usr/include;/usr/include/gdk-pixbuf-2.0;/usr/include/glib-2.0;/usr/lib/x86_64-linux-gnu/glib-2.0/include;/usr/include/libpng16;/usr/include/x86_64-linux-gnu;/usr/include/libmount;/usr/include/blkid (found version "0.8.2")
-- Found XTEST: /usr/lib/x86_64-linux-gnu/libXtst.so
-- Found MSPACK: /usr/lib/x86_64-linux-gnu/libmspack.so
-- Found GTKPRINT: /usr/include/gtk-3.0/unix-print (Required is at least version "3.24.38")
-- Checking for module 'gnome-vfs-2.0'
--   Package 'gnome-vfs-2.0', required by 'virtual:world', not found
-- libgnomevfs not found, library won't be used to associate MIME type
-- Could NOT find GSPELL (missing: GSPELL_INCLUDE_DIRS GSPELL_LIBRARIES) 
-- gspell-1 not found, spell checking in wxTextCtrl won't be available
-- Found XKBCommon: /usr/include/xkbcommon (found version "1.5.0")
-- Looking for 4 include files stdlib.h, ..., float.h
-- Looking for 4 include files stdlib.h, ..., float.h - found
-- Performing Test HAVE_VISIBILITY
-- Performing Test HAVE_VISIBILITY - Success
-- Looking for va_copy
-- Looking for va_copy - found
-- Performing Test HAVE_GCC_ATOMIC_BUILTINS
-- Performing Test HAVE_GCC_ATOMIC_BUILTINS - Success
-- Looking for sigaction
-- Looking for sigaction - found
-- Performing Test wxHAVE_BACKTRACE
-- Performing Test wxHAVE_BACKTRACE - Success
-- Performing Test HAVE_CXA_DEMANGLE
-- Performing Test HAVE_CXA_DEMANGLE - Success
-- Looking for mkstemp
-- Looking for mkstemp - found
-- Looking for mktemp
-- Looking for mktemp - found
-- Performing Test HAVE_STATFS
-- Performing Test HAVE_STATFS - Success
-- Performing Test HAVE_STATVFS
-- Performing Test HAVE_STATVFS - Success
-- Looking for fcntl
-- Looking for fcntl - found
-- Looking for flock
-- Looking for flock - found
-- Looking for setenv
-- Looking for setenv - found
-- Looking for putenv
-- Looking for putenv - found
-- Looking for unsetenv
-- Looking for unsetenv - found
-- Looking for nanosleep
-- Looking for nanosleep - found
-- Looking for uname
-- Looking for uname - found
-- Looking for gethostname
-- Looking for gethostname - found
-- Looking for strtok_r
-- Looking for strtok_r - found
-- Looking for fdopen
-- Looking for fdopen - found
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for sysconf
-- Looking for sysconf - found
-- Looking for getpwuid_r
-- Looking for getpwuid_r - found
-- Looking for getgrgid_r
-- Looking for getgrgid_r - found
-- Looking for sys/soundcard.h
-- Looking for sys/soundcard.h - found
-- Performing Test WX_SOCKLEN_T_IS_SOCKLEN_T
-- Performing Test WX_SOCKLEN_T_IS_SOCKLEN_T - Success
-- Performing Test SOCKOPTLEN_T_IS_SOCKLEN_T
-- Performing Test SOCKOPTLEN_T_IS_SOCKLEN_T - Success
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for gethostbyname_r
-- Looking for gethostbyname_r - found
-- Checking prototype gethostbyname_r for HAVE_FUNC_GETHOSTBYNAME_R_3
-- Checking prototype gethostbyname_r for HAVE_FUNC_GETHOSTBYNAME_R_3 - False
-- Checking prototype gethostbyname_r for HAVE_FUNC_GETHOSTBYNAME_R_5
-- Checking prototype gethostbyname_r for HAVE_FUNC_GETHOSTBYNAME_R_5 - False
-- Checking prototype gethostbyname_r for HAVE_FUNC_GETHOSTBYNAME_R_6
-- Checking prototype gethostbyname_r for HAVE_FUNC_GETHOSTBYNAME_R_6 - True
-- Looking for getservbyname
-- Looking for getservbyname - found
-- Looking for inet_aton
-- Looking for inet_aton - found
-- Looking for inet_addr
-- Looking for inet_addr - found
-- Looking for include file linux/joystick.h
-- Looking for include file linux/joystick.h - found
-- Performing Test wxHAVE_PTHREAD_CLEANUP
-- Performing Test wxHAVE_PTHREAD_CLEANUP - Success
-- Performing Test HAVE_PTHREAD_MUTEXATTR_T
-- Performing Test HAVE_PTHREAD_MUTEXATTR_T - Success
-- Performing Test HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL
-- Performing Test HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL - Success
-- Performing Test HAVE_ABI_FORCEDUNWIND
-- Performing Test HAVE_ABI_FORCEDUNWIND - Success
-- Looking for localtime_r
-- Looking for localtime_r - found
-- Looking for gmtime_r
-- Looking for gmtime_r - found
-- Performing Test wxSIZE_T_IS_NOT_UINT
-- Performing Test wxSIZE_T_IS_NOT_UINT - Success
-- Performing Test wxSIZE_T_IS_NOT_ULONG
-- Performing Test wxSIZE_T_IS_NOT_ULONG - Failed
-- Performing Test wxWCHAR_T_IS_REAL_TYPE
-- Performing Test wxWCHAR_T_IS_REAL_TYPE - Success
-- Performing Test HAVE_PW_GECOS
-- Performing Test HAVE_PW_GECOS - Success
-- Looking for ftime
-- Looking for ftime - not found
-- Looking for wcsftime
-- Looking for wcsftime - found
-- Looking for wprintf
-- Looking for wprintf - found
-- Looking for putws
-- Looking for putws - not found
-- Looking for fputws
-- Looking for fputws - found
-- Looking for vswprintf
-- Looking for vswprintf - found
-- Looking for vswscanf
-- Looking for vswscanf - found
-- Looking for wcsdup
-- Looking for wcsdup - found
-- Looking for wcsnlen
-- Looking for wcsnlen - found
-- Looking for wcscasecmp
-- Looking for wcscasecmp - found
-- Looking for wcsncasecmp
-- Looking for wcsncasecmp - found
-- Looking for wcsrctombs
-- Looking for wcsrctombs - not found
-- Looking for wcstoull
-- Looking for wcstoull - found
-- Looking for wcslen
-- Looking for wcslen - found
-- Looking for fsync
-- Looking for fsync - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Looking for strnlen
-- Looking for strnlen - found
-- Looking for strtoull
-- Looking for strtoull - found
-- Looking for setpriority
-- Looking for setpriority - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for langinfo.h
-- Looking for langinfo.h - found
-- Looking for sched.h
-- Looking for sched.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for wchar.h
-- Looking for wchar.h - found
-- Looking for wcstr.h
-- Looking for wcstr.h - not found
-- Performing Test wxTEST_TZ_timezone
-- Performing Test wxTEST_TZ_timezone - Success
-- Performing Test WX_GMTOFF_IN_TM
-- Performing Test WX_GMTOFF_IN_TM - Success
-- Looking for dlopen
-- Looking for dlopen - found
-- Looking for dladdr
-- Looking for dladdr - found
-- Looking for dl_iterate_phdr
-- Looking for dl_iterate_phdr - found
-- Looking for sys/epoll.h
-- Looking for sys/epoll.h - found
-- Looking for sys/select.h
-- Looking for sys/select.h - found
-- Looking for sys/inotify.h
-- Looking for sys/inotify.h - found
-- Looking for xlocale.h
-- Looking for xlocale.h - not found
-- Check size of locale_t
-- Check size of locale_t - done
-- Check size of size_t
-- Check size of size_t - done
-- Check size of int
-- Check size of int - done
-- Check size of long
-- Check size of long - done
-- Check size of short
-- Check size of short - done
-- Check size of long long
-- Check size of long long - done
-- Check size of ssize_t
-- Check size of ssize_t - done
-- Which libraries should wxWidgets use?
    wxUSE_REGEX:      sys      (enable support for wxRegEx class)
    wxUSE_ZLIB:       sys      (use zlib for LZW compression)
    wxUSE_EXPAT:      sys      (use expat for XML parsing)
    wxUSE_LIBJPEG:    sys      (use libjpeg (JPEG file format))
    wxUSE_LIBPNG:     sys      (use libpng (PNG image format))
    wxUSE_LIBTIFF:    sys      (use libtiff (TIFF file format))
    wxUSE_NANOSVG:    builtin  (use NanoSVG for rasterizing SVG)
    wxUSE_LIBLZMA:    OFF      (use liblzma for LZMA compression)
    wxUSE_LIBSDL:     ON       (use SDL for audio on Unix)
    wxUSE_LIBMSPACK:  ON       (use libmspack (CHM help files loading))
    wxUSE_WEBVIEW:    ON       (enable wxWebview with WebKit2)

-- Configured wxWidgets 3.3.0 for Linux
    Min OS Version required at runtime:                Linux x86_64
    Which GUI toolkit should wxWidgets use?            gtk3 3.24.38 with support for: libnotify, GTK+ printing
    Should wxWidgets be compiled into single library?  OFF
    Should wxWidgets be linked as a shared library?    ON
    Which wxWidgets API compatibility should be used?  3.2
-- Configuring done (7.3s)
-- Generating done (0.1s)
-- Build files have been written to: /home/raphy/wxWidgets/builddir
raphy@raohy:~/wxWidgets$ 

raphy@raohy:~/wxWidgets$ cmake --build builddir/
[  0%] Building CXX object libs/base/CMakeFiles/wxbase.dir/cmake_pch.hxx.gch
[  0%] Building CXX object libs/base/CMakeFiles/wxbase.dir/__/__/__/__/src/common/any.cpp.o

[100%] Linking CXX shared library ../../lib/libwx_gtk3u_qa-3.3.so
[100%] Built target wxqa
[100%] Building CXX object utils/CMakeFiles/wxrc.dir/__/__/__/utils/wxrc/wxrc.cpp.o
[100%] Linking CXX executable ../lib/wxrc-3.3
[100%] Built target wxrc

And set the path to the just compiled wxwidgets library:

Code: Select all

export PATH=$PATH:/home/raphy/wxWidgets/builddir/lib
I then compiled and build the webview sample
with this CMakeLists.txt file:

Code: Select all

cmake_minimum_required(VERSION 3.5)
project(WebView)


find_package(wxWidgets REQUIRED COMPONENTS base core webview stc richtext)
include(${wxWidgets_USE_FILE})

link_libraries(${wxWidgets_LIBRARIES})

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)


add_executable(${PROJECT_NAME} WIN32 MACOSX_BUNDLE webview.cpp)
And executed the webview sample:

Code: Select all

raphy@raohy:~/wxWidgets/samples/webview$ export WEBKIT_DISABLE_COMPOSITING_MODE=1
raphy@raohy:~/wxWidgets/samples/webview$ 
raphy@raohy:~/wxWidgets/samples/webview$ ./builddir/WebView 

But,while the pdf is rendered on the webpage :
PdfPageRendering.jpg
PdfPageRendering.jpg (37.16 KiB) Viewed 426 times
I'm, still, not able to download this https://eur-lex.europa.eu/legal-content ... 12016P/TXT pdf file:

Logging output when clicking "Download" :

Code: Select all

Navigation request to 'blob:webkit-pdfjs-viewer://pdfjs/f1e8a9bf-98cd-448c-8383-b3a536cc0ae6' (target='')
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7387
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Issue with downloading option of webview sample

Post by ONEEYEMAN »

Hi,
The question is - are you able to select the text on the page?

Thank you.
Raphy
Experienced Solver
Experienced Solver
Posts: 62
Joined: Fri Jan 05, 2024 12:15 pm

Re: Issue with downloading option of webview sample

Post by Raphy »

Yes. I'm able to select the text within the pdf page rendered on the webpage:
AbleToSelectTextButFileDownloadRemainsStuck.jpg
AbleToSelectTextButFileDownloadRemainsStuck.jpg (46.15 KiB) Viewed 219 times
But the file download remains stuck (idle) without being able to download file
User avatar
doublemax@work
Super wx Problem Solver
Super wx Problem Solver
Posts: 456
Joined: Wed Jul 29, 2020 6:06 pm
Location: NRW, Germany

Re: Issue with downloading option of webview sample

Post by doublemax@work »

Raphy wrote: Mon Feb 12, 2024 9:38 am But the file download remains stuck (idle) without being able to download file
I suspect it has to do with the custom protocol in the url:

Code: Select all

Navigation request to 'blob:webkit-pdfjs-viewer://pdfjs/f1e8a9bf-98cd-448c-8383-b3a536cc0ae6' (target='')
I don't know if this is supposed to work or not, but it could be worth a try to open an issue for this.
https://github.com/wxWidgets/wxWidgets/issues
Raphy
Experienced Solver
Experienced Solver
Posts: 62
Joined: Fri Jan 05, 2024 12:15 pm

Re: Issue with downloading option of webview sample

Post by Raphy »

Hi @doublemax!

There is actually an issue

I tried with another url: https://www.imf.org/en/Publications/CR/ ... ent-544628

Clicking on "Free Download" in Electronic Access, gives this error:
DownloadIssue02.jpg
Raphy
Experienced Solver
Experienced Solver
Posts: 62
Joined: Fri Jan 05, 2024 12:15 pm

Re: Issue with downloading option of webview sample

Post by Raphy »

I opened a Github's Issue here: https://github.com/wxWidgets/wxWidgets/issues/24307 , hoping I will get a feedback in a reasonable time
Post Reply