Environment : Mac OS 10.9 + Qt5.1/Qt5.2 + OpenCV2.4.7 + XCode(5.0.2)
I can compile the following program via terminal
g++ -L/usr/local/lib -lopencv_
In case you came here, because you changed config+=11 and nothing happend, try to clean your project before rebuild.
config+=11