can't find pkg-config

CodeLite installation/troubleshooting forum
cform01
CodeLite Enthusiast
Posts: 13
Joined: Mon Jun 27, 2016 7:24 am
Genuine User: Yes
IDE Question: c++
Contact:

can't find pkg-config

Post 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]
You do not have the required permissions to view the files attached to this post.
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: can't find pkg-config

Post 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
Make sure you have read the HOW TO POST thread
cform01
CodeLite Enthusiast
Posts: 13
Joined: Mon Jun 27, 2016 7:24 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: can't find pkg-config

Post by cform01 »

I do this in win7 system.so coundn't too.
You do not have the required permissions to view the files attached to this post.
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: can't find pkg-config

Post 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
Make sure you have read the HOW TO POST thread
cform01
CodeLite Enthusiast
Posts: 13
Joined: Mon Jun 27, 2016 7:24 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: can't find pkg-config

Post 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.
Post Reply