How to install a C library so that it can be used in Xcode

I am an aspiring developer and have not coded for macOS before.

I would like to install libgimp-2.0dev so that I can learn how to write a C plugin for gimp, which I am running in macOS. I can manage installing a library using apt-get in Ubuntu but apt-get doesn't seem to be available in macOS. How would I go about installing this library in macOS so that I can code for it in Xcode?
There are some package managers for macOS: MacPorts, HomeBrew...

I have not tried yet, but you can build and install GIMP from the source and libgimp will also be installed.
Better find one and try.

How would I go about installing this library in macOS so that I can code for it in Xcode?

Every project, including anything already in a packaging system and/or running on Linux, can be built from source.




Alas, MacPorts and HomeBrew don't have libgimp ports, only gimp ports which don't include libgimp. apt-get does as a separate install from gimp itself, but apparently it doesn't run on MacOS.

I'll give downloading the source good and building from that a try.

Thank you.
How to install a C library so that it can be used in Xcode
 
 
Q