This package does not build for me with gcc6 using the source zip file. Here is the error:

12%] Generating precomp.hpp.gch/opencv_core_Release.gch
In file included from /usr/include/c++/6.1.0/bits/stl_algo.h:59:0,
                 from /usr/include/c++/6.1.0/algorithm:62,
from /sources/multimedia/opencv-3.1.0/modules/core/include/opencv2/core/base.hpp:53, from /sources/multimedia/opencv-3.1.0/modules/core/include/opencv2/core.hpp:54, from /sources/multimedia/opencv-3.1.0/modules/core/include/opencv2/core/utility.hpp:52, from /sources/multimedia/opencv-3.1.0/build/modules/core/precomp.hpp:49: /usr/include/c++/6.1.0/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
 #include_next <stdlib.h>
                         ^
compilation terminated.

There is a bug report here:
https://github.com/opencv/opencv/issues/6517

Here is the commit that fixes the problem:
https://github.com/opencv/opencv/pull/6541/commits/a0fdc91a14f07de25d858037940fcd3ba859b4e2

I tested by just applying the simple change to the file in the zip source and it built without error.

Paul
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to