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.
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:
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?
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.