Hi
I follow your steps to compile qt5+wayland.
It is ok to compile qt5,
But when i compile the qtwayland, there is a problem as bellow:
tte@ubuntu:~/Desktop/Linux/qtwayland$ ../qt-everywhere-opensource-src-5.0.2/qtbase/bin/qmake -r
Reading /home/tte/Desktop/Linux/qtwayland/src/src.pro
Reading /home/tte/Desktop/Linux/qtwayland/src/qtwaylandscanner/qtwaylandscanner.pro
Reading /home/tte/Desktop/Linux/qtwayland/src/plugins/plugins.pro
Reading /home/tte/Desktop/Linux/qtwayland/src/plugins/platforms/platforms.pro
Reading /home/tte/Desktop/Linux/qtwayland/src/plugins/platforms/wayland_common/wayland_common.pro
/home/tte/Desktop/Linux/qtwayland/src/plugins/platforms/wayland_common/wayland_common.pro:70: Cannot find feature qt_common
Reading /home/tte/Desktop/Linux/qtwayland/src/plugins/platforms/qwayland-egl/qwayland-egl.pro
Reading /home/tte/Desktop/Linux/qtwayland/examples/examples.pro
Reading /home/tte/Desktop/Linux/qtwayland/tests/tests.pro
Reading /home/tte/Desktop/Linux/qtwayland/tests/auto/auto.pro
Reading /home/tte/Desktop/Linux/qtwayland/tests/auto/client/client.pro
And when i do the make, I get following error:
te@ubuntu:~/Desktop/Linux/qtwayland$ make
cd src/ && ( test -e Makefile || /home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/bin/qmake /home/tte/Desktop/Linux/qtwayland/src/src.pro -o Makefile ) && make -f Makefile
make[1]: Entering directory `/home/tte/Desktop/Linux/qtwayland/src'
cd qtwaylandscanner/ && ( test -e Makefile || /home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/bin/qmake /home/tte/Desktop/Linux/qtwayland/src/qtwaylandscanner/qtwaylandscanner.pro -o Makefile ) && make -f Makefile
make[2]: Entering directory `/home/tte/Desktop/Linux/qtwayland/src/qtwaylandscanner'
g++ -c -pipe -O2 -fno-exceptions -Wall -W -D_REENTRANT -fPIE -DQT_NO_LIBUDEV -DQT_NO_XCB -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -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="/home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/bin/qmake" -I/home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/mkspecs/linux-g++ -I. -I/home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include -I/home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtCore -I/home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtCore/5.0.2 -I/home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtCore/5.0.2/QtCore -I/home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtXml -I/home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtXml/5.0.2 -I/home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtXml/5.0.2/QtXml -o .obj/release-shared/qtwaylandscanner.o qtwaylandscanner.cpp
In file included from /home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtCore/qeventloop.h:1,
from /home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtCore/../../src/corelib/kernel/qcoreapplication.h:47,
from /home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtCore/qcoreapplication.h:1,
from /home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtCore/QCoreApplication:1,
from qtwaylandscanner.cpp:41:
/home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtCore/../../src/corelib/kernel/qeventloop.h:55: error: invalid use of incomplete type ‘struct QObject’
/home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtCore/../../src/corelib/kernel/qobjectdefs.h:235: error: forward declaration of ‘struct QObject’
/home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtCore/../../src/corelib/kernel/qeventloop.h: In member function ‘QEventLoopPrivate* QEventLoop::d_func()’:
/home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtCore/../../src/corelib/kernel/qeventloop.h:57: error: ‘d_ptr’ was not declared in this scope
/home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtCore/../../src/corelib/kernel/qeventloop.h: In member function ‘const QEventLoopPrivate* QEventLoop::d_func() const’:
/home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtCore/../../src/corelib/kernel/qeventloop.h:57: error: ‘d_ptr’ was not declared in this scope
/home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtCore/../../src/corelib/kernel/qeventloop.h: At global scope:
/home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtCore/../../src/corelib/kernel/qeventloop.h:99: error: expected ‘)’ before ‘*’ token
In file included from /home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtCore/qcoreapplication.h:1,
from /home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtCore/QCoreApplication:1,
from qtwaylandscanner.cpp:41:
/home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtCore/../../src/corelib/kernel/qcoreapplication.h:69: error: invalid use of incomplete type ‘struct QObject’
/home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtCore/../../src/corelib/kernel/qobjectdefs.h:235: error: forward declaration of ‘struct QObject’
/home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtCore/../../src/corelib/kernel/qcoreapplication.h: In member function ‘QCoreApplicationPrivate* QCoreApplication::d_func()’:
/home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtCore/../../src/corelib/kernel/qcoreapplication.h:77: error: ‘d_ptr’ was not declared in this scope
/home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtCore/../../src/corelib/kernel/qcoreapplication.h: In member function ‘const QCoreApplicationPrivate* QCoreApplication::d_func() const’:
/home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtCore/../../src/corelib/kernel/qcoreapplication.h:77: error: ‘d_ptr’ was not declared in this scope
/home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtCore/../../src/corelib/kernel/qcoreapplication.h: In static member function ‘static QString QCoreApplication::translate(const char*, const char*, const char*, int)’:
/home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtCore/../../src/corelib/kernel/qcoreapplication.h:209: error: return type ‘struct QString’ is incomplete
/home/tte/Desktop/Linux/qt-everywhere-opensource-src-5.0.2/qtbase/include/QtCore/../../src/corelib/kernel/qcoreapplication.h:211: error: incomplete type ‘QString’ used in nested name specifier
make[2]: *** [.obj/release-shared/qtwaylandscanner.o] Error 1
make[2]: Leaving directory `/home/tte/Desktop/Linux/qtwayland/src/qtwaylandscanner'
make[1]: *** [sub-qtwaylandscanner-make_first-ordered] Error 2
make[1]: Leaving directory `/home/tte/Desktop/Linux/qtwayland/src'
make: *** [sub-src-make_first] Error 2
Do you have any ideas with this ?
Thank you