MIPS编译opencv-自用
cmake -DCMAKE_TOOLCHAIN_FILE=../platforms/linux/mips32r5el-gnu.toolchain.cmake \ -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=/home/incar/projects/opencv/opencv-4.9.0/install \ -D INSTALL_C_EXAMPLES=OFF \ -D INSTALL_PYTHON_EXAMPLES=OFF \ -D BUILD_EXAMPLES=OFF \ -D BUILD_SHARED_LIBS=ON \ -D BUILD_NEW_PYTHON_SUPPORT=OFF \ -D BUILD_opencv_apps=OFF \ -D BUILD_opencv_calib3d=OFF \ -D BUILD_opencv_core=ON \ -D BUILD_opencv_features2d=OFF \ -D BUILD_opencv_flann=OFF \ -D BUILD_opencv_highgui=ON \ -D BUILD_opencv_imgcodecs=ON \ -D BUILD_opencv_imgproc=ON \ -D BUILD_opencv_ml=OFF \ -D BUILD_opencv_objdetect=OFF \ -D BUILD_opencv_photo=OFF \ -D BUILD_opencv_stitching=OFF \ -D BUILD_opencv_video=OFF \ -D BUILD_opencv_videoio=ON \ -D BUILD_opencv_viz=OFF \ -D BUILD_opencv_world=OFF \ -D BUILD_opencv_dnn=OFF \ -D WITH_CUDA=OFF \ -D WITH_EIGEN=OFF \ -D WITH_FFMPEG=OFF \ -D WITH_GSTREAMER=OFF \ -D WITH_JASPER=OFF \ -D WITH_JPEG=ON \ -D WITH_WEBP=OFF \ -D WITH_PNG=OFF \ -D WITH_TBB=OFF \ -D WITH_OPENCL=OFF \ -D WITH_TIFF=OFF \ -D WITH_OPENEXR=OFF \ -D WITH_1394:BOOL=OFF \ -D CMAKE_C_COMPILER=mips-linux-gnu-gcc \ -D CMAKE_C_FLAGS="-muclibc -mfp64 -mnan=2008 -mabs=2008 -march=mips32r2 -g -W -w -Wall -fPIC -std=c++11" \ -D CMAKE_CXX_COMPILER=mips-linux-gnu-g++ \ -D CMAKE_CXX_FLAGS="-muclibc -mfp64 -mnan=2008 -mabs=2008 -march=mips32r2 -g -W -w -Wall -fPIC -std=c++11" \ ..