[CMake] Testing Qt 5 RC 1 CMake files

Stephen Kelly steveire at gmail.com
Wed Dec 12 11:56:39 EST 2012


Clinton Stimpson wrote:

> 
> I took a peek at building it earlier with Qt5.

Great, thanks for that.

> 
> I started making changes and one of the more surprising ones was that
> #include <QtGui/QWidget>
> pulled in my Qt4 QWidget from /usr/include/QtGui/QWidget.
> Instead of Qt5's QtWidgets/QWidget.  That led to confusing linker errors.

Another reason never to use 'module includes' :). I always discourage their 
use.

> I got as far as trying to build some examples, but many of the examples
> seem
> to be broken.  Does anyone know if the master branch has become stable and
> whether functionality and examples have been restored since the start of
> the breaking modularization changes months ago?
> I stopped when I saw these kinds of build problems.
> 

I didn't try running any examples, but I also ported it to Qt 5. My patch 
for that is attached. John, the patch for older VTK versions should be 
similar if you wish to try it.

Thanks,

Steve.


More information about the CMake mailing list