QT6 build of ftinspect bit-rotten? (Re: skeletal makefile for ftinspect (Re: Future of autotools)

2023-07-16 Thread Hin-Tak Leung
Btw, anybody done QT6 build of ftinspect lately?When I was writing the makefile, I had to install some qt5*-devel packages. I did some qt3/qt4 stuff a long time ago, so I kept those, but uninstalled most of qt5-dev stuff when I see qt6 being installed as part of half-yearly upgrade. I am on

Re: skeletal makefile for ftinspect (Re: Future of autotools)

2023-07-16 Thread Hin-Tak Leung
Yes, the moc location on fedora 38 can be queried with: pkg-config Qt5Core --variable=host_bins If this works correctly on other systems, we should set  MOC=`pkg-config Qt5Core --variable=host_bins`/moc Or put PATH=${PATH}:`pkg-config Qt5Core --variable=host_bins` and MOC=moc ? I am more inclined

Re: skeletal makefile for ftinspect (Re: Future of autotools)

2023-07-16 Thread Hugh McMaster
On Fri, 14 Jul 2023 at 00:49, suzuki toshiya wrote: > > The pkg-config interface should take care of everything easily. Debian > and Ubuntu have the relevant qt5 pkg-config files. Other distributions > should too. > > Does pkg-config give the information for the pathname of moc? > (the original

Re: skeletal makefile for ftinspect (Re: Future of autotools)

2023-07-13 Thread suzuki toshiya
The pkg-config interface should take care of everything easily. Debian and Ubuntu have the relevant qt5 pkg-config files. Other distributions should too. Does pkg-config give the information for the pathname of moc? (the original question by Hin-Tak was asking about the appropriate path to use

Re: skeletal makefile for ftinspect

2023-07-13 Thread suzuki toshiya
My first experiment changes both of freetype and freetype-demos. (1) configure.raw is changed to generate qt5.mk under builds/unix/ https://gitlab.freedesktop.org/mpsuzuki/freetype-mps-wip/-/compare/master...wip-autotool-ftinspect (2) Hin-Tak's ftinspect.mk is updated to include

Re: skeletal makefile for ftinspect (Re: Future of autotools)

2023-07-13 Thread Hugh McMaster
On Thu, 13 Jul 2023 at 14:20, suzuki toshiya wrote: > I would try to let AX_HAVE_QT() macro to find appropriate set: > > https://www.gnu.org/software/autoconf-archive/ax_have_qt.html > > In the case of Debian (and Ubuntu), qtchooser might be the unified > interface to switch 4, 5, and maybe 6 in

Re: skeletal makefile for ftinspect

2023-07-13 Thread suzuki toshiya
Thanks, using same macro with ttfautohint would be easier for future developers, I would use it. Regards, mpsuzuki On 2023/07/13 15:28, Werner LEMBERG wrote: I would try to let AX_HAVE_QT() macro to find appropriate set: https://www.gnu.org/software/autoconf-archive/ax_have_qt.html An

Re: skeletal makefile for ftinspect

2023-07-13 Thread Werner LEMBERG
> I would try to let AX_HAVE_QT() macro to find appropriate set: > https://www.gnu.org/software/autoconf-archive/ax_have_qt.html An alternative to that may be autotroll https://github.com/tsuna/autotroll that is used in ttfautohint. Werner

Re: skeletal makefile for ftinspect (Re: Future of autotools)

2023-07-12 Thread suzuki toshiya
I would try to let AX_HAVE_QT() macro to find appropriate set: https://www.gnu.org/software/autoconf-archive/ax_have_qt.html In the case of Debian (and Ubuntu), qtchooser might be the unified interface to switch 4, 5, and maybe 6 in future. It seems that AX_HAVE_QT() does not check it, because

Re: skeletal makefile for ftinspect (Re: Future of autotools)

2023-07-12 Thread Hin-Tak Leung
Besides the obvious (LDFLAGS and CXXFLAGS), I wonder what's correct way to detect the qt moc tool? It is /usr/bin/moc-qt5 /usr/lib64/qt5/bin/moc /usr/lib64/qt5/bin/moc-qt5 on my system (fedora 38). They are all the same. "/usr/lib64/qt5/bin/moc" is probably canonical, instead of

Re: skeletal makefile for ftinspect (Re: Future of autotools)

2023-07-12 Thread suzuki toshiya
Good, I was just trying to update configure.raw to add C++ version check & pkg-check for Qt5 :-) Regards, mpsuzuki On 2023/07/13 11:30, Hin-Tak Leung wrote: Not really a big fan of cmake/qmake/meson, I thought I'll give it a try, both to revise my makefile-fu, and perhaps as an educational

skeletal makefile for ftinspect (Re: Future of autotools)

2023-07-12 Thread Hin-Tak Leung
Not really a big fan of cmake/qmake/meson, I thought I'll give it a try, both to revise my makefile-fu, and perhaps as an educational tool for one of the gsoc people struggling with makefiles. Here is a bare-minimum sketetal makefile for building ftinspect. It is written to be minimal, it