pkg-config: command not found, using cygwin on windows 7

后端 未结 2 1480
醉话见心
醉话见心 2021-01-20 01:01

I\'m using Cygwin on windows to run this command:

 g++ `pkgconfig --libs --cflags opencv` -I. -o mergevec mergevec.cpp ....

But I get an er

相关标签:
2条回答
  • 2021-01-20 01:23

    pkg-config is a piece of software that allow your computer to check installed libraries for source compilation. It may not be installed on Windows so in last scenario please check for install.

    However in your case i think it is installed, but not set on the right path for linux commands. Try to type in cygwin:

    $ export PKG_CONFIG_PATH=c:\\cygwin\\usr\\local\\lib\\pkgconfig 
    

    as stated in this post.

    Otherwise just abandon Windows and try to compile mergevec on an Linux VM, which is really easier (it was made for it). The only down point of this method is that you will have to do the mergevec operation (and the ones before, otherwise you may have encoding problems) under your linux space. See my previous answer for this manipulation.

    If any problem don't hesitate.

    0 讨论(0)
  • 2021-01-20 01:26

    run cgywin setup and in package search type pkg-config then make sure that pkg-config utility is installed. it should solve the not found command problem.

    0 讨论(0)
提交回复
热议问题