Error with Qt 6 and autotools
Enrico Forestieri
forenr at lyx.org
Fri Aug 25 11:01:10 UTC 2023
On Thu, Aug 24, 2023 at 01:53:48PM +0200, Cor Blom wrote:
>
>Op 24-08-2023 om 13:49 schreef Jean-Marc Lasgouttes:
>>Le 24/08/2023 à 13:27, Cor Blom a écrit :
>>>>Can I see src/frontends/qt/Makefile too?
>>>
>>>See attached. I use a recent git checkout, so it should be the
>>>same as the one in the git sources.
>>
>>I meant the generated Makefile.
>>
>
>Ah, sorry. Attached.
You are missing a few includes and libs. I don't know why the
configuration proceeds instead of stopping with an explicatory error.
Please, save the attached file (named test.pro) in an empty directory
and then issue the following command (ignore any warning about private
headers):
$ qmake6 test.pro
After that, please report the output of the following commands:
$ make -s INCPATH
$ make -s LIBS
$ make -s EXPORT_MISSING
As an example, this is what I get:
$ make -s INCPATH
-I. -I/usr/local/qt6/include/QtGui/6.5.2 -I/usr/local/qt6/include/QtGui/6.5.2/QtGui -I/usr/local/qt6/include -I/usr/local/qt6/include/QtSvgWidgets -I/usr/local/qt6/include/QtSvg -I/usr/local/qt6/include/QtWidgets -I/usr/local/qt6/include/QtGui -I/usr/local/qt6/include/QtConcurrent -I/usr/local/qt6/include/QtCore/6.5.2 -I/usr/local/qt6/include/QtCore/6.5.2/QtCore -I/usr/local/qt6/include/QtCore -I. -I/usr/include/opengl -I/usr/include/opengl -I/usr/local/qt6/mkspecs/cygwin-g++-win32
$ make -s LIBS
-L/usr/lib/w32api -L/usr/local/lib /usr/local/qt6/lib/libQt6SvgWidgets.dll.a /usr/local/qt6/lib/libQt6Svg.dll.a /usr/local/qt6/lib/libQt6Widgets.dll.a /usr/local/qt6/lib/libQt6Gui.dll.a /usr/local/qt6/lib/libQt6Concurrent.dll.a /usr/local/qt6/lib/libQt6Core.dll.a -lole32 -luuid -lfreetype -lz
$ make -s EXPORT_MISSING
All necessary includes and libraries should be present and the last
command should not produce any output, otherwise there's a problem with
your Qt6 configuration.
--
Enrico
-------------- next part --------------
QMAKE_EXTRA_VARIABLES = MISSING
qtHaveModule(core) {QT += core} else {MISSING += core}
qtHaveModule(concurrent) {QT += concurrent} else {MISSING += concurrent}
qtHaveModule(gui) {QT += gui gui-private} else {MISSING += gui}
qtHaveModule(svg) {QT += svg} else {MISSING += svg}
qtHaveModule(svgwidgets) {QT += svgwidgets} else {MISSING += svgwidgets}
qtHaveModule(widgets) {QT += widgets} else {MISSING += widgets}
percent.target = %
percent.commands = @echo "\$(\$(@))"
QMAKE_EXTRA_TARGETS += percent
QMAKE_PROJECT_DEPTH = 0
More information about the lyx-devel
mailing list