You are not logged in.
Pages: 1
Pretty sweet that qt6 is already in the repo! I installed all the packages and am trying to compile the examples. I did a "cp -r /usr/share/doc/qt6/examples qt6examples" in my home dir, switched to it, mkdir build, cd build....
Running cmake fails....
[micah@micahlaptop build]$ cmake ..
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as
project(ProjectName)
near the top of the file, but after cmake_minimum_required().
CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error at CMakeLists.txt:3 (qt_examples_build_begin):
Unknown CMake command "qt_examples_build_begin".
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.19)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred!
See also "/home/micah/qt6examples/CMakeFiles/CMakeOutput.log".
Running "qmake .." does generate a Makefile, but the make fails.
/usr/include/qt/QtCore/qobject.h:283:13: note: candidate: ‘template<class Func1, class Func2> static typename std::enable_if<(((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0) && (! QtPrivate::FunctionPointer<Func2>::IsPointerToMemberFunction)), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType)’
283 | connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
| ^~~~~~~
/usr/include/qt/QtCore/qobject.h:283:13: note: template argument deduction/substitution failed:
../../../network/securesocketclient/certificateinfo.cpp:61:58: note: couldn’t deduce template parameter ‘Func1’
61 | this, &CertificateInfo::updateCertificateInfo);
| ^
In file included from /usr/include/qt/QtWidgets/qwidget.h:45,
from /usr/include/qt/QtWidgets/qdialog.h:44,
from /usr/include/qt/QtWidgets/QDialog:1,
from ../../../network/securesocketclient/certificateinfo.h:54,
from ../../../network/securesocketclient/certificateinfo.cpp:51:
/usr/include/qt/QtCore/qobject.h:314:13: note: candidate: ‘template<class Func1, class Func2> static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == -1), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)’
314 | connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
| ^~~~~~~
/usr/include/qt/QtCore/qobject.h:314:13: note: template argument deduction/substitution failed:
../../../network/securesocketclient/certificateinfo.cpp:61:58: note: candidate expects 3 arguments, 4 provided
61 | this, &CertificateInfo::updateCertificateInfo);
| ^
In file included from /usr/include/qt/QtWidgets/qwidget.h:45,
from /usr/include/qt/QtWidgets/qdialog.h:44,
from /usr/include/qt/QtWidgets/QDialog:1,
from ../../../network/securesocketclient/certificateinfo.h:54,
from ../../../network/securesocketclient/certificateinfo.cpp:51:
/usr/include/qt/QtCore/qobject.h:322:13: note: candidate: ‘template<class Func1, class Func2> static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == -1), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType)’
322 | connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
| ^~~~~~~
/usr/include/qt/QtCore/qobject.h:322:13: note: template argument deduction/substitution failed:
../../../network/securesocketclient/certificateinfo.cpp:61:58: note: couldn’t deduce template parameter ‘Func1’
61 | this, &CertificateInfo::updateCertificateInfo);
| ^
/usr/bin/moc -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB --include /home/micah/qt6examples/build/network/torrent/moc_predefs.h -I/usr/lib/qt/mkspecs/linux-g++ -I/home/micah/qt6examples/network/torrent -I/usr/include/qt -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtCore -I. -I/usr/include/c++/10.2.0 -I/usr/include
[.....]
make[2]: Leaving directory '/home/micah/qt6examples/build/network/securesocketclient'
make[1]: *** [Makefile:465: sub-securesocketclient-make_first] Error 2
g++ -c -pipe -O2 -Wall -Wextra -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../../../network/secureudpserver -I. -I/usr/include/qt -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtCore -I. -I. -I/usr/lib/qt/mkspecs/linux-g++ -o moc_nicselector.o moc_nicselector.cpp
make[2]: Leaving directory '/home/micah/qt6examples/build/network/network-chat'
g++ -Wl,-O1 -o secureudpserver main.o mainwindow.o server.o nicselector.o moc_mainwindow.o moc_server.o moc_nicselector.o /usr/lib/libQt5Widgets.so /usr/lib/libQt5Gui.so /usr/lib/libQt5Network.so /usr/lib/libQt5Core.so -lGL -lpthread
make[2]: Leaving directory '/home/micah/qt6examples/build/network/secureudpserver'
g++ -Wl,-O1 -o torrent main.o addtorrentdialog.o bencodeparser.o connectionmanager.o mainwindow.o metainfo.o peerwireclient.o ratecontroller.o filemanager.o torrentclient.o torrentserver.o trackerclient.o qrc_icons.o moc_addtorrentdialog.o moc_mainwindow.o moc_peerwireclient.o moc_ratecontroller.o moc_filemanager.o moc_torrentclient.o moc_torrentserver.o moc_trackerclient.o /usr/lib/libQt5Widgets.so /usr/lib/libQt5Gui.so /usr/lib/libQt5Network.so /usr/lib/libQt5Core.so -lGL -lpthread
make[2]: Leaving directory '/home/micah/qt6examples/build/network/torrent'
make[1]: Leaving directory '/home/micah/qt6examples/build/network'
make: *** [Makefile:159: sub-network-make_first] Error 2
Has anyone else got it?
From Qt's own instructions, it looks like the examples are to be built with Qt itself, but hopefully there's a way to compile them independently, or it makes little sense to distribute them the way Arch does.
Last edited by yodermk (2020-12-10 01:47:49)
Offline
Doh. Should have done "qmake-qt6" instead of just "qmake". So far so good, hasn't finished yet.
Offline
Yep, was just running the wrong qmake LOL. Sorry, but hope this encourages someone else to play with it!
Offline
Pages: 1