Bug 472181 - Project does not build
Summary: Project does not build
Status: REPORTED
Alias: None
Product: KTechLab
Classification: Applications
Component: general (show other bugs)
Version: 0.50.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Zoltan Padrah
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-12 09:42 UTC by charles
Modified: 2023-07-12 13:45 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
build logs (12.33 KB, text/x-log)
2023-07-12 09:42 UTC, charles
Details
build logs latest (2.97 KB, text/x-log)
2023-07-12 09:56 UTC, charles
Details

Note You need to log in before you can comment on or make changes to this bug.
Description charles 2023-07-12 09:42:26 UTC
Created attachment 160247 [details]
build logs

Hello,

I cloned the project "https://invent.kde.org/sdk/ktechlab" and followed the instruction to build it after the installation of all the dependencies.

The project does not build because of 2 errors. Please find the log file in attachment.

Thanks for your help.
Comment 1 charles 2023-07-12 09:45:03 UTC
Comment on attachment 160247 [details]
build logs

== starting build at mer. 12 juil. 2023 11:44:11 CEST == 
[  1%] Generating ts...
[  1%] Generating mo...
[  1%] Built target tsfiles-073a86723a69281a85f2259982bbd97b
[  1%] Automatic MOC for target microbe
[  1%] Built target microbe_autogen
[  1%] Automatic MOC for target test_ktechlab
[  1%] Built target test_ktechlab_autogen
[  1%] Automatic MOC for target ktechlab
[  1%] Built target ktechlab_autogen
[  1%] Automatic MOC for target core
[  1%] Built target pofiles-073a86723a69281a85f2259982bbd97b
[  1%] Built target core_autogen
[  1%] Automatic MOC for target elements
[  1%] Automatic MOC for target flowparts
[  1%] Built target elements_autogen
[  1%] Automatic MOC for target micro
[  1%] Built target flowparts_autogen
[  1%] Built target micro_autogen
[  1%] Automatic MOC for target mechanics
[  1%] Automatic MOC for target drawparts
[  1%] Built target drawparts_autogen
[  1%] Built target mechanics_autogen
[  1%] Automatic MOC for target ktlqt3support
[  1%] Automatic MOC for target math
[  1%] Built target math_autogen
[  1%] Built target ktlqt3support_autogen
[  1%] Built target doc-en-index-cache-bz2
[  1%] Building CXX object microbe/CMakeFiles/microbe.dir/instruction.cpp.o
[  1%] Automatic MOC for target test_loaded_icons
[  1%] Built target test_loaded_icons_autogen
[  1%] Building CXX object src/CMakeFiles/test_ktechlab.dir/gui/itemeditor/propertyeditorlist.cpp.o
/home/charles/ktechlab/ktechlab/microbe/instruction.cpp: In member function ‘virtual QString Instr_sourceCode::code() const’:
/home/charles/ktechlab/ktechlab/microbe/instruction.cpp:3758:50: error: ‘SkipEmptyParts’ is not a member of ‘Qt’
 3758 |  QStringList sourceLines = m_raw.split("\n", Qt::SkipEmptyParts); // QString::split("\n",m_raw);
      |                                                  ^~~~~~~~~~~~~~
make[2]: *** [microbe/CMakeFiles/microbe.dir/build.make:180 : microbe/CMakeFiles/microbe.dir/instruction.cpp.o] Erreur 1
make[1]: *** [CMakeFiles/Makefile2:1600 : microbe/CMakeFiles/microbe.dir/all] Erreur 2
make[1]: *** Attente des tâches non terminées....
[  1%] Building CXX object src/CMakeFiles/test_ktechlab.dir/gui/itemeditor/orientationwidget.cpp.o
/home/charles/ktechlab/ktechlab/src/gui/itemeditor/propertyeditorlist.cpp: In constructor ‘PropertyEditorList::PropertyEditorList(QWidget*, Property*)’:
/home/charles/ktechlab/ktechlab/src/gui/itemeditor/propertyeditorlist.cpp:130:64: error: ‘textActivated’ is not a member of ‘PropComboBox’
  130 |     connect(m_combo, qOverload<const QString &>(&PropComboBox::textActivated), this, &PropertyEditorList::valueChanged);
      |                                                                ^~~~~~~~~~~~~
make[2]: *** [src/CMakeFiles/test_ktechlab.dir/build.make:265 : src/CMakeFiles/test_ktechlab.dir/gui/itemeditor/propertyeditorlist.cpp.o] Erreur 1
make[2]: *** Attente des tâches non terminées....
make[1]: *** [CMakeFiles/Makefile2:1654 : src/CMakeFiles/test_ktechlab.dir/all] Erreur 2
make: *** [Makefile:141 : all] Erreur 2
Comment 2 charles 2023-07-12 09:56:15 UTC
Created attachment 160249 [details]
build logs latest
Comment 3 charles 2023-07-12 10:08:17 UTC
My version of QT is 5.12.8
Comment 4 Nicolas Fella 2023-07-12 13:23:54 UTC
You need at least Qt 5.14 (or maybe even 5.15)
Comment 5 charles 2023-07-12 13:45:13 UTC
thx. I'll try that