Menu

#217 Can't compile with GCC 6.1.1

1.0.0
open
nobody
None
1
2016-05-31
2016-05-30
Vascom
No

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.

Discussion

  • Vascom

    Vascom - 2016-05-31

    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.");

     http://koji.russianfedora.pro/kojifiles/work/tasks/7787/77787/build.log
    
     

Log in to post a comment.

MongoDB Logo MongoDB