fedora24 --x86-64-- opencv2.4.13 error: help me!

SimpleUmbrella 2016-09-22 01:46:50
-- 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

...全文
2750 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
SimpleUmbrella 2017-04-19
  • 打赏
  • 举报
回复
引用 3 楼 qq_35941348 的回复:
楼主解决了吗?
i have the same problem. now : sudo dnf upgrade && wait ... a moment later i will come back.
qq_35941348 2016-12-31
  • 打赏
  • 举报
回复
楼主解决了吗?
轩宸 2016-10-11
  • 打赏
  • 举报
回复
肯定编译不行啊,第一步都设置好。 CPACK_PACKAGE_VERSION does not match version provided by version.hpp
shiter 2016-09-26
  • 打赏
  • 举报
回复
cstdlib:75:25: 致命错误:stdlib.h:No such file or directory #include_next <stdlib.h> 路径没有配置正确?

1,451

社区成员

发帖
与我相关
我的任务
社区描述
多媒体/设计/Flash/Silverlight 开发 图象工具使用
社区管理员
  • 图象工具使用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧