PDA

View Full Version : qtwayland not building



bhushanjcool
28th June 2013, 12:42
I am trying to bring up qtwayland for qt 5.0.0

I have checked out the qtwayland repo and I am on stable branch at hash:f3db15cfb084ed4d2b3aedf5df0d3dc4f91918ff


--------------------------------::log::------------------------

bash-4.1# qmake
Info: creating cache file /mnt/qtwayland/.qmake.cache
Checking for wayland... yes
Checking for xkbcommon... yes
Checking for wayland_scanner... yes
Checking for wayland_egl... yes
Checking for egl... yes
Checking for brcm_egl... no
Checking for glx... yes
Checking for xcomposite... no
bash-4.1# make
cd src/ && ( test -f Makefile || /usr/local/Qt-5.0.0/bin/qmake /mnt/qtwayland/src/src.pro -o Makefile ) && make -f Makefile
make[1]: Entering directory `/mnt/qtwayland/src'
cd qtwaylandscanner/ && ( test -f Makefile || /usr/local/Qt-5.0.0/bin/qmake /mnt/qtwayland/src/qtwaylandscanner/qtwaylandscanner.pro -o Makefile ) && make -f Makefile
make[2]: Entering directory `/mnt/qtwayland/src/qtwaylandscanner'
g++ -c -m32 -pipe -O2 -Wall -W -D_REENTRANT -fno-exceptions -fPIE -DQT_NO_DEBUG -DQT_BOOTSTRAP_LIB -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -DQT_NO_TRANSLATION -DQT_QMAKE_LOCATION="/mnt/qt-everywhere-opensource-src-5.0.0/qtbase/bin/qmake" -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/usr/local/Qt-5.0.0/mkspecs/linux-g++-32 -I. -I/usr/local/Qt-5.0.0/include -I/usr/local/Qt-5.0.0/include/QtCore -I/usr/local/Qt-5.0.0/include/QtCore/5.0.0 -I/usr/local/Qt-5.0.0/include/QtCore/5.0.0/QtCore -I/usr/local/Qt-5.0.0/include/QtXml -I/usr/local/Qt-5.0.0/include/QtXml/5.0.0 -I/usr/local/Qt-5.0.0/include/QtXml/5.0.0/QtXml -o .obj/release-shared/qtwaylandscanner.o qtwaylandscanner.cpp
In file included from /usr/local/Qt-5.0.0/include/QtCore/qcoreapplication.h:47:0,
from /usr/local/Qt-5.0.0/include/QtCore/QCoreApplication:1,
from qtwaylandscanner.cpp:42:
/usr/local/Qt-5.0.0/include/QtCore/qeventloop.h:55:1: error: invalid use of incomplete type ‘struct QObject’
/usr/local/Qt-5.0.0/include/QtCore/qobjectdefs.h:235:7: error: forward declaration of ‘struct QObject’
/usr/local/Qt-5.0.0/include/QtCore/qeventloop.h: In member function ‘QEventLoopPrivate* QEventLoop::d_func()’:
/usr/local/Qt-5.0.0/include/QtCore/qeventloop.h:57:5: error: ‘d_ptr’ was not declared in this scope
/usr/local/Qt-5.0.0/include/QtCore/qeventloop.h: In member function ‘const QEventLoopPrivate* QEventLoop::d_func() const’:
/usr/local/Qt-5.0.0/include/QtCore/qeventloop.h:57:5: error: ‘d_ptr’ was not declared in this scope
/usr/local/Qt-5.0.0/include/QtCore/qeventloop.h: At global scope:
/usr/local/Qt-5.0.0/include/QtCore/qeventloop.h:99:39: error: expected ‘)’ before ‘*’ token
In file included from /usr/local/Qt-5.0.0/include/QtCore/QCoreApplication:1:0,
from qtwaylandscanner.cpp:42:
/usr/local/Qt-5.0.0/include/QtCore/qcoreapplication.h:69:1: error: invalid use of incomplete type ‘struct QObject’
/usr/local/Qt-5.0.0/include/QtCore/qobjectdefs.h:235:7: error: forward declaration of ‘struct QObject’
/usr/local/Qt-5.0.0/include/QtCore/qcoreapplication.h: In member function ‘QCoreApplicationPrivate* QCoreApplication::d_func()’:
/usr/local/Qt-5.0.0/include/QtCore/qcoreapplication.h:77:5: error: ‘d_ptr’ was not declared in this scope
/usr/local/Qt-5.0.0/include/QtCore/qcoreapplication.h: In member function ‘const QCoreApplicationPrivate* QCoreApplication::d_func() const’:
/usr/local/Qt-5.0.0/include/QtCore/qcoreapplication.h:77:5: error: ‘d_ptr’ was not declared in this scope
/usr/local/Qt-5.0.0/include/QtCore/qcoreapplication.h: In static member function ‘static QString QCoreApplication::translate(const char*, const char*, const char*, int)’:
/usr/local/Qt-5.0.0/include/QtCore/qcoreapplication.h:209:99: error: return type ‘struct QString’ is incomplete
/usr/local/Qt-5.0.0/include/QtCore/qcoreapplication.h:211:12: error: incomplete type ‘QString’ used in nested name specifier
make[2]: *** [.obj/release-shared/qtwaylandscanner.o] Error 1
make[2]: Leaving directory `/mnt/qtwayland/src/qtwaylandscanner'
make[1]: *** [sub-qtwaylandscanner-make_first-ordered] Error 2
make[1]: Leaving directory `/mnt/qtwayland/src'
make: *** [sub-src-make_first] Error 2

------------------------------------------------------------------------------------------------------------------------------------------------------------------

Thanks in advance..!!

bhushanjcool
28th June 2013, 15:45
After looking at the commits, I happened to contact a qtwayland developer for the issue.
The problem is related to qtbase :
Can you check if you have commit
59fc1102f304e3d103eaa5d9cd69acb7402efc28 in your qtbase

Might be in 5.0.0 release this is not present.

Still I am not sure if it fixes.!