can't compile Krita

Fazekas László mneko at freemail.hu
Tue Apr 5 17:47:05 UTC 2016


I get this error:

[ 93%] Building CXX object 
plugins/tools/basictools/CMakeFiles/kritadefaulttools.dir/kis_tool_move.cc.o
/home/fazekas/Asztal/krita-dev/krita/plugins/tools/basictools/kis_tool_move.cc: 
In member function ‘bool 
KisToolMove::startStrokeImpl(KisToolMove::MoveToolMode, const QPoint*)’:
/home/fazekas/Asztal/krita-dev/krita/plugins/tools/basictools/kis_tool_move.cc:120:38: 
error: no matching function for call to ‘filterContainer(KisNodeList&, 
KisToolMove::startStrokeImpl(KisToolMove::MoveToolMode, const 
QPoint*)::__lambda22)’
                                      });
                                       ^
/home/fazekas/Asztal/krita-dev/krita/plugins/tools/basictools/kis_tool_move.cc:120:38: 
note: candidate is:
In file included from 
/home/fazekas/Asztal/krita-dev/krita/plugins/tools/basictools/kis_tool_move.cc:40:0:
/home/fazekas/Asztal/krita-dev/krita/libs/image/krita_utils.h:99:14: 
note: template<class C> void KritaUtils::filterContainer(C&, 
std::function<bool(typename C::reference)>)
          void filterContainer(C &container, std::function<bool(typename 
C::reference)> keepIf) {
               ^
/home/fazekas/Asztal/krita-dev/krita/libs/image/krita_utils.h:99:14: 
note:   template argument deduction/substitution failed:
/home/fazekas/Asztal/krita-dev/krita/plugins/tools/basictools/kis_tool_move.cc:120:38: 
note:   ‘KisToolMove::startStrokeImpl(KisToolMove::MoveToolMode, const 
QPoint*)::__lambda22’ is not derived from ‘std::function<bool(typename 
C::reference)>’
                                      });
                                       ^
make[2]: *** 
[plugins/tools/basictools/CMakeFiles/kritadefaulttools.dir/kis_tool_move.cc.o] 
Error 1
make[1]: *** 
[plugins/tools/basictools/CMakeFiles/kritadefaulttools.dir/all] Error 2
make: *** [all] Error 2
fazekas at delux:~/Asztal/krita-dev$ gcc --version
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.1) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

What's the problem?

Thanks,
Fazek


More information about the kimageshop mailing list