Am 07.03.2014 um 06:05 schrieb stefano franchi <stefano.fran...@gmail.com>:

> I just synced my local copy of the lyx repo and compilation now fails
> with Qt related issues.
> 
> Here is the first error:
> 
> [  4%] Building CXX object src/support/CMakeFiles/support.dir/Systemcall.cpp.o
> cd /home/stefano/builds/lyx-devel/lyx/build/src/support &&
> /usr/bin/c++   -DQT_CORE_LIB -Wall -Wunused-parameter
> -fno-strict-aliasing  -Wall -Wunused-parameter  -fno-strict-aliasing
> -O0 -g3 -D_DEBUG -fPIC -I/home/stefano/builds/lyx-devel/lyx/build
> -I/home/stefano/builds/lyx-devel/lyx/src
> -I/home/stefano/builds/lyx-devel/lyx/boost
> -I/home/stefano/builds/lyx-devel/lyx/src/support
> -I/home/stefano/builds/lyx-devel/lyx/build/src/support
> -I/home/stefano/builds/lyx-devel/lyx/src/support/mythes
> -I/usr/include/qt -I/usr/include/qt/QtCore
> -I/usr/lib/qt/mkspecs/linux-g++    -DBOOST_USER_CONFIG="<config.h>" -o
> CMakeFiles/support.dir/Systemcall.cpp.o -c
> /home/stefano/builds/lyx-devel/lyx/src/support/Systemcall.cpp
> In file included from
> /home/stefano/builds/lyx-devel/lyx/src/support/Systemcall.cpp:631:0:
> /home/stefano/builds/lyx-devel/lyx/src/support/moc_SystemcallPrivate.cpp:13:2:
> error: #error "This file was generated using the moc from 4.8.5. It"
> #error "This file was generated using the moc from 4.8.5. It"
> 
> 
> Isn't the build process still relying on  Qt 4? The cmake build comes
> preset to use the moc from version 4 (Qt 4.8.5) (it looks in
> /usr/lib/bin/qt4/moc). Or perhaps is my system to blame? Arch defaults
> to QT5.

moc_SystemcallPrivate.cpp has been generated by a call to the moc found by 
LyX's configure.
I'm not sure - you have to look up the logs of your build - possibly it's 
called with
moc4 because both versions are installed or the moc binary is a Qt4 thing 
somehow.

But it's not a good idea to build LyX with Qt5, ATM. At least for Mac and 
Windows builds.
I don't know if Linux has no problems.

Stephan

Reply via email to