Page 1 of 1

gtkmm/button.h file not found

Posted: Mon Sep 16, 2019 11:35 am
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!

Re: gtkmm/button.h file not found

Posted: Mon Sep 16, 2019 11:21 pm
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

Re: gtkmm/button.h file not found

Posted: Tue Sep 17, 2019 5:59 am
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!

Re: gtkmm/button.h file not found

Posted: Tue Sep 17, 2019 2:47 pm
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

Re: gtkmm/button.h file not found

Posted: Tue Sep 17, 2019 4:28 pm
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!

Re: gtkmm/button.h file not found

Posted: Wed Sep 18, 2019 3:49 pm
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

Re: gtkmm/button.h file not found

Posted: Fri Sep 20, 2019 11:43 am
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!

Re: gtkmm/button.h file not found

Posted: Fri Sep 20, 2019 2:59 pm
by eranif
It seems like in issue with Homebrew installation. Googling this, gives this:

https://superuser.com/questions/623807/ ... onfig-path