Runtime Opencv HighGui Error- “HIGHGUI ERROR: V4L/V4L2: VIDIOC_S_CROP”. Opencv cross compiled. Host=64bit Ubuntu 12.04. Target=ARM-Cortex-A9

前端 未结 3 891
鱼传尺愫
鱼传尺愫 2020-12-30 07:47

I am a beginner at OpenCV and trying my best to get a simple application running on an embedded platform. I cross-compiled OpenCV 2.4.4 and built it WITH_GTK=ON, WIT

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-30 08:25

    In order to cross compile you need to tell pkg-config to lookup the proper path (by default this will be your host config/.pc files!)

    From pkg-config website

    • searching directories listed in $PKG_CONFIG_PATH
    • when $PKG_CONFIG_LIBDIR is specified, it will override the compiled in default directory (e.g. /usr/lib/pkgconfig) and the PKG_CONFIG_PATH. Note that when specifying PKG_CONFIG_LIBDIR, pkg-config will completely ignore the content in PKG_CONFIG_PATH, even if the documentation states different things.

提交回复
热议问题