Hello,
I downloaded and compiled Qt under Mac OsX 10.9.4, everything worked fine.
Then I installed X11R6 (Quartz project for Mac) because I need libGLU.
And now I can no longer run qmake:
Qt Code:
  1. qt-everywhere-opensource-src-4.8.6 $ qmake
  2. dyld: Symbol not found: __cg_png_create_info_struct
  3. Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
  4. Expected in: /usr/X11R6/lib/libPng.dylib
  5. in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
  6. Trace/BPT trap: 5
  7. qt-everywhere-opensource-src-4.8.6 $
To copy to clipboard, switch view to plain text mode 
First I suspected that Qt was first compiled with its own version of a couple of libraries, such as libPng, and there is now an incompatibility issue with those of X11R6.
So I rebuilt Qt so that it uses X11 libs, but still the same issue.
Any help?