Re: Error with Qt 6 and autotools

2023-08-25 Thread Jean-Marc Lasgouttes

Le 25/08/2023 à 22:08, Cor Blom a écrit :

Sorry, no change. I give up.


Maybe you could just try to ask the suse/qt people why qmake6 does not 
produce a Makefile in this case?


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

2023-08-25 Thread Enrico Forestieri

On Fri, Aug 25, 2023 at 10:08:44PM +0200, Cor Blom wrote:

Op 25-08-2023 om 21:53 schreef Enrico Forestieri:

On Fri, Aug 25, 2023 at 08:45:41PM +0200, Cor Blom wrote:

Op 25-08-2023 om 17:58 schreef Enrico Forestieri:

On Fri, Aug 25, 2023 at 03:32:50PM +0200, Cor Blom wrote:


Op 25-08-2023 om 13:01 schreef Enrico Forestieri:

After that, please report the output of the following commands:

$ make -s INCPATH
$ make -s LIBS
$ make -s EXPORT_MISSING


For all I get:

make: *** No rule to make target etc.

What am I missing?


Do you get a Makefile after issuing the command "qmake6 test.pro"?
If yes, please send it as an attachment, otherwise I am baffled.



One last effort: I did first:

$ qmake6 -project


This simply creates .pro (curdir being the name of the 
current directory) that in turn includes test.pro. Thus, this is an 
unnecessary step.



Then I did

$ qmake6 test.pro

The other commands still gave the message "No rule to make target etc."

I did get a Makefile. See attached.


The Makefile you get is not related to the test.pro file I attached 
previously. Please, make sure that test.pro is not an empty file (I 
also get a useless Makefile by using an empty test.pro). For your 
convenience, I am attaching again the test.pro file.





Sorry, no change. I give up.


This is a mystery to me.

--
Enrico
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Error with Qt 6 and autotools

2023-08-25 Thread Cor Blom




Op 25-08-2023 om 21:53 schreef Enrico Forestieri:

On Fri, Aug 25, 2023 at 08:45:41PM +0200, Cor Blom wrote:

Op 25-08-2023 om 17:58 schreef Enrico Forestieri:

On Fri, Aug 25, 2023 at 03:32:50PM +0200, Cor Blom wrote:


Op 25-08-2023 om 13:01 schreef Enrico Forestieri:

After that, please report the output of the following commands:

$ make -s INCPATH
$ make -s LIBS
$ make -s EXPORT_MISSING


For all I get:

make: *** No rule to make target etc.

What am I missing?


Do you get a Makefile after issuing the command "qmake6 test.pro"?
If yes, please send it as an attachment, otherwise I am baffled.



One last effort: I did first:

$ qmake6 -project


This simply creates .pro (curdir being the name of the current 
directory) that in turn includes test.pro. Thus, this is an unnecessary 
step.



Then I did

$ qmake6 test.pro

The other commands still gave the message "No rule to make target etc."

I did get a Makefile. See attached.


The Makefile you get is not related to the test.pro file I attached 
previously. Please, make sure that test.pro is not an empty file (I also 
get a useless Makefile by using an empty test.pro). For your 
convenience, I am attaching again the test.pro file.





Sorry, no change. I give up.

Cor
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Error with Qt 6 and autotools

2023-08-25 Thread Enrico Forestieri

On Fri, Aug 25, 2023 at 08:45:41PM +0200, Cor Blom wrote:

Op 25-08-2023 om 17:58 schreef Enrico Forestieri:

On Fri, Aug 25, 2023 at 03:32:50PM +0200, Cor Blom wrote:


Op 25-08-2023 om 13:01 schreef Enrico Forestieri:

After that, please report the output of the following commands:

$ make -s INCPATH
$ make -s LIBS
$ make -s EXPORT_MISSING


For all I get:

make: *** No rule to make target etc.

What am I missing?


Do you get a Makefile after issuing the command "qmake6 test.pro"?
If yes, please send it as an attachment, otherwise I am baffled.



One last effort: I did first:

$ qmake6 -project


This simply creates .pro (curdir being the name of the current 
directory) that in turn includes test.pro. Thus, this is an unnecessary 
step.



Then I did

$ qmake6 test.pro

The other commands still gave the message "No rule to make target etc."

I did get a Makefile. See attached.


The Makefile you get is not related to the test.pro file I attached 
previously. Please, make sure that test.pro is not an empty file (I also 
get a useless Makefile by using an empty test.pro). For your 
convenience, I am attaching again the test.pro file.


--
Enrico
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
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Error with Qt 6 and autotools

2023-08-25 Thread Cor Blom



Op 25-08-2023 om 17:58 schreef Enrico Forestieri:

On Fri, Aug 25, 2023 at 03:32:50PM +0200, Cor Blom wrote:


Op 25-08-2023 om 13:01 schreef Enrico Forestieri:

After that, please report the output of the following commands:

$ make -s INCPATH
$ make -s LIBS
$ make -s EXPORT_MISSING


For all I get:

make: *** No rule to make target etc.

What am I missing?


Do you get a Makefile after issuing the command "qmake6 test.pro"?
If yes, please send it as an attachment, otherwise I am baffled.



One last effort: I did first:

$ qmake6 -project

Then I did

$ qmake6 test.pro

The other commands still gave the message "No rule to make target etc."

I did get a Makefile. See attached.

Cor#
# Makefile for building: test
# Generated by qmake (3.1) (Qt 6.5.2)
# Project:  test.pro
# Template: app
# Command: /bin/qmake6 -o Makefile test.pro
#

MAKEFILE  = Makefile

EQ= =

### Compiler, tools and options

CC= gcc
CXX   = g++
DEFINES   = -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB
CFLAGS= -pipe -O2 -Wall -Wextra -D_REENTRANT $(DEFINES)
CXXFLAGS  = -pipe -O2 -Wall -Wextra -D_REENTRANT $(DEFINES)
INCPATH   = -I. -I. -I/usr/include/qt6 -I/usr/include/qt6/QtGui 
-I/usr/include/qt6/QtCore -I. -I/usr/lib64/qt6/mkspecs/linux-g++
QMAKE = /bin/qmake6
DEL_FILE  = rm -f
CHK_DIR_EXISTS= test -d
MKDIR = mkdir -p
COPY  = cp -f
COPY_FILE = cp -f
COPY_DIR  = cp -f -R
INSTALL_FILE  = install -m 644 -p
INSTALL_PROGRAM = install -m 755 -p
INSTALL_DIR   = cp -f -R
QINSTALL  = /bin/qmake6 -install qinstall
QINSTALL_PROGRAM = /bin/qmake6 -install qinstall -exe
DEL_FILE  = rm -f
SYMLINK   = ln -f -s
DEL_DIR   = rmdir
MOVE  = mv -f
TAR   = tar -cf
COMPRESS  = gzip -9f
DISTNAME  = test1.0.0
DISTDIR = /home/abuild/test/.tmp/test1.0.0
LINK  = g++
LFLAGS= -Wl,-O1 -Wl,-rpath,/usr/lib64 -Wl,-rpath-link,/usr/lib64
LIBS  = $(SUBLIBS) /usr/lib64/libQt6Gui.so /usr/lib64/libGLX.so 
/usr/lib64/libOpenGL.so /usr/lib64/libQt6Core.so -lpthread -lGL   
AR= ar cqs
RANLIB= 
SED   = sed
STRIP = strip

### Output directory

OBJECTS_DIR   = ./

### Files

SOURCES   =  
OBJECTS   = 
DIST  = /usr/lib64/qt6/mkspecs/features/spec_pre.prf \
/usr/lib64/qt6/mkspecs/common/unix.conf \
/usr/lib64/qt6/mkspecs/common/linux.conf \
/usr/lib64/qt6/mkspecs/common/sanitize.conf \
/usr/lib64/qt6/mkspecs/common/gcc-base.conf \
/usr/lib64/qt6/mkspecs/common/gcc-base-unix.conf \
/usr/lib64/qt6/mkspecs/common/g++-base.conf \
/usr/lib64/qt6/mkspecs/common/g++-unix.conf \
/usr/lib64/qt6/mkspecs/qconfig.pri \
/usr/lib64/qt6/mkspecs/modules/qt_lib_concurrent.pri \
/usr/lib64/qt6/mkspecs/modules/qt_lib_core.pri \
/usr/lib64/qt6/mkspecs/modules/qt_lib_core5compat.pri \
/usr/lib64/qt6/mkspecs/modules/qt_lib_core_private.pri \
/usr/lib64/qt6/mkspecs/modules/qt_lib_dbus.pri \
/usr/lib64/qt6/mkspecs/modules/qt_lib_gui.pri \
/usr/lib64/qt6/mkspecs/modules/qt_lib_printsupport.pri \
/usr/lib64/qt6/mkspecs/modules/qt_lib_sql.pri \
/usr/lib64/qt6/mkspecs/modules/qt_lib_svg.pri \
/usr/lib64/qt6/mkspecs/modules/qt_lib_svgwidgets.pri \
/usr/lib64/qt6/mkspecs/modules/qt_lib_widgets.pri \
/usr/lib64/qt6/mkspecs/modules/qt_lib_xml.pri \
/usr/lib64/qt6/mkspecs/features/qt_functions.prf \
/usr/lib64/qt6/mkspecs/features/qt_config.prf \
/usr/lib64/qt6/mkspecs/linux-g++/qmake.conf \
/usr/lib64/qt6/mkspecs/features/spec_post.prf \
/usr/lib64/qt6/mkspecs/features/exclusive_builds.prf \
/usr/lib64/qt6/mkspecs/features/toolchain.prf \
/usr/lib64/qt6/mkspecs/features/default_pre.prf \
/usr/lib64/qt6/mkspecs/features/resolve_config.prf \
/usr/lib64/qt6/mkspecs/features/default_post.prf \
/usr/lib64/qt6/mkspecs/features/warn_on.prf \
/usr/lib64/qt6/mkspecs/features/qt.prf \
/usr/lib64/qt6/mkspecs/features/resources_functions.prf \
/usr/lib64/qt6/mkspecs/features/resources.prf \
/usr/lib64/qt6/mkspecs/features/moc.prf \
/usr/lib64/qt6/mkspecs/features/link_ltcg.prf \
/usr/lib64/qt6/mkspecs/features/unix/opengl.prf \
/usr/lib64/qt6/mkspecs/features/unix/thread.prf \
/usr/lib64/qt6/mkspecs/features/qmake_use.prf \

Re: Bug: counter of recent documents in Preferences dialog

2023-08-25 Thread Pavel Sanda
On Fri, Aug 25, 2023 at 01:36:41PM +0200, Pavel Sanda wrote:
> > At this point I suggest reverting the change you made, unless someone else 
> > claims to have reproduced the bug. But it is just a suggestion.
> 
> Ok, I can do that. 

Committed. P
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Error with Qt 6 and autotools

2023-08-25 Thread Enrico Forestieri

On Fri, Aug 25, 2023 at 06:53:42PM +0200, Cor Blom wrote:


Op 25-08-2023 om 17:58 schreef Enrico Forestieri:

On Fri, Aug 25, 2023 at 03:32:50PM +0200, Cor Blom wrote:


Op 25-08-2023 om 13:01 schreef Enrico Forestieri:

After that, please report the output of the following commands:

$ make -s INCPATH
$ make -s LIBS
$ make -s EXPORT_MISSING


For all I get:

make: *** No rule to make target etc.

What am I missing?


Do you get a Makefile after issuing the command "qmake6 test.pro"?
If yes, please send it as an attachment, otherwise I am baffled.



One additional remark: I build everything in the opensuse 
buildservice. If there is a fault on my side, it is in the way Qt6 is 
packaged/configured in openSUSE. (or I need to add a additional 
package that I knowing nothing about). If you think that's the case, I 
can ask on the opensuse mailinglist. There are Qt experts there.


The configuration is based on qmake6. So, if you can build using qmake 
it has to work also with lyx. It is suspicious that you don't get a 
Makefile without any error indication.


--
Enrico
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Error with Qt 6 and autotools

2023-08-25 Thread Enrico Forestieri

On Fri, Aug 25, 2023 at 06:46:18PM +0200, Cor Blom wrote:


Op 25-08-2023 om 17:58 schreef Enrico Forestieri:

On Fri, Aug 25, 2023 at 03:32:50PM +0200, Cor Blom wrote:


Op 25-08-2023 om 13:01 schreef Enrico Forestieri:

After that, please report the output of the following commands:

$ make -s INCPATH
$ make -s LIBS
$ make -s EXPORT_MISSING


For all I get:

make: *** No rule to make target etc.

What am I missing?


Do you get a Makefile after issuing the command "qmake6 test.pro"?
If yes, please send it as an attachment, otherwise I am baffled.



Sorry, no.


There must be an issue with your Qt6 qmake but I don't know what it 
could be.


--
Enrico
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Error with Qt 6 and autotools

2023-08-25 Thread Cor Blom

Op 25-08-2023 om 17:58 schreef Enrico Forestieri:

On Fri, Aug 25, 2023 at 03:32:50PM +0200, Cor Blom wrote:


Op 25-08-2023 om 13:01 schreef Enrico Forestieri:

After that, please report the output of the following commands:

$ make -s INCPATH
$ make -s LIBS
$ make -s EXPORT_MISSING


For all I get:

make: *** No rule to make target etc.

What am I missing?


Do you get a Makefile after issuing the command "qmake6 test.pro"?
If yes, please send it as an attachment, otherwise I am baffled.



One additional remark: I build everything in the opensuse buildservice. 
If there is a fault on my side, it is in the way Qt6 is 
packaged/configured in openSUSE. (or I need to add a additional package 
that I knowing nothing about). If you think that's the case, I can ask 
on the opensuse mailinglist. There are Qt experts there.


Cor
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Error with Qt 6 and autotools

2023-08-25 Thread Cor Blom

Op 25-08-2023 om 17:58 schreef Enrico Forestieri:

On Fri, Aug 25, 2023 at 03:32:50PM +0200, Cor Blom wrote:


Op 25-08-2023 om 13:01 schreef Enrico Forestieri:

After that, please report the output of the following commands:

$ make -s INCPATH
$ make -s LIBS
$ make -s EXPORT_MISSING


For all I get:

make: *** No rule to make target etc.

What am I missing?


Do you get a Makefile after issuing the command "qmake6 test.pro"?
If yes, please send it as an attachment, otherwise I am baffled.



Sorry, no.

I can build the package with cmake, so I can do some testing the coming 
months in spite of this problem.


I leave it at this for now then, but if some testing is needed, let me know.

Thanks,

Cor

--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Can I backport this commit to 2.3.x for cat.po?

2023-08-25 Thread Scott Kostyshak
On Fri, Aug 25, 2023 at 11:47:13AM -0400, Richard Kimberly Heck wrote:
> On 8/25/23 10:31, Scott Kostyshak wrote:
> > On Fri, Aug 25, 2023 at 10:24:42AM -0400, Scott Kostyshak wrote:
> > > On Ubuntu 23.04 I now get an error without the following commit in 
> > > master: 9715d3504c6a74f9a498e2d9232956255110225d
> > > 
> > > Here's the error:
> > > 
> > > cd /home/scott/lyxbuilds/2.3.x/CMakeBuild/po && /usr/bin/python3 
> > > /home/scott/lyxbuilds/2.3.x/repo/development/cmake/po/cat.py 
> > > /home/scott/lyxbuilds/2.3.x/CMakeBuild/po/qt4_l10n.pot 
> > > /home/scott/lyxbuilds/2.3.x/CMakeBuild/po/layouts_l10n.pot 
> > > /home/scott/lyxbuilds/2.3.x/CMakeBuild/po/languages_l10n.pot 
> > > /home/scott/lyxbuilds/2.3.x/CMakeBuild/po/latexfonts_l10n.pot 
> > > /home/scott/lyxbuilds/2.3.x/CMakeBuild/po/encodings_l10n.pot 
> > > /home/scott/lyxbuilds/2.3.x/CMakeBuild/po/ui_l10n.pot 
> > > /home/scott/lyxbuilds/2.3.x/CMakeBuild/po/external_l10n.pot 
> > > /home/scott/lyxbuilds/2.3.x/CMakeBuild/po/formats_l10n.pot > 
> > > /home/scott/lyxbuilds/2.3.x/CMakeBuild/po/lyx2.3.cat_tmp.pot
> > > Traceback (most recent call last):
> > >File "/home/scott/lyxbuilds/2.3.x/repo/development/cmake/po/cat.py", 
> > > line 34, in 
> > >  fil = open(f, "rU")
> > >^
> > > ValueError: invalid mode: 'rU'
> > > make[2]: *** [po/CMakeFiles/translations.dir/build.make:1384: 
> > > po/lyx2.3.cat.pot] Error 1
> > > 
> > > Can I cherry-pick to 2.3.x?
> > Additionally to build I needed to cherry-pick 8c4d6bbb.
> > 
> > Is that OK also?
> 
> Yes, go ahead.

Thanks, done at dee5eec1 and 6b4c7c5e.

Scott


signature.asc
Description: PGP signature
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Error with Qt 6 and autotools

2023-08-25 Thread Enrico Forestieri

On Fri, Aug 25, 2023 at 03:32:50PM +0200, Cor Blom wrote:


Op 25-08-2023 om 13:01 schreef Enrico Forestieri:

After that, please report the output of the following commands:

$ make -s INCPATH
$ make -s LIBS
$ make -s EXPORT_MISSING


For all I get:

make: *** No rule to make target etc.

What am I missing?


Do you get a Makefile after issuing the command "qmake6 test.pro"?
If yes, please send it as an attachment, otherwise I am baffled.

--
Enrico
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Can I backport this commit to 2.3.x for cat.po?

2023-08-25 Thread Richard Kimberly Heck

On 8/25/23 10:31, Scott Kostyshak wrote:

On Fri, Aug 25, 2023 at 10:24:42AM -0400, Scott Kostyshak wrote:

On Ubuntu 23.04 I now get an error without the following commit in master: 
9715d3504c6a74f9a498e2d9232956255110225d

Here's the error:

cd /home/scott/lyxbuilds/2.3.x/CMakeBuild/po && /usr/bin/python3 
/home/scott/lyxbuilds/2.3.x/repo/development/cmake/po/cat.py 
/home/scott/lyxbuilds/2.3.x/CMakeBuild/po/qt4_l10n.pot 
/home/scott/lyxbuilds/2.3.x/CMakeBuild/po/layouts_l10n.pot 
/home/scott/lyxbuilds/2.3.x/CMakeBuild/po/languages_l10n.pot 
/home/scott/lyxbuilds/2.3.x/CMakeBuild/po/latexfonts_l10n.pot 
/home/scott/lyxbuilds/2.3.x/CMakeBuild/po/encodings_l10n.pot 
/home/scott/lyxbuilds/2.3.x/CMakeBuild/po/ui_l10n.pot 
/home/scott/lyxbuilds/2.3.x/CMakeBuild/po/external_l10n.pot 
/home/scott/lyxbuilds/2.3.x/CMakeBuild/po/formats_l10n.pot > 
/home/scott/lyxbuilds/2.3.x/CMakeBuild/po/lyx2.3.cat_tmp.pot
Traceback (most recent call last):
   File "/home/scott/lyxbuilds/2.3.x/repo/development/cmake/po/cat.py", line 34, in 

 fil = open(f, "rU")
   ^
ValueError: invalid mode: 'rU'
make[2]: *** [po/CMakeFiles/translations.dir/build.make:1384: 
po/lyx2.3.cat.pot] Error 1

Can I cherry-pick to 2.3.x?

Additionally to build I needed to cherry-pick 8c4d6bbb.

Is that OK also?


Yes, go ahead.

Riki


--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Can I backport this commit to 2.3.x for cat.po?

2023-08-25 Thread Scott Kostyshak
On Fri, Aug 25, 2023 at 10:24:42AM -0400, Scott Kostyshak wrote:
> On Ubuntu 23.04 I now get an error without the following commit in master: 
> 9715d3504c6a74f9a498e2d9232956255110225d
> 
> Here's the error:
> 
> cd /home/scott/lyxbuilds/2.3.x/CMakeBuild/po && /usr/bin/python3 
> /home/scott/lyxbuilds/2.3.x/repo/development/cmake/po/cat.py 
> /home/scott/lyxbuilds/2.3.x/CMakeBuild/po/qt4_l10n.pot 
> /home/scott/lyxbuilds/2.3.x/CMakeBuild/po/layouts_l10n.pot 
> /home/scott/lyxbuilds/2.3.x/CMakeBuild/po/languages_l10n.pot 
> /home/scott/lyxbuilds/2.3.x/CMakeBuild/po/latexfonts_l10n.pot 
> /home/scott/lyxbuilds/2.3.x/CMakeBuild/po/encodings_l10n.pot 
> /home/scott/lyxbuilds/2.3.x/CMakeBuild/po/ui_l10n.pot 
> /home/scott/lyxbuilds/2.3.x/CMakeBuild/po/external_l10n.pot 
> /home/scott/lyxbuilds/2.3.x/CMakeBuild/po/formats_l10n.pot > 
> /home/scott/lyxbuilds/2.3.x/CMakeBuild/po/lyx2.3.cat_tmp.pot
> Traceback (most recent call last):
>   File "/home/scott/lyxbuilds/2.3.x/repo/development/cmake/po/cat.py", line 
> 34, in 
> fil = open(f, "rU")
>   ^
> ValueError: invalid mode: 'rU'
> make[2]: *** [po/CMakeFiles/translations.dir/build.make:1384: 
> po/lyx2.3.cat.pot] Error 1
> 
> Can I cherry-pick to 2.3.x?

Additionally to build I needed to cherry-pick 8c4d6bbb.

Is that OK also?

Scott


signature.asc
Description: PGP signature
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Can I backport this commit to 2.3.x for cat.po?

2023-08-25 Thread Scott Kostyshak
On Ubuntu 23.04 I now get an error without the following commit in master: 
9715d3504c6a74f9a498e2d9232956255110225d

Here's the error:

cd /home/scott/lyxbuilds/2.3.x/CMakeBuild/po && /usr/bin/python3 
/home/scott/lyxbuilds/2.3.x/repo/development/cmake/po/cat.py 
/home/scott/lyxbuilds/2.3.x/CMakeBuild/po/qt4_l10n.pot 
/home/scott/lyxbuilds/2.3.x/CMakeBuild/po/layouts_l10n.pot 
/home/scott/lyxbuilds/2.3.x/CMakeBuild/po/languages_l10n.pot 
/home/scott/lyxbuilds/2.3.x/CMakeBuild/po/latexfonts_l10n.pot 
/home/scott/lyxbuilds/2.3.x/CMakeBuild/po/encodings_l10n.pot 
/home/scott/lyxbuilds/2.3.x/CMakeBuild/po/ui_l10n.pot 
/home/scott/lyxbuilds/2.3.x/CMakeBuild/po/external_l10n.pot 
/home/scott/lyxbuilds/2.3.x/CMakeBuild/po/formats_l10n.pot > 
/home/scott/lyxbuilds/2.3.x/CMakeBuild/po/lyx2.3.cat_tmp.pot
Traceback (most recent call last):
  File "/home/scott/lyxbuilds/2.3.x/repo/development/cmake/po/cat.py", line 34, 
in 
fil = open(f, "rU")
  ^
ValueError: invalid mode: 'rU'
make[2]: *** [po/CMakeFiles/translations.dir/build.make:1384: 
po/lyx2.3.cat.pot] Error 1

Can I cherry-pick to 2.3.x?

Scott


signature.asc
Description: PGP signature
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Error with Qt 6 and autotools

2023-08-25 Thread Cor Blom

Op 25-08-2023 om 13:01 schreef Enrico Forestieri:

After that, please report the output of the following commands:

$ make -s INCPATH
$ make -s LIBS
$ make -s EXPORT_MISSING


For all I get:

make: *** No rule to make target etc.

What am I missing?

Cor
--
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

2023-08-25 Thread Pavel Sanda
On Wed, Aug 23, 2023 at 11:06:01AM +0200, Dan wrote:
> >> The problem
> >> 
> >> Follow through
> >>  1. Run Lyx (version, build and OS info in the text attatchment).
> >>  2. Open the Preferences dialog (Tools > Preferences). 3. In the Look and 
> >> Feel section, choose User Interface.
> >>  4. Set the number of recent documents to more than 9.
> >>  5. The last digit of the two-digit number is barely visible (see 
> >> attatched image).
> >>
> >
> > Should be fixed by 06198fbe1854.
> >
> 
> Could you actually reproduce the problem? I ask because I get the same 
> problem after your patch.

Actually I could not, but the issue and the fix seemed obvious, so I thought 
that with some Qt sytle and Qt version things go wrong.

> At this point I suggest reverting the change you made, unless someone else 
> claims to have reproduced the bug. But it is just a suggestion.

Ok, I can do that. You could try whether setting lastfiles->minimumSize->Width 
fixes the problem if you encounter it again.

Pavel
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Error with Qt 6 and autotools

2023-08-25 Thread Enrico Forestieri

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
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
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Error with Qt 6 and autotools

2023-08-25 Thread Cor Blom

[   45s] make  all-am [   45s] make[6]: Entering directory
'/home/abuild/rpmbuild/BUILD/lyx-qt6-2.4.1692654261.fe74c24da9/src/frontends/qt'

[   45s]   CXX  ButtonPolicy.o
[   45s]   CXX  Dialog.o [   45s]   CXX  DialogFactory.o [
45s]   CXX  Action.o [   45s] In file included from
Dialog.cpp:15: [   45s] GuiView.h:22:10: fatal error: QMainWindow: No
such file or directory [   45s]22 | #include  [
45s]   |  ^ [   45s] compilation terminated. 
[   45s] make[6]: *** [Makefile:1015: Dialog.o] Error 1 [   45s]

make[6]: *** Waiting for unfinished jobs [   45s] In file
included from FindAndReplace.h:15, [   45s]  from
DialogFactory.cpp:14: [   45s] DockView.h:17:10: fatal error:
QDockWidget: No such file or directory [   45s]17 | #include
 [   45s]   |  ^ [   45s]
compilation terminated. [   45s] make[6]: *** [Makefile:1015:
DialogFactory.o] Error 1 [   45s] In file included from
Action.cpp:14: [   45s] GuiApplication.h:21:10: fatal error:
QApplication: No such file or directory [   45s]21 | #include
 [   45s]   |  ^~ [   45s]
compilation terminated.


I tried something, looking at what could not be found. Those files are
not immediately under /usr/include/qt6 but in their respective
subfolders: QtConcurrent, QtWidgets, QtSvg and QtSvgWidgets. So I linked
the content of those folders to /usr/include/qt6 The result is that
compilation passes the place of the error above. (Later there is an
error, but I assume this has to do with my messing with the files.)

In CMakeLists.text there is the following line, which possibly makes it
work with cmake:

if(Qt6Core_FOUND)
   qt_use_modules(frontend_qt Core Gui Widgets Concurrent Svg
SvgWidgets)

Maybe this helps?

Cor
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel