Re: Error with Qt 6 and autotools
Am Thu, 24 Aug 2023 13:27:36 +0200 schrieb Cor Blom : > Op 24-08-2023 om 13:09 schreef Jean-Marc Lasgouttes: > > Le 24/08/2023 à 09:38, Cor Blom a écrit : > >> Op 24-08-2023 om 00:50 schreef Jean-Marc Lasgouttes: > >>> Do you have a config.log? The configure mechanism for qt6 now relies > >>> on qmake, so there may be quirks. > >> > >> [ 22s] run "./configure && make" > >> [ 22s] > >> [ 22s] + TEXMF=/usr/share/texmf > >> [ 22s] + CONFIG_SHELL=/usr/bin/bash > >> [ 22s] + export CONFIG_SHELL > > ... > > > > Thanks. There is nothing obviously wrong here. > > > > 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. > > Cor This is the wrong file. Should be 'Makefile', not 'Makefile.am'. (To be found in the build-directory after the configuration-run) Kornel pgpdvDQpg3T0D.pgp Description: Digitale Signatur von OpenPGP -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Error with Qt 6 and autotools
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. Cor# Makefile.in generated by automake 1.16.5 from Makefile.am. # src/frontends/qt/Makefile. Generated from Makefile.in by configure. # Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgincludedir = $(includedir)/lyx pkglibdir = $(libdir)/lyx pkglibexecdir = $(libexecdir)/lyx am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = x86_64-suse-linux-gnu host_triplet = x86_64-suse-linux-gnu target_triplet = x86_64-suse-linux-gnu subdir = src/frontends/qt ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/lyxinclude.m4 \ $(top_srcdir)/config/lyxpython.m4 $(top_srcdir)/config/pkg.m4 \ $(top_srcdir)/config/qt.m4 $(top_srcdir)/config/spell.m4 \ $(top_srcdir)/m4/ax_check_compile_flag.m4 \ $(top_srcdir)/m4/eilseq.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) AM_V_AR = $(am__v_AR_$(V)) am__v_AR_ = $(am__v_AR_$(AM_DEFAULT_VERBOSITY)) am__v_AR_0 = @echo " AR " $@; am__v_AR_1 = liblyxqt_a_AR = $(AR) $(ARFLAGS) liblyxqt_a_LIBADD = am__objects_1 = ButtonPolicy.$(OBJEXT) Dialog.$(OBJEXT) \ DialogFactory.$(OBJEXT) Action.$(OBJEXT) \ BulletsModule.$(OBJEXT) ButtonController.$(OBJEXT) \ CategorizedCombo.$(OBJEXT) ColorCache.$(OBJEXT) \ CustomizedWidgets.$(OBJEXT) DialogView.$(OBJEXT) \ DockView.$(OBJEXT) EmptyTable.$(OBJEXT) \ FancyLineEdit.$(OBJEXT) FileDialog.$(OBJEXT) \ FindAndReplace.$(OBJEXT) FloatPlacement.$(OBJEXT) \ GuiAbout.$(OBJEXT) GuiAlert.$(OBJEXT) GuiApplication.$(OBJEXT) \ GuiBibitem.$(OBJEXT) GuiBibtex.$(OBJEXT) GuiBox.$(OBJEXT) \ GuiBranch.$(OBJEXT) GuiBranches.$(OBJEXT) GuiChanges.$(OBJEXT) \ GuiCharacter.$(OBJEXT) GuiCitation.$(OBJEXT) \ GuiClickableLabel.$(OBJEXT) GuiClipboard.$(OBJEXT) \ GuiCommandBu
Re: Error with Qt 6 and autotools
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. JMarc -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Error with Qt 6 and autotools
Op 24-08-2023 om 13:09 schreef Jean-Marc Lasgouttes: Le 24/08/2023 à 09:38, Cor Blom a écrit : Op 24-08-2023 om 00:50 schreef Jean-Marc Lasgouttes: Do you have a config.log? The configure mechanism for qt6 now relies on qmake, so there may be quirks. [ 22s] run "./configure && make" [ 22s] [ 22s] + TEXMF=/usr/share/texmf [ 22s] + CONFIG_SHELL=/usr/bin/bash [ 22s] + export CONFIG_SHELL ... Thanks. There is nothing obviously wrong here. 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. Cor include $(top_srcdir)/config/common.am BUILT_SOURCES = $(UIFILES:%.ui=ui_%.h) BUILT_SOURCES += $(MOCEDFILES) CLEANFILES = $(BUILT_SOURCES) # Qt stuff # # Use _() for localization instead of tr() or trUtf8() UICFLAGS=-tr lyx::qt_ # The ui_%.h pattern must match the filter in ../../../po/Rules-lyx ui_%.h: ui/%.ui $(AM_V_GEN)$(QT_UIC) $(UICFLAGS) $< -o $@ MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp) QT_VERSION = $(shell IFS=.; set -- `echo $(QTLIB_VERSION)`; \ echo 0x0`echo "obase=16; $$1*65536+$$2*256+$$3" | bc`) # The moc_%.cpp pattern must match the filter in ../../../po/Rules-lyx moc_%.cpp: %.h $(AM_V_GEN)$(QT_MOC) -DQT_VERSION=$(QT_VERSION) -o $@ $< # LIBRARIES # noinst_LIBRARIES = liblyxqt.a liblyxqt_a_DEPENDENCIES = $(MOCEDFILES) AM_CPPFLAGS += \ $(QT_CPPFLAGS) \ -DQT_NO_CAST_TO_ASCII \ -DQT_NO_STL \ -I$(top_srcdir)/src \ -I$(top_srcdir)/src/frontends \ -I$(top_srcdir)/images \ $(QT_INCLUDES) \ $(BOOST_INCLUDES) $(ICONV_INCLUDES) $(ZLIB_INCLUDES) $(NOD_INCLUDES) SOURCEFILES = \ ButtonPolicy.cpp \ ButtonPolicy.h \ Dialog.cpp \ DialogFactory.cpp \ Action.cpp \ BulletsModule.cpp \ ButtonController.cpp \ CategorizedCombo.cpp \ ColorCache.cpp \ CustomizedWidgets.cpp \ DialogView.cpp \ DockView.cpp \ EmptyTable.cpp \ FancyLineEdit.cpp \ FileDialog.cpp \ FindAndReplace.cpp \ FloatPlacement.cpp \ GuiAbout.cpp \ GuiAlert.cpp \ GuiApplication.cpp \ GuiBibitem.cpp \ GuiBibtex.cpp \ GuiBox.cpp \ GuiBranch.cpp \ GuiBranches.cpp \ GuiChanges.cpp \ GuiCharacter.cpp \ GuiCitation.cpp \ GuiClickableLabel.cpp \ GuiClipboard.cpp \ GuiCommandBuffer.cpp \ GuiCommandEdit.cpp \ GuiCompare.cpp \ GuiCompareHistory.cpp \ GuiCompleter.cpp \ GuiCounter.cpp \ GuiDelimiter.cpp \ GuiDialog.cpp \ GuiDocument.cpp \ GuiErrorList.cpp \ GuiERT.cpp \ GuiExternal.cpp \ GuiFontExample.cpp \ GuiFontLoader.cpp \ GuiFontMetrics.cpp \ GuiGraphics.cpp \ GuiHSpace.cpp \ GuiHyperlink.cpp \ GuiIdListModel.cpp \ GuiImage.cpp \ GuiInclude.cpp \ GuiIndex.cpp \ GuiIndices.cpp \ GuiInfo.cpp \ GuiKeySymbol.cpp \ GuiLabel.cpp \ GuiLine.cpp \ GuiListings.cpp \ GuiLog.cpp \ GuiLyXFiles.cpp \ GuiMathMatrix.cpp \ GuiNomenclature.cpp \ GuiNote.cpp \ GuiPainter.cpp \ GuiParagraph.cpp \ GuiPhantom.cpp \ GuiPrefs.cpp \ GuiPrintindex.cpp \ GuiPrintNomencl.cpp \ GuiProgress.cpp \ GuiProgressView.cpp \ GuiRef.cpp \ GuiSearch.cpp \ GuiSelection.cpp \ GuiSelectionManager.cpp \ GuiSendto.cpp \ GuiSetBorder.cpp \ GuiShowFile.cpp \ GuiSpellchecker.cpp \ GuiSymbols.cpp \ GuiTabular.cpp \ GuiTabularCreate.cpp \ GuiTexinfo.cpp \ GuiThesaurus.cpp \ GuiToc.cpp \ GuiToolbar.cpp \ GuiView.cpp \ GuiViewSource.cpp \ GuiVSpace.cpp \ GuiWorkArea.cpp \ GuiWrap.cpp \ IconPalette.cpp \ InGuiThread.cpp \ InsertTableWidget.cpp \ InsetParamsDialog.cpp \ InsetParamsWidget.cpp \ LengthCombo.cpp \ LyXFileDialog.cpp \ LaTeXHighlighter.cpp \ LayoutBox.cpp \ Menus.cpp \ PanelStack.cpp \ qt_helpers.cpp \ TocModel.cpp \ TocWidget.cpp \ Toolbars.cpp \ ToolTipFormatter.cpp \ Validator.cpp NOMOCHEADER = \ ButtonController.h \ ColorCache.h \ Dialog.h \ DialogFactory.h \ FileDialog.h \ GuiFontExample.h \ GuiFontLoader.h \ GuiFontMetrics.h \ GuiIdListModel.h \ GuiImage.h \ GuiKeySymbol.h \ GuiPainter.h \ GuiWorkArea_Private.h \ LaTeXHighlig
Re: Error with Qt 6 and autotools
Le 24/08/2023 à 09:38, Cor Blom a écrit : Op 24-08-2023 om 00:50 schreef Jean-Marc Lasgouttes: Do you have a config.log? The configure mechanism for qt6 now relies on qmake, so there may be quirks. [ 22s] run "./configure && make" [ 22s] [ 22s] + TEXMF=/usr/share/texmf [ 22s] + CONFIG_SHELL=/usr/bin/bash [ 22s] + export CONFIG_SHELL ... Thanks. There is nothing obviously wrong here. Can I see src/frontends/qt/Makefile too? To be frank, only Enrico knows the new code well. But I can at least try until he chimes in. JMarc -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Bug: counter of recent documents in Preferences dialog
Am Mittwoch, dem 23.08.2023 um 11:06 +0200 schrieb Dan: > Could you actually reproduce the problem? I ask because I get the > same problem after your patch. > > Honestly, I am confused right now > 1. I tried both versions (prior to and after your patch) in Debian > 12.1 with MATE 1.26, and the problem did not appear. > 2. Although your patch > (https://www.lyx.org/trac/changeset?old_path=%2Flyxgit&old=06198fbe18 > 54c64cd62acdbd8bcaafdb2a3b3b9e&new_path=%2Flyxgit&new=06198fbe1854c64 > cd62acdbd8bcaafdb2a3b3b9e) does not fix the problem (in my Linuxmint > 21.2 with Cinnamon at least), it really SHOULD: actually just > setting the maximum property to 10 should suffice. > 3. The maximum limit set in the QT ui file is ignored: actual > maximum is always 50 (you can check by running the program and > incrementing one by one). Therefore, this problem should not appear > to begin with... > > For contrast see Tools > Preferences > Look & Feel > Document > Handling. > The spin box for the number of minutes > (https://www.lyx.org/trac/browser/lyxgit/src/frontends/qt/ui/PrefDocH > andlingUi.ui#L111): if you change the maximum from 300 to 100 or 9 > and compile, the spinbox shrinks! I can't reproduce the problem, and in the UI settings, there is nothing wrong I can see (the settings for last files and Snapshot minutes are identical). -- Jürgen -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Error with Qt 6 and autotools
Op 24-08-2023 om 00:50 schreef Jean-Marc Lasgouttes: Do you have a config.log? The configure mechanism for qt6 now relies on qmake, so there may be quirks. [ 22s] run "./configure && make" [ 22s] [ 22s] + TEXMF=/usr/share/texmf [ 22s] + CONFIG_SHELL=/usr/bin/bash [ 22s] + export CONFIG_SHELL [ 22s] + CFLAGS='-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g' [ 22s] + export CFLAGS [ 22s] + CXXFLAGS='-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g' [ 22s] + export CXXFLAGS [ 22s] + FFLAGS='-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g ' [ 22s] + export FFLAGS [ 22s] + FCFLAGS='-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g ' [ 22s] + export FCFLAGS [ 22s] + LDFLAGS=-flto=auto [ 22s] + export LDFLAGS [ 22s] + ./configure --host=x86_64-suse-linux-gnu --build=x86_64-suse-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-build-type=rel --without-aspell --with-hunspell --with-enchant --enable-qt6 [ 22s] configuring LyX version 2.4.0~RC1.devel [ 22s] checking for build type... release [ 22s] checking for version suffix... [ 22s] checking whether Qt6 is requested... yes [ 22s] checking build system type... x86_64-suse-linux-gnu [ 22s] checking host system type... x86_64-suse-linux-gnu [ 22s] checking target system type... x86_64-suse-linux-gnu [ 22s] checking what packaging should be used... posix [ 22s] checking whether to enable maintainer-specific portions of Makefiles... no [ 22s] checking whether make supports nested variables... yes [ 22s] checking for a BSD-compatible install... /usr/bin/install -c [ 22s] checking whether build environment is sane... yes [ 22s] checking for a race-free mkdir -p... /usr/bin/mkdir -p [ 22s] checking for gawk... gawk [ 22s] checking whether make sets $(MAKE)... yes [ 22s] checking whether UID '399' is supported by ustar format... yes [ 22s] checking whether GID '399' is supported by ustar format... yes [ 22s] checking how to create a ustar tar archive... gnutar [ 22s] checking for a Python interpreter with version >= 2.7.0 or 3.5.0... python3 [ 22s] checking for python3... /usr/bin/python3 [ 22s] checking for python version... 3.11 [ 22s] checking for python platform... linux [ 22s] checking for GNU default python prefix... ${prefix} [ 22s] checking for GNU default python exec_prefix... ${exec_prefix} [ 22s] checking for python script directory (pythondir)... ${PYTHON_PREFIX}/lib/python3.11/site-packages [ 22s] checking for python extension module directory (pyexecdir)... ${PYTHON_EXEC_PREFIX}/lib64/python3.11/site-packages [ 22s] checking whether make supports the include directive... yes (GNU style) [ 22s] checking for x86_64-suse-linux-gnu-gcc... no [ 22s] checking for gcc... gcc [ 22s] checking whether the C compiler works... yes [ 22s] checking for C compiler default output file name... a.out [ 22s] checking for suffix of executables... [ 22s] checking whether we are cross compiling... no [ 22s] checking for suffix of object files... o [ 22s] checking whether the compiler supports GNU C... yes [ 22s] checking whether gcc accepts -g... yes [ 22s] checking for gcc option to enable C11 features... none needed [ 23s] checking whether gcc understands -c and -o together... yes [ 23s] checking dependency style of gcc... none [ 23s] checking for x86_64-suse-linux-gnu-ar... no [ 23s] checking for x86_64-suse-linux-gnu-lib... no [ 23s] checking for x86_64-suse-linux-gnu-link... no [ 23s] checking for ar... ar [ 23s] checking the archiver (ar) interface... ar [ 23s] checking for x86_64-suse-linux-gnu-ranlib... no [ 23s] checking for ranlib... ranlib [ 23s] checking for x86_64-suse-linux-gnu-g++... no [ 23s] checking for x86_64-suse-linux-gnu-c++... no [ 23s] checking for x86_64-suse-linux-gnu-gpp... no [ 23s] checking for x86_64-suse-linux-gnu-aCC... no [ 23s] checking for x86_64-suse-linux-gnu-CC... no [ 23s] checking for x86_64-suse-linux-gnu-cxx... no [ 23s] checking for x86_64-suse-linux-gnu-cc++... no [ 23s] checking for x86_64-suse-linux-gnu-cl.exe... no [ 23s] checking for x86_64-suse-linux-gnu-FCC... no [