toonz.cpp:358:5: error: 'mt19937_64' is not a member of 'std'
std::mt19937_64 engine(seed);
^~~
toonz.cpp:363:9: error: 'bernoulli_distribution' is not a member of 'std'
std::bernoulli_distribution rbern(g[x] * norm_const);
^~~
toonz.cpp:364:22: error: 'engine' was not declared in this scope
n[x] = rbern(engine) ? std::numeric_limits<uchar>::max() : 0;
^~~~~~
toonz.cpp:364:28: error: there are no arguments to 'rbern' that depend on a template parameter, so a declaration of 'rbern' must be available [-fpermissive]
n[x] = rbern(engine) ? std::numeric_limits<uchar>::max() : 0;</uchar></uchar>
Compile log http://koji.russianfedora.pro/kojifiles/work/tasks/7759/77759/build.log
Other logs and package versions.
http://koji.russianfedora.pro/koji/taskinfo?taskID=77759
You can either remove the file toonz.cpp from the Makefile.am or else you can apply this patch:
https://sourceforge.net/p/lives/patches/11/attachment/lives-toonz.cpp.patch
After applying patch I have new problem:
In file included from /usr/include/opencv2/core.hpp:54:0,
from /usr/include/opencv2/core/core.hpp:48,
from toonz.cpp:143:
/usr/include/opencv2/core/matx.hpp: In instantiation of 'cv::Matx<_Tp, m, n>::Matx(_Tp, _Tp, _Tp, _Tp) [with _Tp = unsigned char; int m = 3; int n = 1]':
/usr/include/opencv2/core/matx.hpp:925:38: required from 'cv::Vec<_Tp, cn>::Vec(_Tp, _Tp, _Tp, _Tp) [with _Tp = unsigned char; int cn = 3]'
toonz.cpp:416:11: required from 'int phatch_kernel(cv::Mat&, cv::Mat&, int, weed_plant_t**) [with VecT = cv::Vec<unsigned char,="" 3="">; weed_plant_t = weed_leaf]</unsigned>'
toonz.cpp:787:60: required from here
/usr/include/opencv2/core/matx.hpp:519:5: error: static assertion failed: Matx should have at least 4 elements. channels >= 4
CV_StaticAssert(channels >= 4, "Matx should have at least 4 elements.");
lives-2.6.3looks already patched with https://sourceforge.net/p/lives/patches/11/attachment/lives-toonz.cpp.patch but you need to remove toonz.cpp from the Makefile.am anyway.