文件准备:OpenCV-2.0.0.tar.bz2 nios2gcc-20080203.tar.bz2
- 配置交叉编译环境,参考我前面的博客DE2上移植uClinux系统
- 解压OpenCV源文件:tar -xvf OpenCV-2.0.0.tar.bz2
- 配置编译信息:
./configure --host=nios2-linux --without-gtk --without-carbon--without-quicktime --without-1394libs --without-ffmpeg --without-python--without-swig –without-v4l --enable-static --disable-shared --disable-appsCXX=nios2-linux-g++ --prefix=/home/dh/Sopc/OpenCV-2.0.0/build
- 编译make(出错)
- 安装make install
遇到的主要问题:
错误1:error: "__exchange_and_add" was not declared in this scope。Google之,发现和编译器版本有关,nios2-linux-g++ 的版本为