Cannot find Pkg-Config when compiling opencv

Sysprogs forums Forums VisualGDB Cannot find Pkg-Config when compiling opencv

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #21966
    kennethone
    Participant

    Hello, I am following the directions here:

    https://visualgdb.com/tutorials/raspberry/opencv/build/

    I copied pkg-config.exe to C:/SysGCC/Raspberry/bin

    I added cmake environment variables:

    PKG_CONFIG_SYSROOT_DIR=C:/SysGCC/Raspberry/arm-linux-gnueabihf/sysroot
    PKG_CONFIG_PATH=C:/SysGCC/Raspberry/arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig;C:/SysGCC/Raspberry/arm-linux-gnueabihf/sysroot/usr/share/pkgconfig

     

    All those folders are in correct place.

     

    The problem is it’s not building GTK+ support

    I’m getting build warnings, like:

    can’t find ffmpeg – ‘pkg-config’ utility is missing

    Which indicates pvk-config is not found.

     

    What is missing in the tutorial?

     

     

    I noticed pkg-config requires some complex installation on windows,

    https://stackoverflow.com/questions/1710922/how-to-install-pkg-config-in-windows

     

    #21967
    kennethone
    Participant

    Ignore the last 2 lines above, that was for pkg-config not pkg-config-lite.

    Still the question remains, cmake cannot find pkg-config and it cannot build the GTK library

     

    I made sure the sysroot is synchronized, and I included  /usr/share/pkgconfig and /opt/vc  in the synchronized folders.

    Again, both of these folders contain .pc files. Thanks,

    C:/SysGCC/Raspberry/arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig

    C:/SysGCC/Raspberry/arm-linux-gnueabihf/sysroot/usr/share/pkgconfig

     

    • This reply was modified 6 years, 1 month ago by kennethone.
    • This reply was modified 6 years, 1 month ago by kennethone.
    #21991
    support
    Keymaster

    Hi,

    No problem. Please let us know the exact message you get now (after installing pkg-config and resyncing the sysroot). Please also double-check that you have set environment variables mentioned in step #7.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.