configure: error: cannot find QtCore header
Hinckley Dan
dbh at suiattle.org
Thu Jun 11 07:44:27 PDT 2015
On 11 Jun, 2015, at 8:08, Rainer Müller <raimue at macports.org> wrote:
> On 2015-06-11 13:09, Hinckley Dan wrote:
>> 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.
>
> You should look into config.log to get the details of this failing test.
>
> Perhaps it is also trying to link a simple program which requires setting LDFLAGS as well.
>
> Have you made sure it is actually looking for the right version of Qt? Often, Qt 5.x is referenced by Qt5Core and Qt 4.x is QtCore.
configure.ac:
> # libqt 4.7 or compatible newer version is required.
> AC_CHECK_HEADER([QtCore], [],
> [AC_MSG_ERROR([cannot find QtCore header; try setting CPPFLAGS.])])
> AC_CHECK_HEADER([QtGui], [],
> [AC_MSG_ERROR([cannot find QtGui header; try setting CPPFLAGS.])])
> AC_CHECK_HEADER([Qt3Support], [],
> [AC_MSG_ERROR([cannot find Qt3Support header; try setting CPPFLAGS.])])
I have qt-mac4 installed (and 5, but deactivated) but don’t know which path to put into the CPPFLAGS.
More information about the macports-users
mailing list