gtkmm/button.h file not found

CodeLite installation/troubleshooting forum
luck_cao
CodeLite Curious
Posts: 4
Joined: Mon Sep 16, 2019 8:25 am
Genuine User: Yes
IDE Question: C++
Contact:

gtkmm/button.h file not found

Post by luck_cao »

Hello everyone,

I'm a beginner user of CodeLite, and I downloaded it.

The version of CodeLite is 13.0.2

After I installed on the MacOS 10.14.6,

then I created a workspace and C++ project as following:

Image

Then I got the following error. Find some errors.

Image

I have installed gtkmm3, pkg-config.

Do I still missing anything software or setting?

Thanks a lot for your help!
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: gtkmm/button.h file not found

Post by eranif »

Can you upload the generated makefile? the file name is "Test1.mk"
In general, the makefile is not able to locate pkg-config
Make sure you have read the HOW TO POST thread
luck_cao
CodeLite Curious
Posts: 4
Joined: Mon Sep 16, 2019 8:25 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: gtkmm/button.h file not found

Post by luck_cao »

eranif wrote: Mon Sep 16, 2019 11:21 pm Can you upload the generated makefile? the file name is "Test1.mk"
In general, the makefile is not able to locate pkg-config

Hello, eranif. Thanks a lot for your answer.

I have uploaded this file.
I changed the extension name from .mk to .cpp because this forum doesn't allow to upload .mk file.
Please download it and change it to .mk.

Thanks again!
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: gtkmm/button.h file not found

Post by eranif »

The Makefile seems OK to me.
This means that pkg-config is not in your path.

To fix this, use full path:
e.g. if it is install under /usr/local/bin/pkg-config then use that path in the project settings:

You will need to change this in the project settings->compiler->c++ compiler options
and under project settings->linker->linker options

In both pages, change the $(shell pkg-config ...) to $(shell /usr/local/bin/pkg-config ...)

Eran
Make sure you have read the HOW TO POST thread
luck_cao
CodeLite Curious
Posts: 4
Joined: Mon Sep 16, 2019 8:25 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: gtkmm/button.h file not found

Post by luck_cao »

eranif wrote: Tue Sep 17, 2019 2:47 pm The Makefile seems OK to me.
This means that pkg-config is not in your path.

To fix this, use full path:
e.g. if it is install under /usr/local/bin/pkg-config then use that path in the project settings:

You will need to change this in the project settings->compiler->c++ compiler options
and under project settings->linker->linker options

In both pages, change the $(shell pkg-config ...) to $(shell /usr/local/bin/pkg-config ...)

Eran
Hello eranif,
I checked the path of pkg-config, it's /usr/local/Cellar/pkg-config/0.29.2/bin/pkg-config.
Then I open the windows of project settings and changed the setting as following:
Image
and
Image

but... I still got the error. :oops:
Image

Does anything wrong with pkg-config that I installed?
Do I need reinstall it? If yes, could you tell me how to do it?

Thanks a lot!
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: gtkmm/button.h file not found

Post by eranif »

It seems like a problem with your pkg-config
I am not using it myself on macOS, so I cant really help you with doing that.

Does it work from a Terminal?
i.e. can you successfully run: pkg-config --cflags gtkmm-3.0 from your Terminal window?

if it does work, then it might be just a PATH issue
Make sure you have read the HOW TO POST thread
luck_cao
CodeLite Curious
Posts: 4
Joined: Mon Sep 16, 2019 8:25 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: gtkmm/button.h file not found

Post by luck_cao »

eranif wrote: Wed Sep 18, 2019 3:49 pm It seems like a problem with your pkg-config
I am not using it myself on macOS, so I cant really help you with doing that.

Does it work from a Terminal?
i.e. can you successfully run: pkg-config --cflags gtkmm-3.0 from your Terminal window?

if it does work, then it might be just a PATH issue
Hello, eranif
I executed the command that you told me.
I got the result as following.
Image

Did I missing anything?
Thanks!
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: gtkmm/button.h file not found

Post by eranif »

It seems like in issue with Homebrew installation. Googling this, gives this:

https://superuser.com/questions/623807/ ... onfig-path
Make sure you have read the HOW TO POST thread
Post Reply