Details
Description
check out Qt on Mac OS X, build it with --prefix=/foo/bar (note - not a developer build!) and do a "make install".
check e.g. Assistant.app (as it links with WebKit):
> otool -L Assistant.app/Contents/MacOS/Assistant Assistant.app/Contents/MacOS/Assistant: /private/tmp/qt5-hTQ7/qt-everywhere-opensource-src-5.1.0/qtwebkit/lib/QtWebKitWidgets.framework/Versions/5/QtWebKitWidgets (compatibility version 5.1.0, current version 5.1.0) /Users/harald/local/homebrew/Cellar/qt5/5.1.0/lib/QtQuick.framework/Versions/5/QtQuick (compatibility version 5.1.0, current version 5.1.0) /Users/harald/local/homebrew/Cellar/qt5/5.1.0/lib/QtQml.framework/Versions/5/QtQml (compatibility version 5.1.0, current version 5.1.0) /Users/harald/local/homebrew/Cellar/qt5/5.1.0/lib/QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.1.0, current version 5.1.0) /Users/harald/local/homebrew/Cellar/qt5/5.1.0/lib/QtCore.framework/Versions/5/QtCore (compatibility version 5.1.0, current version 5.1.0) /Users/harald/local/homebrew/Cellar/qt5/5.1.0/lib/QtGui.framework/Versions/5/QtGui (compatibility version 5.1.0, current version 5.1.0) /Users/harald/local/homebrew/Cellar/qt5/5.1.0/lib/QtOpenGL.framework/Versions/5/QtOpenGL (compatibility version 5.1.0, current version 5.1.0) /Users/harald/local/homebrew/Cellar/qt5/5.1.0/lib/QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.1.0, current version 5.1.0) /Users/harald/local/homebrew/Cellar/qt5/5.1.0/lib/QtPrintSupport.framework/Versions/5/QtPrintSupport (compatibility version 5.1.0, current version 5.1.0) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 19.0.0) /private/tmp/qt5-hTQ7/qt-everywhere-opensource-src-5.1.0/qtwebkit/lib/QtWebKit.framework/Versions/5/QtWebKit (compatibility version 5.1.0, current version 5.1.0) /Users/harald/local/homebrew/Cellar/qt5/5.1.0/lib/QtSql.framework/Versions/5/QtSql (compatibility version 5.1.0, current version 5.1.0) /Users/harald/local/homebrew/Cellar/qt5/5.1.0/lib/QtSensors.framework/Versions/5/QtSensors (compatibility version 5.1.0, current version 5.1.0) /Users/harald/local/homebrew/Cellar/qt5/5.1.0/lib/QtHelp.framework/Versions/5/QtHelp (compatibility version 5.1.0, current version 5.1.0) /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0) /System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 65.1.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
As you can see, all Qt libs have the correct path except QtWebKit and QtWebKitWidets.