[SOLVED] QT5 make fails on QUrl
-
HI, I'm building QT5 from GIT, but my make command fails on the QUrl class
Here comes the error:
@
In file included from ../../../../include/QtCore/qurl.h:1:0,
from ../../../../include/QtGui/../../src/gui/kernel/qevent.h:56,
from ../../../../include/QtGui/qevent.h:1,
from ../../../../include/QtGui/QTouchEvent:1,
from ../../../../include/QtGui/5.0.2/QtGui/qpa/../../../../../src/gui/kernel/qwindowsysteminterface.h:61,
from ../../../../include/QtGui/5.0.2/QtGui/qpa/qwindowsysteminterface.h:1,
from ../../../../include/QtGui/5.0.2/QtGui/private/../../../../../src/gui/kernel/qguiapplication_p.h:63,
from ../../../../include/QtGui/5.0.2/QtGui/private/qguiapplication_p.h:1,
from qeglfsintegration.cpp:48:
../../../../include/QtCore/../../src/corelib/io/qurl.h:130:9: error: expected identifier before numeric constant
../../../../include/QtCore/../../src/corelib/io/qurl.h:130:9: error: expected '}' before numeric constant
../../../../include/QtCore/../../src/corelib/io/qurl.h:130:9: error: expected unqualified-id before numeric constant
../../../../include/QtCore/../../src/corelib/io/qurl.h:160:26: error: 'UrlFormattingOption' was not declared in this scope
../../../../include/QtCore/../../src/corelib/io/qurl.h:160:72: error: template argument 1 is invalid
../../../../include/QtCore/../../src/corelib/io/qurl.h:160:91: error: invalid type in declaration before ';' token
../../../../include/QtCore/../../src/corelib/io/qurl.h:163:10: error: expected unqualified-id before ')' token
../../../../include/QtCore/../../src/corelib/io/qurl.h:164:10: error: expected unqualified-id before 'const'
@
This error refers to folder qtbase/src/plugins/platforms/eglfsIt seems that the "None" element of the struct defined in qurl.h is even a defined constant in an X11-header.
Do you know how can I fix this? I think that there could be some particular value for the configure script to fix this.
-
This has not happened to me, and I'm compiling Qt quite often. Strange.
Ping "Thiago":https://plus.google.com/108138837678270193032/posts on IRC or development Mailing List, he has rewritten QUrl for Qt5 and might be interested in knowing this. You'll have to provide some additional info like OS, compiler used, etc.
-
Thank you sierdzio.
I'm using the compiler from Toradex BSP, alias an armhf compiler.
This kind of error cames up even with my custom compiler from an openembedded build.
I'm using tegra2 specs. -
I've solved it, it's due to the X11_HEADER that come file was including.
The solution is add the options -D MESA_EGL_NO_X11_HEADERS, and check if this variable is present in the file include/EGL/eglplatform.h in your sysroot, if not, add the correct patch (you can find it online).
-
Could you please elaborate a little more how you solved this issue?
-
As written I've compiled with the options MESA_EGL_NO_X11_HEADERS.
AND
I've checked in the file include/EGL/eglplatform.h in my sysroot that the mesa variable was present, there is a patch online, search for QUrl and mesa headers.
-
Thanks.. Sorry I misread your post.