Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8.0
-
None
-
-
5e69fed69 (dev), 1ff93f98b (6.8), 8ef6c88b0 (6.8.1)
Description
cmake configuration about examples:
[tkloczko@pers-jacek x86_64-redhat-linux-gnu]$ cmake -L | grep EXA CMake Warning: No source or binary directory provided. Both will be assumed to be the same as the current working directory, but note that this warning will become a fatal error in future CMake releases. CMake Error: The source directory "/home/tkloczko/rpmbuild/BUILD/qtdeclarative-everywhere-src-6.8.0/x86_64-redhat-linux-gnu" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. INSTALL_EXAMPLESDIR:STRING=libexec/examples/qt6 QT_BUILD_EXAMPLES:BOOL=ON QT_BUILD_EXAMPLES_AS_EXTERNAL:BOOL=OFF QT_BUILD_EXAMPLES_BY_DEFAULT:BOOL=ON QT_BUILD_EXAMPLES_PROJECT_qtdeclarative:BOOL=ON QT_DEPLOY_MINIMAL_EXAMPLES:BOOL=OFF QT_INSTALL_EXAMPLES_SOURCES:BOOL=OFF QT_INSTALL_EXAMPLES_SOURCES_BY_DEFAULT:BOOL=OFF
and build fails on
[ 76%] Generating .rcc/qmlcache/chattutorial-chapter3_qmlcache_loader.cpp cd /home/tkloczko/rpmbuild/BUILD/qtdeclarative-everywhere-src-6.8.0/x86_64-redhat-linux-gnu/examples/quickcontrols/chattutorial/chapter3 && ../../../../libexec/qt6/qmlcachegen --resource-na /usr/bin/g++ -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redha /home/tkloczko/rpmbuild/BUILD/qtdeclarative-everywhere-src-6.8.0/examples/quick/rendercontrol/rendercontrol_rhi/main.cpp: In constructor ‘MainWindow::MainWindow()’: /home/tkloczko/rpmbuild/BUILD/qtdeclarative-everywhere-src-6.8.0/examples/quick/rendercontrol/rendercontrol_rhi/main.cpp:164:48: warning: ‘void QCheckBox::stateChanged(int)’ is deprecated: 164 | QObject::connect(animCheckBox, &QCheckBox::stateChanged, animCheckBox, [this, animCheckBox, animSlider, animLabel] { | ^~~~~~~~~~~~ In file included from /usr/include/qt6/QtWidgets/QCheckBox:1, from /home/tkloczko/rpmbuild/BUILD/qtdeclarative-everywhere-src-6.8.0/examples/quick/rendercontrol/rendercontrol_rhi/main.cpp:17: /usr/include/qt6/QtWidgets/qcheckbox.h:41:10: note: declared here 41 | void stateChanged(int); | ^~~~~~~~~~~~ /home/tkloczko/rpmbuild/BUILD/qtdeclarative-everywhere-src-6.8.0/examples/quick/rendercontrol/rendercontrol_rhi/main.cpp:186:50: warning: ‘void QCheckBox::stateChanged(int)’ is deprecated: 186 | QObject::connect(mirrorCheckBox, &QCheckBox::stateChanged, mirrorCheckBox, [this, mirrorCheckBox] { | ^~~~~~~~~~~~ /usr/include/qt6/QtWidgets/qcheckbox.h:41:10: note: declared here 41 | void stateChanged(int); | ^~~~~~~~~~~~ [ 76%] Building CXX object examples/quick/advancedtext/CMakeFiles/advancedtextexample.dir/.rcc/qmlcache/advancedtextexample_qmlcache_loader.cpp.o cd /home/tkloczko/rpmbuild/BUILD/qtdeclarative-everywhere-src-6.8.0/x86_64-redhat-linux-gnu/examples/quick/advancedtext && /usr/bin/g++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_D [ 76%] Running moc --collect-json for target chattutorial-chapter3 cd /home/tkloczko/rpmbuild/BUILD/qtdeclarative-everywhere-src-6.8.0/x86_64-redhat-linux-gnu/examples/quickcontrols/chattutorial/chapter3 && /usr/libexec/qt6/moc -o /home/tkloczko/rpmbuild/B cd /home/tkloczko/rpmbuild/BUILD/qtdeclarative-everywhere-src-6.8.0/x86_64-redhat-linux-gnu/examples/quickcontrols/chattutorial/chapter3 && /usr/bin/cmake -E copy_if_different /home/tkloczk collect2: error: ld returned 1 exit status gmake[2]: *** [tools/qmlls/CMakeFiles/qmlls.dir/build.make:122: bin/qmlls] Error 1 gmake[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/qtdeclarative-everywhere-src-6.8.0/x86_64-redhat-linux-gnu' gmake[1]: *** [CMakeFiles/Makefile2:36436: tools/qmlls/CMakeFiles/qmlls.dir/all] Error 2 gmake[1]: *** Waiting for unfinished jobs....