I have symlinked two libraries - libfreetype and libpng from the /usr/local/lib/ directory and the binary I am running now displays the "to open you need to install X11 ...". Before that it used to complain that libfreetype and libpng were not found (at /usr/local/lib).
The thing is I do not want to install XQuartz, and my binary simply needs PNG and Freetype support. Surely, these libraries wouldn't need XQuartz either.
Is there a way to obtain these binaries without installing XQuartz? Let's assume I do not have administrator access to the computer. And yes, I own it ;-) I just don't want to install system wide stuff, and so far I have managed quite well - I have a working compiler and GNU make binary running very well.
I downloaded the standalone libpng, but it seems that at least libfreetype which resides in /usr/X11/lib is a sort of placeholder which causes the mentioned dialog to display. A dummy, that is.