F
All the steps you made are perfect, the only thing you would miss is to disable the security restrictions that Mac OS Sierra brings, are system restrictions in which neither the user root you have permission to modify certain directories of the SO.Browse to the directory gicc-3.2.16 from the Terminal, one see inside runs: sudo ./configure
This serves to obtain the values of the environment variables of your system, those values are necessary when compiling, which is the next step.When you finish the above, run: sudo make
Well, if you followed the steps of the file INSTALL so far is the same, now comes the part where we disable the Mac OS Sierra security system, for that we restart in recovery mode, we do this by holding down the keys cmd+r at the you turn on the computer and the boot pit is heard.Within recovery mode we opened a Terminal and executed the following command line csrutil disable
We restart and reboot in normal mode, this way the command sudo make install We should install the bookstores in the SO without problem.Done this, we reboot in recovery mode and re-enable SIP(System Integrity Protection) csrutil enable
Now to be able to use the libraries correctly, we reboot the computer normally, open a Terminal and write: sudo cp -rf /usr/include/cgicc /usr/local/include/
sudo ln -s /usr/lib/libcgicc.3.dylib /usr/local/lib/libcgicc.3.dylib
sudo ln -s /usr/lib/libcgicc.a /usr/local/lib/libcgicc.a
sudo ln -s /usr/lib/libcgicc.dylib /usr/local/lib/libcgicc.dylib
sudo ln -s /usr/lib/libcgicc.la /usr/local/lib/libcgicc.la
sudo ln -s /usr/lib/libcupscgi.1.dylib /usr/local/lib/libcupscgi.1.dylib
sudo ln -s /usr/lib/libcupscgi.dylib /usr/local/lib/libcupscgi.dylib
We already have everything ready to start working, so we create a new project in Xcode and set up the routes of the bookstores and the headers that we will use in the project, I clarify that these bookstores and headers are the ones we just installed.We select the project and go to the following configuration sections We added libcgicc.3.dylib (which is found in /usr/local/lib) a Link Binary With Libraries in the tab Build PhasesWe added the route /usr/local/include in Build Settings -> Search Path -> Header Serach PathsWe added the route /usr/local/lib in Build Settings -> Search Path -> Libraries Serach PathsIf everything went well, the example at the end of the next page should work, this is the https://github.com/cmakified/cgicc/blob/master/example/example.cpp .