Linking CXX executable test_Composer_responses [ 82%] Building CXX object CMakeFiles/DesktopGui.dir/src/Gui/TagListWidget.cpp.o [ 83%] Building CXX object CMakeFiles/DesktopGui.dir/src/Gui/TagWidget.cpp.o [ 83%] Built target test_Composer_responses Scanning dependencies of target test_Cryptography_MessageModel [ 83%] Building CXX object CMakeFiles/test_Cryptography_MessageModel.dir/tests/Cryptography/test_Cryptography_MessageModel.cpp.o [ 83%] Building CXX object CMakeFiles/DesktopGui.dir/src/Gui/TaskProgressIndicator.cpp.o [ 83%] Building CXX object CMakeFiles/DesktopGui.dir/src/Gui/UserAgentWebPage.cpp.o [ 84%] Building CXX object CMakeFiles/DesktopGui.dir/src/Gui/Util.cpp.o [ 84%] Building CXX object CMakeFiles/DesktopGui.dir/src/Gui/Window.cpp.o [ 84%] Building CXX object CMakeFiles/DesktopGui.dir/src/Gui/ShortcutHandler/ShortcutConfigDialog.cpp.o [ 85%] Building CXX object CMakeFiles/DesktopGui.dir/src/Gui/ShortcutHandler/ShortcutConfigWidget.cpp.o [ 85%] Building CXX object CMakeFiles/test_Cryptography_MessageModel.dir/test_Cryptography_MessageModel_automoc.cpp.o [ 85%] Building CXX object CMakeFiles/DesktopGui.dir/src/Gui/ShortcutHandler/ShortcutHandler.cpp.o /root/dev/trojita/src/Gui/Window.cpp: In lambda function: /root/dev/trojita/src/Gui/Window.cpp:743:68: error: ‘this’ was not captured for this lambda function make[2]: *** [CMakeFiles/DesktopGui.dir/src/Gui/Window.cpp.o] Error 1 make[2]: *** Se espera a que terminen otras tareas.... Scanning dependencies of target test_Formatting [ 85%] Building CXX object CMakeFiles/test_Formatting.dir/tests/Misc/test_Formatting.cpp.o [ 85%] Building CXX object CMakeFiles/test_Formatting.dir/test_Formatting_automoc.cpp.o Linking CXX executable test_Cryptography_MessageModel Scanning dependencies of target test_Html_formatting [ 85%] Building CXX object CMakeFiles/test_Html_formatting.dir/tests/Composer/test_Html_formatting.cpp.o Linking CXX executable test_Formatting [ 85%] Built target test_Formatting Scanning dependencies of target test_Imap_BodyParts [ 86%] make[1]: *** [CMakeFiles/DesktopGui.dir/all] Error 2 make[1]: *** Se espera a que terminen otras tareas.... [ 86%] Building CXX object CMakeFiles/test_Imap_BodyParts.dir/tests/Imap/test_Imap_BodyParts.cpp.o Building CXX object CMakeFiles/test_Html_formatting.dir/test_Html_formatting_automoc.cpp.o [ 86%] Built target test_Cryptography_MessageModel [ 86%] Building CXX object CMakeFiles/test_Imap_BodyParts.dir/test_Imap_BodyParts_automoc.cpp.o Linking CXX executable test_Html_formatting [ 86%] Built target test_Html_formatting Linking CXX executable test_Imap_BodyParts [ 86%] Built target test_Imap_BodyParts make: *** [all] Error 2 root@debian-term:~/dev/trojita/_build# uname -a Linux debian-term 3.16.0-0.bpo.4-686-pae #1 SMP Debian 3.16.7-ckt9-3~deb8u1~bpo70+1 (2015-04-27) i686 GNU/Linux root@debian-term:~/dev/trojita/_build# cmake --version cmake version 2.8.11. root@debian-term:~# qmake -qt=qt5 -v QMake version 3.0 Using Qt version 5.3.2 in /usr/lib/i386-linux-gnu
What git version are you trying to build (there's no "this" on that line in the current version), and which version of which compiler? In general, we require full C++11 support; the first GCC version which supports that is 4.8.1. Wheezy ships with 4.7.x. Quite a few C++11 features are missing from that version, including delegating constructors. This just won't work; you'll need a newer compiler to build Trojita, I'm afraid.
try "QObject::tr(.)" ::tr() is a static public member of QObject and tries to resolve "this" when being invoked w/o context. The compiler could/can autoresolve this ;-) and there may be even some ignored "using", but the correct call here is QObject::tr()
Git commit 5ffcc53934452d65e36dcfc0951cbb0a22593029 by Jan Kundrát, on behalf of Thomas Lübking. Committed on 19/04/2016 at 16:16. Pushed by gerrit into branch 'master'. Fix build failure on Wheezy Change-Id: I669bf19adab391b24138dd4f65126f00454fa7c6 Signed-off-by: Jan Kundrát <jkt@kde.org> M +1 -1 src/Gui/Window.cpp http://commits.kde.org/trojita/5ffcc53934452d65e36dcfc0951cbb0a22593029