On Tue, Jul 1, 2014 at 5:21 AM, Jean-Marc Lasgouttes <lasgout...@lyx.org> wrote:
> Hello,
>
> The features/str-metrics branch is now to a point where I think it is ready
> to land on master, where further fixing can take place. Before I do that, I
> would be grateful if some of you could try it out and report their findings.

The build succeeds for me with Qt 4 but fails with Qt 5 (using
-DLYX_USE_QT=QT5). See the build flags and error below.

cd /home/scott/lyxbuilds/master/CMakeBuild/src/frontends/qt4 &&
/usr/bin/c++   -DBOOST_SIGNALS_NO_DEPRECATION_WARNING=1
-DLYX_BUILD_QT4_FRONTEND -DQT_CONCURRENT_LIB -DQT_CORE_LIB
-DQT_GENUINE_STR -DQT_GUI_LIB -DQT_WIDGETS_LIB -Wall
-Wunused-parameter  -fno-strict-aliasing  -Wall -Wunused-parameter
-fno-strict-aliasing -O0 -g3 -D_DEBUG -fPIC
-I/home/scott/lyxbuilds/master/CMakeBuild
-I/home/scott/lyxbuilds/master/repo/src -I/usr/include/enchant
-I/home/scott/lyxbuilds/master/repo/boost
-I/home/scott/lyxbuilds/master/repo/src/frontends
-I/home/scott/lyxbuilds/master/repo/src/frontends/qt4
-I/home/scott/lyxbuilds/master/CMakeBuild/src/frontends/qt4
-I/usr/include/qt5/QtCore -I/usr/include/qt5
-I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64
-I/usr/include/qt5/QtGui -I/usr/include/qt5/QtWidgets
-I/usr/include/qt5/QtConcurrent    -DBOOST_USER_CONFIG="<config.h>" -o
CMakeFiles/frontend_qt4.dir/GuiAlert.cpp.o -c
/home/scott/lyxbuilds/master/repo/src/frontends/qt4/GuiAlert.cpp
/home/scott/lyxbuilds/master/repo/src/frontends/qt4/GuiPainter.cpp: In
member function ‘virtual int lyx::frontend::GuiPainter::text(int, int,
const docstring&, const lyx::Font&, lyx::Color, lyx::size_type,
lyx::size_type)’:
/home/scott/lyxbuilds/master/repo/src/frontends/qt4/GuiPainter.cpp:433:7:
error: ‘UniteClip’ is not a member of ‘Qt’
       Qt::UniteClip);
       ^

It looks like this change was intended:
"This is one of the few source breakages we will do for Qt 5. The
unite clip complicates and slows down some rendering paths and it is
not very useful."
https://bugreports.qt-project.org/browse/QTBUG-20140

We still don't officially support Qt 5 though so perhaps this is not
an immediate concern.

Scott

Reply via email to