Cannot find Pkg-Config when compiling opencv Sysprogs forums › Forums › VisualGDB › Cannot find Pkg-Config when compiling opencv Tagged: c++, OpenCV, pkg-config, Raspberry Pi, visualgdb This topic contains 2 replies, has 2 voices, and was last updated by support 6 months, 1 week ago. Log In Register Lost Password Viewing 3 posts - 1 through 3 (of 3 total) Author Posts September 13, 2018 at 21:57 #21966 kennethoneParticipant 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 September 13, 2018 at 22:32 #21967 kennethoneParticipant 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 months, 1 week ago by kennethone. This reply was modified 6 months, 1 week ago by kennethone. September 15, 2018 at 05:22 #21991 supportKeymaster 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. Author Posts Log In Register Lost Password Viewing 3 posts - 1 through 3 (of 3 total) You must be logged in to reply to this topic.