Page 1 of 1

can't find pkg-config

Posted: Sun Aug 19, 2018 6:11 pm
by cform01
OS: win7 32bit,codelite6.1.1
I can't build withno pkg-config command, and I set it's path in environment Variables,but it didn't work.look my picture,help.either I set the path in win7 environment Variable, also not work. What should I do?[attachment=1]vari.png[/attachmet=0]

Re: can't find pkg-config

Posted: Sun Aug 19, 2018 6:59 pm
by eranif
You added some environment variable, what you should have done is (assuming pkg-config is located under D:\msys32\usr\bin):

Code: Select all

PATH=D:\msys32\usr\bin;$PATH

Re: can't find pkg-config

Posted: Sun Aug 19, 2018 7:29 pm
by cform01
I do this in win7 system.so coundn't too.

Re: can't find pkg-config

Posted: Tue Aug 21, 2018 12:23 pm
by eranif
Actually it's better defining it in CodeLite and not in the global environment.
Also, there is no harm in doing it in both locations.

As a side note, we don't support CodeLite 6.1 (the current version is CodeLite 12)
I really recommend you to upgrade your CodeLite.

In the project settings->Compiler, try replacing:

Code: Select all

`pkg-config ..`
with this syntax:

Code: Select all

$(shell pkg-config ..)
It might be that your CodeLite version is too old and backticks were not supported back then

Re: can't find pkg-config

Posted: Tue Aug 21, 2018 7:16 pm
by cform01
eranif wrote:You added some environment variable, what you should have done is (assuming pkg-config is located under D:\msys32\usr\bin):

Code: Select all

PATH=D:\msys32\usr\bin;$PATH
thanks ,you are right.