fedora24 --x86-64-- opencv2.4.13 error: help me!
-- Java:
-- ant: NO
-- JNI: /usr/java/jdk1.8.0_101/include /usr/java/jdk1.8.0_101/include/linux /usr/java/jdk1.8.0_101/include
-- Java tests: NO
--
-- Documentation:
-- Build Documentation: NO
-- Sphinx: NO
-- PdfLaTeX compiler: NO
-- Doxygen: NO
--
-- Tests and samples:
-- Tests: YES
-- Performance tests: YES
-- C/C++ Examples: NO
--
-- Install path: /usr/local
--
-- cvconfig.h is in: /home/fly/ws/opencv-2.4.13
-- -----------------------------------------------------------------
--
CMake Warning at CMakeLists.txt:1098 (message):
The source directory is the same as binary directory. "make clean" may
damage the source tree
CMake Warning at cmake/OpenCVPackaging.cmake:23 (message):
CPACK_PACKAGE_VERSION does not match version provided by version.hpp
header!
Call Stack (most recent call first):
CMakeLists.txt:1105 (include)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/fly/ws/opencv-2.4.13
/////////////////////////////////////////////////
[ 11%] Generating precomp.hpp.gch/opencv_core_Release.gch
In file included from /usr/include/c++/6.1.1/bits/stl_algo.h:59:0,
from /usr/include/c++/6.1.1/algorithm:62,
from /home/fly/ws/opencv-2.4.13/modules/core/include/opencv2/core/core.hpp:53,
from /home/fly/ws/opencv-2.4.13/modules/core/precomp.hpp:48:
/usr/include/c++/6.1.1/cstdlib:75:25: 致命错误:stdlib.h:No such file or directory
#include_next <stdlib.h>
^
编译中断。
modules/core/CMakeFiles/pch_Generate_opencv_core.dir/build.make:62: recipe for target 'modules/core/precomp.hpp.gch/opencv_core_Release.gch' failed
make[2]: *** [modules/core/precomp.hpp.gch/opencv_core_Release.gch] Error 1
CMakeFiles/Makefile2:1108: recipe for target 'modules/core/CMakeFiles/pch_Generate_opencv_core.dir/all' failed
make[1]: *** [modules/core/CMakeFiles/pch_Generate_opencv_core.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2