Error with Qt 6 and autotools
Cor Blom
cornelisbb at gmail.com
Fri Aug 25 18:45:41 UTC 2023
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
-------------- next part --------------
#############################################################################
# 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 \
/usr/lib64/qt6/mkspecs/features/file_copies.prf \
/usr/lib64/qt6/mkspecs/features/testcase_targets.prf \
/usr/lib64/qt6/mkspecs/features/exceptions.prf \
/usr/lib64/qt6/mkspecs/features/yacc.prf \
/usr/lib64/qt6/mkspecs/features/lex.prf \
test.pro
QMAKE_TARGET = test
DESTDIR =
TARGET = test
first: all
####### Build rules
test: $(OBJECTS)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
Makefile: test.pro /usr/lib64/qt6/mkspecs/linux-g++/qmake.conf /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 \
/usr/lib64/qt6/mkspecs/features/file_copies.prf \
/usr/lib64/qt6/mkspecs/features/testcase_targets.prf \
/usr/lib64/qt6/mkspecs/features/exceptions.prf \
/usr/lib64/qt6/mkspecs/features/yacc.prf \
/usr/lib64/qt6/mkspecs/features/lex.prf \
test.pro \
/usr/lib64/libQt6Gui.prl \
/usr/lib64/libQt6Core.prl
$(QMAKE) -o Makefile test.pro
/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:
/usr/lib64/qt6/mkspecs/features/file_copies.prf:
/usr/lib64/qt6/mkspecs/features/testcase_targets.prf:
/usr/lib64/qt6/mkspecs/features/exceptions.prf:
/usr/lib64/qt6/mkspecs/features/yacc.prf:
/usr/lib64/qt6/mkspecs/features/lex.prf:
test.pro:
/usr/lib64/libQt6Gui.prl:
/usr/lib64/libQt6Core.prl:
qmake: FORCE
@$(QMAKE) -o Makefile test.pro
qmake_all: FORCE
all: Makefile test
dist: distdir FORCE
(cd `dirname $(DISTDIR)` && $(TAR) $(DISTNAME).tar $(DISTNAME) && $(COMPRESS) $(DISTNAME).tar) && $(MOVE) `dirname $(DISTDIR)`/$(DISTNAME).tar.gz . && $(DEL_FILE) -r $(DISTDIR)
distdir: FORCE
@test -d $(DISTDIR) || mkdir -p $(DISTDIR)
$(COPY_FILE) --parents $(DIST) $(DISTDIR)/
$(COPY_FILE) --parents /usr/lib64/qt6/mkspecs/features/data/dummy.cpp $(DISTDIR)/
clean: compiler_clean
-$(DEL_FILE) *~ core *.core
distclean: clean
-$(DEL_FILE) $(TARGET)
-$(DEL_FILE) .qmake.stash
-$(DEL_FILE) Makefile
####### Sub-libraries
mocclean: compiler_moc_header_clean compiler_moc_objc_header_clean compiler_moc_source_clean
mocables: compiler_moc_header_make_all compiler_moc_objc_header_make_all compiler_moc_source_make_all
check: first
benchmark: first
compiler_rcc_make_all:
compiler_rcc_clean:
compiler_moc_predefs_make_all: moc_predefs.h
compiler_moc_predefs_clean:
-$(DEL_FILE) moc_predefs.h
moc_predefs.h: /usr/lib64/qt6/mkspecs/features/data/dummy.cpp
g++ -pipe -O2 -Wall -Wextra -dM -E -o moc_predefs.h /usr/lib64/qt6/mkspecs/features/data/dummy.cpp
compiler_moc_header_make_all:
compiler_moc_header_clean:
compiler_moc_objc_header_make_all:
compiler_moc_objc_header_clean:
compiler_moc_source_make_all:
compiler_moc_source_clean:
compiler_yacc_decl_make_all:
compiler_yacc_decl_clean:
compiler_yacc_impl_make_all:
compiler_yacc_impl_clean:
compiler_lex_make_all:
compiler_lex_clean:
compiler_clean: compiler_moc_predefs_clean
####### Compile
####### Install
install: FORCE
uninstall: FORCE
FORCE:
.SUFFIXES:
More information about the lyx-devel
mailing list