Closed sgourdas closed 2 weeks ago
@sgourdas Duplicate of #1193?
@kelson42 I don't think so, I tried your solution before opening and it didn't help.
What is the output of "$ ldconfig -p | grep libkiwix"? Have you run "qmake ." and "make clean all"?
ldconfig -p | grep libkiwix
gives me:
libkiwix.so.14 (libc6,x86-64) => /usr/local/lib/x86_64-linux-gnu/libkiwix.so.14
maklibkiwix.so.13 (libc6,x86-64) => /usr/local/lib/x86_64-linux-gnu/libkiwix.so.13
libkiwix.so.3 (libc6,x86-64) => /lib/x86_64-linux-gnu/libkiwix.so.3
libkiwix.so (libc6,x86-64) => /usr/local/lib/x86_64-linux-gnu/libkiwix.so
libkiwix.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libkiwix.so
Idk what exactly changed, I did make clean
and qmake .
a bunch of times and sudo make install
now gives:
src/contenttypefilter.cpp: In constructor ‘ContentTypeFilter::ContentTypeFilter(QString, QWidget*)’:
src/contenttypefilter.cpp:15:31: error: ‘void QCheckBox::stateChanged(int)’ is deprecated: Use checkStateChanged() instead [-Werror=deprecated-declarations]
15 | connect(this, &QCheckBox::stateChanged, this, &ContentTypeFilter::onStateChanged);
| ^~~~~~~~~~~~
In file included from /home/ubunter/Qt/6.8.0/gcc_64/include/QtWidgets/QCheckBox:1,
from src/contenttypefilter.h:4,
from src/contenttypefilter.cpp:1:
/home/ubunter/Qt/6.8.0/gcc_64/include/QtWidgets/qcheckbox.h:41:10: note: declared here
41 | void stateChanged(int);
| ^~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make: *** [Makefile:14775: contenttypefilter.o] Error 1
@sgourdas Can you please compile with Qt5?
Thanks for the help, this worked... I have messed up my environment these days with setting up kiwix-build for Windows and it is all upside down...
@sgourdas Reopening as the issue should still be fixed @ShaopengLin I guess this is something you have introduced. Can you please fix the Qt6 compilation?
@kelson42 This is not something I changed but it is due to the use of Qt6.7+. The compilation with Qt 6.2.4 as from our README works fine. It will be a quick change to support this for Qt 6.7+.
@sgourdas I can't seem to reproduce this using Qt 6.7.0 as I somehow isn't erroring from -Werror. It might be better to have you make the change since you have the machine environment.
@sgourdas Any chance you can quickly fix this bug?
A few more deprecation issues rose up after resolving the one I posted here. Will push on separate commits.
Despite that several other errors occur when launching the app.
Example issue:
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
Solved with QT_QPA_PLATFORM=xcb ./kiwix-desktop
Additional issues:
Path override failed for key base::DIR_APP_DICTIONARIES and path '/mnt/c/Users/jim31/OneDrive/Documents/Github/kiwix-desktop/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/home/ubunter/Qt/6.8.0/gcc_64/libexec/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/home/ubunter/Qt/6.8.0/gcc_64/libexec/qtwebengine_dictionaries'
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
AFAIK, this is only a warning, can be ignored. If compilation instructions change, please don't forget to update the README.md
Running
sudo make install
on latest libkiwix build outputs: