Using qplatformdefs.h

David Faure faure+bluesystems at kde.org
Wed Nov 28 12:26:53 UTC 2012


On Monday 26 November 2012 09:32:31 Stephen Kelly wrote:
> 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?

Many thanks, after updating Qt 5 it worked out of the box indeed.

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Sponsored by BlueSystems and KDAB to work on KDE Frameworks



More information about the Kde-frameworks-devel mailing list