configure: error: cannot find QtCore header

Hinckley Dan dbh at
Thu Jun 11 04:09:10 PDT 2015

I have qt5-mac installed and am compiling a program which looks for qtccore. The error I get is:

checking QtCore usability... no
checking QtCore presence... no
checking for QtCore... no
configure: error: cannot find QtCore header; try setting CPPFLAGS.

Can someone point me to what value I pass in CPPFLAGS to cure this?

For example:

CPPFLAGS='-I /opt/local/libexec/qt5-mac/lib/QtCore.framework/Versions/5/Headers'

But I cannot seem to make this work.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the macports-users mailing list