centOS系统在编译opencv-2.3.1的时候出现如下错误,该如何解决
展开全部
root用户执行:
安装依赖包:
yum install cmake gcc gcc-c++ gtk+-devel gimp-devel gimp-devel-tools gimp-help-browser zlib-devel libtiff-devel libjpeg-devellibpng-devel gstreamer-devel libavc1394-devel libraw1394-devel libdc1394-develjasper-devel jasper-utils swig python libtool nasm -y
解压:
tar jxvf OpenCV-2.3.1a.tar.bz2
编译:
cd OpenCV-2.3.1
mkdir release
cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr -D BUILD_NEW_PYTHON_SUPPORT=NO ..
make
make install
安装依赖包:
yum install cmake gcc gcc-c++ gtk+-devel gimp-devel gimp-devel-tools gimp-help-browser zlib-devel libtiff-devel libjpeg-devellibpng-devel gstreamer-devel libavc1394-devel libraw1394-devel libdc1394-develjasper-devel jasper-utils swig python libtool nasm -y
解压:
tar jxvf OpenCV-2.3.1a.tar.bz2
编译:
cd OpenCV-2.3.1
mkdir release
cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr -D BUILD_NEW_PYTHON_SUPPORT=NO ..
make
make install
更多追问追答
追问
哈哈,我试试看,这俩全是我发的
追答
关键是依赖包要装全,否则cmake过不去
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询