[Development] R: [QT5] Configure error in QUrl

Matteo Brichese mbrichese at came.it
Fri Mar 22 09:11:45 CET 2013

I'm sorry, I've made an error, this errors came up when I launch the MAKE command, not in the configure.

Matteo Brichese
Software Engineer
mbrichese at came.it
Came Cancelli Automatici S.p.A.
Da: development-bounces+mbrichese=came.it at qt-project.org [development-bounces+mbrichese=came.it at qt-project.org] per conto di Matteo Brichese [mbrichese at came.it]
Inviato: venerdì 22 marzo 2013 8.58
A: development at qt-project.org
Oggetto: [Development] [QT5] Configure error in QUrl

Hi everyone, I'm Matteo from Italy, I'm trying to crosscompile qt5 for a tegra2 device (Colibri T20 from Toradex) but I'm finding some errors in configure script.

Here is my configure:

./configure -make libs \
-prefix /opt/qt5_tegra \
-sysroot /home/matteo/oe-core/sysroot \
-device tegra2 \
-device-option CROSS_COMPILE=arm-angstrom-linux-gnueabi- \
-no-neon \
-opengl es2 \
-confirm-license \
-nomake examples -nomake tests \
-optimized-qmake \
-reduce-relocations \
-release \
-no-sse2 \
-no-sse3 \
-no-sse4.1 \
-no-sse4.2 \
-qt-xcb \
-opensource -v

the compiler is in my path, compiler and toolchain was generated by my openembedded env.
If I run this configure I came accross this error:

In file included from ../../../../include/QtCore<http://qt-project.org/doc/QtCore.html>/qurl<http://qt-project.org/doc/QUrl.html>.h:1:0,
                 from ../../../../include/QtGui<http://qt-project.org/doc/QtGui.html>/../../src/gui/kernel/qevent<http://qt-project.org/doc/QEvent.html>.h:56,
                 from ../../../../include/QtGui<http://qt-project.org/doc/QtGui.html>/qevent<http://qt-project.org/doc/QEvent.html>.h:1,
                 from ../../../../include/QtGui<http://qt-project.org/doc/QtGui.html>/QTouchEvent:1,
                 from ../../../../include/QtGui<http://qt-project.org/doc/QtGui.html>/5.0.2/QtGui<http://qt-project.org/doc/QtGui.html>/qpa/../../../../../src/gui/kernel/qwindowsysteminterface.h:61,
                 from ../../../../include/QtGui<http://qt-project.org/doc/QtGui.html>/5.0.2/QtGui<http://qt-project.org/doc/QtGui.html>/qpa/qwindowsysteminterface.h:1,
                 from ../../../../include/QtGui<http://qt-project.org/doc/QtGui.html>/5.0.2/QtGui<http://qt-project.org/doc/QtGui.html>/private/../../../../../src/gui/kernel/qguiapplication_p.h:63,
                 from ../../../../include/QtGui<http://qt-project.org/doc/QtGui.html>/5.0.2/QtGui<http://qt-project.org/doc/QtGui.html>/private/qguiapplication_p.h:1,
                 from qeglfsintegration.cpp:48:
../../../../include/QtCore<http://qt-project.org/doc/QtCore.html>/../../src/corelib/io/qurl<http://qt-project.org/doc/QUrl.html>.h:130:9: error: expected identifier before numeric constant
../../../../include/QtCore<http://qt-project.org/doc/QtCore.html>/../../src/corelib/io/qurl<http://qt-project.org/doc/QUrl.html>.h:130:9: error: expected '}' before numeric constant
../../../../include/QtCore<http://qt-project.org/doc/QtCore.html>/../../src/corelib/io/qurl<http://qt-project.org/doc/QUrl.html>.h:130:9: error: expected unqualified-id before numeric constant
../../../../include/QtCore<http://qt-project.org/doc/QtCore.html>/../../src/corelib/io/qurl<http://qt-project.org/doc/QUrl.html>.h:160:26: error: 'UrlFormattingOption' was not declared in this scope
../../../../include/QtCore<http://qt-project.org/doc/QtCore.html>/../../src/corelib/io/qurl<http://qt-project.org/doc/QUrl.html>.h:160:72: error: template argument 1 is invalid
../../../../include/QtCore<http://qt-project.org/doc/QtCore.html>/../../src/corelib/io/qurl<http://qt-project.org/doc/QUrl.html>.h:160:91: error: invalid type in declaration before ';' token
../../../../include/QtCore<http://qt-project.org/doc/QtCore.html>/../../src/corelib/io/qurl<http://qt-project.org/doc/QUrl.html>.h:163:10: error: expected unqualified-id before ')' token
../../../../include/QtCore<http://qt-project.org/doc/QtCore.html>/../../src/corelib/io/qurl<http://qt-project.org/doc/QUrl.html>.h:164:10: error: expected unqualified-id before 'const'

This error refers to folder qtbase/src/plugins/platforms/eglfs

It seems that the “None” element of the struct defined in qurl.h is even a defined constant in an X11-header.

If I relaunch the configure script with -no-eglfs option all goes well and I'm able to compile (make & make install) all the modules that I need, but I need eglfs for my project.

I'm using QT5 from git (5.0.1), in Ubuntu 12.04 32bit, gcc compiler 4.7.2.

I've also post the question here: http://qt-project.org/forums/viewthread/25896

Thank you.


Matteo Brichese
Software Engineer
mbrichese at came.it
[Came Cancelli Automatici S.p.A.]<http://www.came.com/>
Il messaggio di posta elettronica contiene informazioni di carattere confidenziale specifiche per il destinatario. Nel caso non ne siate il destinatario, segnalatelo immediatamente al mittente ed eliminate dai vostri archivi quanto ricevuto (compresi i file allegati). L'uso, la diffusione, distribuzione o riproduzione del presente messaggio e dei suoi allegati da parte di ogni altra persona costituisce reato. Rif. Decreto legislativo 30 giugno 2003, n. 196 - Codice in materia di protezione dei dati personali.

The email message contains confidential information specific to the recipient. If you are not the recipient, write it to the sender immediately and delete from your files as received (including file attachments). Use, dissemination, distribution or reproduction of this message and its attachments by any other person is a criminal offense. References Legislative Decree 30 June 2003, n. 196 - Code for the protection of personal data.

Right to opposition:
The person concerned who receives the message has the right at any time to oppose its processing for forwarding commercial messages, advertising material or direct sales proposals, by clicking on the e-mail address below (or by traditional postal services by writing to: Came Cancelli Automatici Spa, Via Martiri della Libertà 15, 31030 Dosson di Casier (TV) - Italy, or by sending a fax to +39 0422 4941. Furthermore the person concerned may exercise all the rights of access to the personal data as provided by art. 7, Legislative Decree no. 196/2003, including the rights to amendment, updating and deletion, by sending an e-mail to privacy at came.com<mailto:privacy at came.com>.

More information about the Development mailing list