[Development] 5.2.0 rc1 mac include directory structure

tsteven4 tsteven4 at gmail.com
Sat Nov 30 22:25:55 CET 2013


Thiago,

Thanks, that works.

But in some previous releases, e.g. 4.8.2, either -I or -F (with the 
path to include or Headers respectively) could work because in addition 
to the headers under the QtCore.framework there was also a QtCore 
directory in /installpath/include.  The analogous directory in Qt 
5.2.0rc1 is /installpath/Qt5.2.0rc1/5.2.0-rc1/clang_64/include which now 
only has directories QtOpenGLExtensions, QtPlatformSupport and 
QtUiTools.  So the -I method is no longer possible, the -F method must 
be used.

Was the dropping of support for the -I method intentional?
Was it intentional that some but not all of the headers are available in 
the include directory?

Steve


On 11/30/13, 10:27 AM, Thiago Macieira wrote:
> On sábado, 30 de novembro de 2013 08:50:42, tsteven4 wrote:
>> includes like
>> #include <QtCore/QTextCodec>
>>
>> with
>> -I/installpath/Qt5.2.0rc1/5.2.0-rc1/clang_64/lib/QtCore.framework/Versions/5
>> /Headers
> That -I was your mistake. You should have passed it the Mac way:
>
>   -F/installpath/Qt5.2.0rc1/5.2.0-rc1/clang_64/lib/ -framework QtCore
>
> The very reason why we have mandatory <ModuleName/headername> in our own
> headers is so that we support this style of includes on Mac.
>
>
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20131130/2a294ddb/attachment.html>


More information about the Development mailing list