Android Studio linking OpenCV static libraries

前端 未结 1 1596
野性不改
野性不改 2021-01-06 03:29

Currently I\'m working on a project that uses OpenCV3 for realtime video processing (applying a set of color filters), and I managed to get the it to work with Java without

相关标签:
1条回答
  • 2021-01-06 04:08

    There are dependencies between the OpenCV static libraries. So you need to include them in exactly the right order. .a and .o includes are order dependent in GCC, files that have dependencies must be included before the files they depend on:

    CV_LIBS = \
        $(CV_LIB_FOLDER)/libopencv_calib3d.a \
        $(CV_LIB_FOLDER)/libopencv_highgui.a \
        $(CV_LIB_FOLDER)/libopencv_video.a \
        $(CV_LIB_FOLDER)/libopencv_objdetect.a \
        $(CV_LIB_FOLDER)/libopencv_imgproc.a \
        $(CV_LIB_FOLDER)/libopencv_imgcodecs.a \
        $(CV_LIB_FOLDER)/libopencv_core.a \
        $(CV_LIB_FOLDER)/libopencv_hal.a
    
    0 讨论(0)
提交回复
热议问题