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:
Then I got the following error. Find some errors.
I have installed gtkmm3, pkg-config.
Do I still missing anything software or setting?
Thanks a lot for your help!
gtkmm/button.h file not found
-
- CodeLite Curious
- Posts: 4
- Joined: Mon Sep 16, 2019 8:25 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: gtkmm/button.h file not found
Can you upload the generated makefile? the file name is "Test1.mk"
In general, the makefile is not able to locate pkg-config
In general, the makefile is not able to locate pkg-config
Make sure you have read the HOW TO POST thread
-
- 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
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.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: gtkmm/button.h file not found
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
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
-
- 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
Hello eranif,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
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:
and
but... I still got the error.
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!
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: gtkmm/button.h file not found
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
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
-
- 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
Hello, eraniferanif 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
I executed the command that you told me.
I got the result as following.
Did I missing anything?
Thanks!
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: gtkmm/button.h file not found
It seems like in issue with Homebrew installation. Googling this, gives this:
https://superuser.com/questions/623807/ ... onfig-path
https://superuser.com/questions/623807/ ... onfig-path
Make sure you have read the HOW TO POST thread