-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.1.0 Beta 1
-
None
-
OS: Ubuntu 12.04 Server (x86)
I am running Ubuntu 12.04 LTS on a server and I am attempting to compile Qt5.1 Beta 1 on it. I installed Clang 3.2 and installed each of the packages listed in src/plugins/platforms/xcb/README:
sudo apt-get install libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm4 libxcb-icccm4-dev libxcb-sync0 libxcb-sync0-dev libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0 libxcb-render-util0-dev libxcb-glx0-dev
I then ran ./configure with the following parameter:
./configure -platform linux-clang
This step completed without any errors and I was able to run make. About 5 minutes later, the following error was displayed:
qxcbnativeinterface.cpp:97:7: error: no type named 'Display' in the global namespace ::Display *display = (::Display *)nativeResourceForScreen(QByteArrayLiteral("display"), QGuiApplication::primaryScreen()); ~~^ qxcbnativeinterface.cpp:97:29: error: no member named 'Display' in the global namespace ::Display *display = (::Display *)nativeResourceForScreen(QByteArrayLiteral("display"), QGuiApplication::primaryScreen()); ~~^ qxcbnativeinterface.cpp:97:38: error: expected expression ::Display *display = (::Display *)nativeResourceForScreen(QByteArrayLiteral("display"), QGuiApplication::primaryScreen()); ^ 3 errors generated.