Open truboxl opened 4 years ago
Could this explain the report at https://boinc.berkeley.edu/forum_thread.php?id=13635&postid=98001#98001 and subsequent posts? User trying to run from repo distribution, on newly-upgraded Ubuntu 20.4 - error
boincmgr: error while loading shared libraries: libwx_gtk2u_html-3.0.so.0: cannot open shared object file: No such file or directory
I also have a gtk error from BOINC running a new copy of UbuntuStudio 20.04:
(boincmgr:4705): Gtk-CRITICAL **: (timestamp): gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
Is this related, or should I make a new issue, or is it my fault somehow? I honestly don't know enough about Linux yet to know. lol :D
Describe the bug https://boinc-dev.ssl.berkeley.narkive.com/9pBp8olG/boinc-should-check-for-gtk-libs Under certain conditions, the build will eventually fail at gtk.h not found even though its present. Also need to improve webview detection.
Steps To Reproduce
pkg-config --libs gtk+-3.0
is presentpkg-config --libs gtk+-2.0
is not presentwx-config --selected-config
outputsgtk2-unicode-3.0
instead ofgtk3-unicode-3.0
wx-config --list
showsgtk3-unicode-3.0
as a valid alternativeExpected behavior ./configure script should fail during pkg-config choosing gtk2 when this error is shown:
For webview, the user will not know about the error until they see build failed with lots of undefined webview errors. Some detection here perhaps?
zlib.h may also suffer the same problem...
Workaround Currently passing
--with-wx-config=/usr/lib/x86_64-linux-gnu/wx/config/gtk3-unicode-3.0
to./configure
without having to overridewx-config
output usingupdate-alternatives
. Trying to build with the least argument as possible here.Additional context
Unrelated info: Some distro does not provide
wx-config-3.0
which is confusingly named (to me) with no relations to GTK3. If they need to know what version of wx-config, usewx-config --version
. https://bugs.archlinux.org/task/56051 Some however decided to put this underwxGTK3-devel
, I am not even sure the 3 stands for wxWidgets version or GTK3 anymore https://bugzilla.redhat.com/show_bug.cgi?id=1077718Under m4 directory there's boinc_gtk.m4, boinc_wxwidgets.m4 and gtk-2.0.m4 that probably need updating...
Also the build instructions for Linux are all over the place with wildly different variations and lots of overrides are needed. Looks daunting to someone new like me. https://github.com/BOINC/boinc/issues/2360#issuecomment-367959535 https://boinc.berkeley.edu/wiki/Installing_BOINC#Build_BOINC_from_source https://boinc.berkeley.edu/trac/wiki/SoftwarePrereqsUnix