lbellonda / qxmledit

QXmlEdit XML editor. Downloads: https://sourceforge.net/projects/qxmledit/files
http://qxmledit.org
Other
160 stars 46 forks source link

Project ERROR: Unknown module(s) in QT: xmlpatterns #92

Closed bw-bott closed 1 year ago

bw-bott commented 1 year ago

Hi, I'm installing qxmledit according these instructions. When I run qmake, I get

Project MESSAGE: Inst data dir /opt/qxmledit
Project MESSAGE: METAINFO enabled
Project MESSAGE: Inst metainfo dir /opt/qxmledit
Project MESSAGE: DESKTOPINFO enabled
Project MESSAGE: Inst desktop info dir /opt/qxmledit
Project MESSAGE: Inst icon dir /opt/qxmledit
Project MESSAGE: ICON enabled
Project MESSAGE: Inst dir /opt/qxmledit
Project MESSAGE: Inst doc dir /opt/qxmledit
Project MESSAGE: Use fake sources false
Project MESSAGE: Inst lib dir /opt/qxmledit
Project MESSAGE: Inst include dir /opt/qxmledit/include
Project MESSAGE: Inst translations dir /opt/qxmledit/translations
Project MESSAGE: Tips enabled
Project MESSAGE: SCXML enabled
Project MESSAGE: QWTPlot enabled
Project MESSAGE: Precompiled headers activated
Project MESSAGE: No C11 support
Project MESSAGE: TARGET_NAME_UNIXSTYLE 
Project MESSAGE: LIB_SUFFIX 
Project MESSAGE: LIB_NOVERSIONED 
Project MESSAGE: Compiler warnings enabled
Project MESSAGE: TODO Enabled
Project MESSAGE: QXMLEDIT_LIB_SUFFIX disabled

and it looks fine.

Subsequently, I run make and I get the following error:

cd external/qwtplot3d/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/mattiabo/qxmledit-0.9.18/external/qwtplot3d/qwtplot3d.pro ) && make -f Makefile 
make[1]: Entering directory '/home/mattiabo/qxmledit-0.9.18/external/qwtplot3d'
cd src/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/mattiabo/qxmledit-0.9.18/external/qwtplot3d/src/src.pro ) && make -f Makefile 
make[2]: Entering directory '/home/mattiabo/qxmledit-0.9.18/external/qwtplot3d/src'
Makefile:564: warning: overriding recipe for target '../../../build/3dplot/moc/moc_qwt3d_extglwidget.cpp'
Makefile:501: warning: ignoring old recipe for target '../../../build/3dplot/moc/moc_qwt3d_extglwidget.cpp'
Makefile:591: warning: overriding recipe for target '../../../build/3dplot/moc/moc_qwt3d_gridplot.cpp'
Makefile:528: warning: ignoring old recipe for target '../../../build/3dplot/moc/moc_qwt3d_gridplot.cpp'
Makefile:616: warning: overriding recipe for target '../../../build/3dplot/moc/moc_qwt3d_plot3d.cpp'
Makefile:491: warning: ignoring old recipe for target '../../../build/3dplot/moc/moc_qwt3d_plot3d.cpp'
Makefile:642: warning: overriding recipe for target '../../../build/3dplot/moc/moc_qwt3d_surfaceplot.cpp'
Makefile:554: warning: ignoring old recipe for target '../../../build/3dplot/moc/moc_qwt3d_surfaceplot.cpp'
make[2]: Nothing to be done for 'first'.
make[2]: Leaving directory '/home/mattiabo/qxmledit-0.9.18/external/qwtplot3d/src'
make[1]: Leaving directory '/home/mattiabo/qxmledit-0.9.18/external/qwtplot3d'
cd src/ && ( test -e Makefile.QXmlEditWidget || /usr/lib/qt5/bin/qmake -o Makefile.QXmlEditWidget /home/mattiabo/qxmledit-0.9.18/src/QXmlEditWidget.pro ) && make -f Makefile.QXmlEditWidget 
Project MESSAGE: Inst data dir /opt/qxmledit
Project MESSAGE: METAINFO enabled
Project MESSAGE: Inst metainfo dir /opt/qxmledit
Project MESSAGE: DESKTOPINFO enabled
Project MESSAGE: Inst desktop info dir /opt/qxmledit
Project MESSAGE: Inst icon dir /opt/qxmledit
Project MESSAGE: ICON enabled
Project MESSAGE: Inst dir /opt/qxmledit
Project MESSAGE: Inst doc dir /opt/qxmledit
Project MESSAGE: Use fake sources false
Project MESSAGE: Inst lib dir /opt/qxmledit
Project MESSAGE: Inst include dir /opt/qxmledit/include
Project MESSAGE: Inst translations dir /opt/qxmledit/translations
Project MESSAGE: Tips enabled
Project MESSAGE: SCXML enabled
Project MESSAGE: QWTPlot enabled
Project MESSAGE: Precompiled headers activated
Project MESSAGE: No C11 support
Project MESSAGE: TARGET_NAME_UNIXSTYLE 
Project MESSAGE: LIB_SUFFIX 
Project MESSAGE: LIB_NOVERSIONED 
Project MESSAGE: Compiler warnings enabled
Project MESSAGE: TODO Enabled
Project MESSAGE: QXMLEDIT_LIB_SUFFIX disabled
Project ERROR: Unknown module(s) in QT: xmlpatterns
make: *** [Makefile:93: sub-src-QXmlEditWidget-pro-make_first-ordered] Error 3

The involved Qt module (xmlpatterns) seems installed: image image

I've also installed: sudo apt install libqt5xmlpatterns5 libqt5x11extras5-dev libqt5help5 qttools5-dev qtxmlpatterns5-dev-tools libqt5svg5-dev cmake-qt-gui qt5-qmake qtbase5-dev qtbase5-dev-tools qt5-style-plugins, but nothing changes.

I'm on Ubuntu 22.04.2 LTS.

How should I solve the problem? Thanks in advance.

lbellonda commented 1 year ago

Hello, after installing libqt5xmlpatterns-dev (in Synaptics), you should unpack the sources in a new folder and compile. You should install the "-dev" package. qmake needs to recalcuate the dependencies after that, so using the same folders will not work, just use a new folder.