Error compiling OpenCV, fatal error: stdlib.h: No such file or directory

后端 未结 5 1263
孤街浪徒
孤街浪徒 2020-12-03 05:06

I\'m trying to compile OpenCV. I\'ve tried the master branch (which is currently on commit dc9602e) and version/tag 3.1.0. I\'m using Fedora 24, I first tried using gcc that

5条回答
  •  鱼传尺愫
    2020-12-03 05:29

    For archlinux distro like Manjaro the flags -D ENABLE_PRECOMPILED_HEADERS=OFF and -D CMAKE_NO_SYSTEM_FROM_IMPORTED=ON fixed it with success.

    I also got problems with blas and cblas during compilation. I linked cblas by adding CMAKE_EXE_LINKER_FLAGS=-lcblas.

提交回复
热议问题