Using qplatformdefs.h

Stephen Kelly steveire at gmail.com
Mon Nov 26 08:32:31 UTC 2012


David Faure wrote:

> KF5-with-Qt5 compilation is currently broken because we can't locate
> qplatformdefs.h
> 
> This used to come from this line:
> tier1/kcoreaddons/src/CMakeLists.txt: 74:
> include_directories(${QT_MKSPECS_DIR}/default) # for qplatformdefs.h

That line can be removed I think.

> 
> But QT_MKSPECS_DIR isn't set anymore.
> 
> How can we get this back? I heard the mkspecs/default symlink is going to
> go away, and qmake will know the mkspec dir somehow builtin?
> How can we get to that dir with cmake?
> 
> I need qplatformdefs.h in order to use QT_LSTAT for instance.
> 

CMake should already know the path for the include. It should be part of 
Qt5Core_INCLUDE_DIRECTORIES, and when I do a make VERBOSE=1, I 
get -I/home/stephen/dev/prefix/qtbase/mkspecs/linux-g++-64 in the output.

Have you done a clean qtbase build in the last few weeks?

Thanks,

Steve.




More information about the Kde-frameworks-devel mailing list