Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt5.5 Compile error adding -lGLESv2 to qmake
Forum Updated to NodeBB v4.3 + New Features

Qt5.5 Compile error adding -lGLESv2 to qmake

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 978 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DarCom
    wrote on last edited by
    #1

    Hi.
    I'm trying to cross-compile Qt5.5 to have EGL on x to have qt running in debian with lxde.
    The problem is when i add -lGLESv2 to QMAKE_LIBS_EGL:
    QMAKE_LIBS_EGL = -lEGL -lGLESv2
    The following error happens after the make command:

    p.o .obj/moc_qundogroup.o .obj/moc_qundostack.o .obj/moc_qundostack_p.o .obj/moc_qundoview.o .obj/moc_qkeyeventtransition.o .obj/moc_qmouseeventtransition.o .obj/moc_qbasickeyeventtransition_p.o .obj/moc_qbasicmouseeventtransition_p.o .obj/moc_qgraphicseffect.o .obj/moc_qgraphicseffect_p.o .obj/moc_qpixmapfilter_p.o  -L/media/root/usr/lib -L/root/qt-everywhere-opensource-src-5.5.0/qtbase/lib -lQt5Gui -lQt5Core -lrt -ldl -lpthread -lEGL -lGLESv2 
    ln -s libQt5Widgets.so.5.5.0 libQt5Widgets.so
    ln -s libQt5Widgets.so.5.5.0 libQt5Widgets.so.5
    ln -s libQt5Widgets.so.5.5.0 libQt5Widgets.so.5.5
    rm -f ../../lib/libQt5Widgets.so.5.5.0
    mv -f libQt5Widgets.so.5.5.0  ../../lib/ 
    rm -f ../../lib/libQt5Widgets.so
    rm -f ../../lib/libQt5Widgets.so.5
    rm -f ../../lib/libQt5Widgets.so.5.5
    mv -f libQt5Widgets.so ../../lib/ 
    mv -f libQt5Widgets.so.5 ../../lib/ 
    mv -f libQt5Widgets.so.5.5 ../../lib/ 
    make[3]: Leaving directory '/root/qt-everywhere-opensource-src-5.5.0/qtbase/src/widgets'
    make[2]: Leaving directory '/root/qt-everywhere-opensource-src-5.5.0/qtbase/src'
    Makefile:45: recipe for target 'sub-src-make_first' failed
    make[1]: *** [sub-src-make_first] Error 2
    make[1]: Leaving directory '/root/qt-everywhere-opensource-src-5.5.0/qtbase'
    Makefile:71: recipe for target 'module-qtbase-make_first' failed
    make: *** [module-qtbase-make_first] Error 2
    
    

    After Scrolling a lot up the terminal i can see these error:

    In file included from /media/root/usr/include/X11/Xlib.h:44:0,
                     from /media/root/usr/include/EGL/eglplatform.h:89,
                     from /media/root/usr/include/EGL/egl.h:36,
                     from eglconvenience/qeglplatformintegration_p.h:51,
                     from eglconvenience/qeglplatformcursor.cpp:45:
    eglconvenience/qeglplatformcursor.cpp: In member function ‘bool QEGLPlatformCursor::setCurrentCursor(QCursor*)’:
    eglconvenience/qeglplatformcursor.cpp:218:15: error: expected unqualified-id before numeric constant
         const Qt::CursorShape newShape = cursor ? cursor->shape() : Qt::ArrowCursor;
                   ^
    eglconvenience/qeglplatformcursor.cpp:219:27: error: ‘newShape’ was not declared in this scope
         if (m_cursor.shape == newShape && newShape != Qt::BitmapCursor)
                               ^
    eglconvenience/qeglplatformcursor.cpp:226:22: error: ‘newShape’ was not declared in this scope
         m_cursor.shape = newShape;
                          ^
    ...
    
    In file included from /media/root/usr/include/X11/Xlib.h:44:0,
                     from /media/root/usr/include/EGL/eglplatform.h:89,
                     from /media/root/usr/include/EGL/egl.h:36,
                     from eglconvenience/qeglplatformscreen_p.h:52,
                     from eglconvenience/qeglplatformscreen.cpp:34:
    ../../include/QtCore/../../src/corelib/io/qurl.h:131:9: error: expected identifier before numeric constant
             None = 0x0,
             ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:131:9: error: expected ‘}’ before numeric constant
    ../../include/QtCore/../../src/corelib/io/qurl.h:131:9: error: expected unqualified-id before numeric constant
    In file included from ../../include/QtCore/qurl.h:1:0,
                     from ../../include/QtGui/../../src/gui/kernel/qevent.h:48,
                     from ../../include/QtGui/qevent.h:1,
                     from ../../include/QtGui/QTouchEvent:1,
                     from ../../include/QtGui/5.5.0/QtGui/qpa/../../../../../src/gui/kernel/qwindowsysteminterface.h:53,
                     from ../../include/QtGui/5.5.0/QtGui/qpa/qwindowsysteminterface.h:1,
                     from eglconvenience/qeglplatformscreen.cpp:37:
    ../../include/QtCore/../../src/corelib/io/qurl.h:163:26: error: ‘UrlFormattingOption’ was not declared in this scope
         typedef QUrlTwoFlags<UrlFormattingOption, ComponentFormattingOption> FormattingOptions;
                              ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:163:72: error: template argument 1 is invalid
         typedef QUrlTwoFlags<UrlFormattingOption, ComponentFormattingOption> FormattingOptions;
                                                                            ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:163:91: error: invalid type in declaration before ‘;’ token
         typedef QUrlTwoFlags<UrlFormattingOption, ComponentFormattingOption> FormattingOptions;
                                                                                               ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:166:10: error: expected unqualified-id before ‘)’ token
         QUrl();
              ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:167:10: error: expected unqualified-id before ‘const’
         QUrl(const QUrl &copy);
              ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:167:10: error: expected ‘)’ before ‘const’
    ../../include/QtCore/../../src/corelib/io/qurl.h:168:38: error: ‘QUrl& operator=(const QUrl&)’ must be a nonstatic member function
         QUrl &operator =(const QUrl &copy);
                                          ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:172:10: error: expected unqualified-id before ‘const’
         QUrl(const QString &url, ParsingMode mode = TolerantMode);
              ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:172:10: error: expected ‘)’ before ‘const’
    ../../include/QtCore/../../src/corelib/io/qurl.h:173:39: error: ‘QUrl& operator=(const QString&)’ must be a nonstatic member function
         QUrl &operator=(const QString &url);
                                           ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:176:15: error: expected ‘)’ before ‘&&’ token
         QUrl(QUrl &&other) Q_DECL_NOTHROW : d(other.d)
                   ^
    In file included from ../../include/QtCore/qcompilerdetection.h:1:0,
                     from ../../include/QtCore/../../src/corelib/global/qglobal.h:74,
                     from ../../include/QtCore/qglobal.h:1,
                     from ../../include/QtCore/../../src/corelib/tools/qalgorithms.h:37,
                     from ../../include/QtCore/qalgorithms.h:1,
                     from ../../include/QtCore/../../src/corelib/tools/qlist.h:37,
                     from ../../include/QtCore/qlist.h:1,
                     from ../../include/QtCore/QList:1,
                     from eglconvenience/qeglplatformscreen_p.h:48,
                     from eglconvenience/qeglplatformscreen.cpp:34:
    ../../include/QtCore/../../src/corelib/global/qcompilerdetection.h:1006:26: error: ‘QUrl& operator=(QUrl&&)’ must be a nonstatic member function
     # define Q_DECL_NOEXCEPT noexcept
                              ^
    ../../include/QtCore/../../src/corelib/global/qcompilerdetection.h:1016:25: note: in expansion of macro ‘Q_DECL_NOEXCEPT’
     # define Q_DECL_NOTHROW Q_DECL_NOEXCEPT
                             ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:178:42: note: in expansion of macro ‘Q_DECL_NOTHROW’
         inline QUrl &operator=(QUrl &&other) Q_DECL_NOTHROW
                                              ^
    In file included from ../../include/QtCore/qurl.h:1:0,
                     from ../../include/QtGui/../../src/gui/kernel/qevent.h:48,
                     from ../../include/QtGui/qevent.h:1,
                     from ../../include/QtGui/QTouchEvent:1,
                     from ../../include/QtGui/5.5.0/QtGui/qpa/../../../../../src/gui/kernel/qwindowsysteminterface.h:53,
                     from ../../include/QtGui/5.5.0/QtGui/qpa/qwindowsysteminterface.h:1,
                     from eglconvenience/qeglplatformscreen.cpp:37:
    ../../include/QtCore/../../src/corelib/io/qurl.h:181:12: error: expected constructor, destructor, or type conversion before ‘;’ token
         ~QUrl();
                ^
    ../../include/QtCore/../../src/corelib/io/qurl.h: In function ‘void swap(QUrl&)’:
    ../../include/QtCore/../../src/corelib/io/qurl.h:183:58: error: ‘d’ was not declared in this scope
         inline void swap(QUrl &other) Q_DECL_NOTHROW { qSwap(d, other.d); }
                                                              ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:183:67: error: ‘class QUrl’ has no member named ‘d’
         inline void swap(QUrl &other) Q_DECL_NOTHROW { qSwap(d, other.d); }
                                                                       ^
    ../../include/QtCore/../../src/corelib/io/qurl.h: At global scope:
    ../../include/QtCore/../../src/corelib/io/qurl.h:185:37: error: ‘ParsingMode’ has not been declared
         void setUrl(const QString &url, ParsingMode mode = TolerantMode);
                                         ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:185:56: error: ‘TolerantMode’ was not declared in this scope
         void setUrl(const QString &url, ParsingMode mode = TolerantMode);
                                                            ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:186:79: error: non-member function ‘QString url(FormattingOptions)’ cannot have cv-qualifier
         QString url(FormattingOptions options = FormattingOptions(PrettyDecoded)) const;
                                                                                   ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:187:84: error: non-member function ‘QString toString(FormattingOptions)’ cannot have cv-qualifier
         QString toString(FormattingOptions options = FormattingOptions(PrettyDecoded)) const;
                                                                                        ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:188:91: error: non-member function ‘QString toDisplayString(FormattingOptions)’ cannot have cv-qualifier
         QString toDisplayString(FormattingOptions options = FormattingOptions(PrettyDecoded)) const;
                                                                                               ^
    In file included from ../../include/QtCore/qstring.h:1:0,
                     from ../../include/QtCore/../../src/corelib/tools/qbytearray.h:680,
                     from ../../include/QtCore/qbytearray.h:1,
                     from ../../include/QtCore/../../src/corelib/tools/qbytearraylist.h:40,
                     from ../../include/QtCore/qbytearraylist.h:1,
                     from ../../include/QtCore/../../src/corelib/tools/qlist.h:1025,
                     from ../../include/QtCore/qlist.h:1,
                     from ../../include/QtCore/QList:1,
                     from eglconvenience/qeglplatformscreen_p.h:48,
                     from eglconvenience/qeglplatformscreen.cpp:34:
    ../../include/QtCore/../../src/corelib/tools/qstring.h:410:41: error: non-member function ‘QUrl adjusted(FormattingOptions)’ cannot have cv-qualifier
     #  endif
                                             ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:189:52: note: in expansion of macro ‘Q_REQUIRED_RESULT’
         QUrl adjusted(FormattingOptions options) const Q_REQUIRED_RESULT;
                                                        ^
    In file included from ../../include/QtCore/qurl.h:1:0,
                     from ../../include/QtGui/../../src/gui/kernel/qevent.h:48,
                     from ../../include/QtGui/qevent.h:1,
                     from ../../include/QtGui/QTouchEvent:1,
                     from ../../include/QtGui/5.5.0/QtGui/qpa/../../../../../src/gui/kernel/qwindowsysteminterface.h:53,
                     from ../../include/QtGui/5.5.0/QtGui/qpa/qwindowsysteminterface.h:1,
                     from eglconvenience/qeglplatformscreen.cpp:37:
    ../../include/QtCore/../../src/corelib/io/qurl.h:191:68: error: non-member function ‘QByteArray toEncoded(FormattingOptions)’ cannot have cv-qualifier
         QByteArray toEncoded(FormattingOptions options = FullyEncoded) const;
                                                                        ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:192:52: error: ‘ParsingMode’ has not been declared
         static QUrl fromEncoded(const QByteArray &url, ParsingMode mode = TolerantMode);
                                                        ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:192:71: error: ‘TolerantMode’ was not declared in this scope
         static QUrl fromEncoded(const QByteArray &url, ParsingMode mode = TolerantMode);
                                                                           ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:205:20: error: non-member function ‘bool isValid()’ cannot have cv-qualifier
         bool isValid() const;
                        ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:206:27: error: non-member function ‘QString errorString()’ cannot have cv-qualifier
         QString errorString() const;
                               ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:208:20: error: non-member function ‘bool isEmpty()’ cannot have cv-qualifier
         bool isEmpty() const;
                        ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:212:22: error: non-member function ‘QString scheme()’ cannot have cv-qualifier
         QString scheme() const;
                          ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:214:49: error: ‘ParsingMode’ has not been declared
         void setAuthority(const QString &authority, ParsingMode mode = TolerantMode);
                                                     ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:214:68: error: ‘TolerantMode’ was not declared in this scope
         void setAuthority(const QString &authority, ParsingMode mode = TolerantMode);
                                                                        ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:215:75: error: non-member function ‘QString authority(ComponentFormattingOptions)’ cannot have cv-qualifier
         QString authority(ComponentFormattingOptions options = PrettyDecoded) const;
                                                                               ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:217:47: error: ‘ParsingMode’ has not been declared
         void setUserInfo(const QString &userInfo, ParsingMode mode = TolerantMode);
                                                   ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:217:66: error: ‘TolerantMode’ was not declared in this scope
         void setUserInfo(const QString &userInfo, ParsingMode mode = TolerantMode);
                                                                      ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:218:74: error: non-member function ‘QString userInfo(ComponentFormattingOptions)’ cannot have cv-qualifier
         QString userInfo(ComponentFormattingOptions options = PrettyDecoded) const;
                                                                              ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:220:47: error: ‘ParsingMode’ has not been declared
         void setUserName(const QString &userName, ParsingMode mode = DecodedMode);
                                                   ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:220:66: error: ‘DecodedMode’ was not declared in this scope
         void setUserName(const QString &userName, ParsingMode mode = DecodedMode);
                                                                      ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:221:73: error: non-member function ‘QString userName(ComponentFormattingOptions)’ cannot have cv-qualifier
         QString userName(ComponentFormattingOptions options = FullyDecoded) const;
                                                                             ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:223:47: error: ‘ParsingMode’ has not been declared
         void setPassword(const QString &password, ParsingMode mode = DecodedMode);
                                                   ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:223:66: error: ‘DecodedMode’ was not declared in this scope
         void setPassword(const QString &password, ParsingMode mode = DecodedMode);
                                                                      ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:224:65: error: non-member function ‘QString password(ComponentFormattingOptions)’ cannot have cv-qualifier
         QString password(ComponentFormattingOptions = FullyDecoded) const;
                                                                     ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:226:39: error: ‘ParsingMode’ has not been declared
         void setHost(const QString &host, ParsingMode mode = DecodedMode);
                                           ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:226:58: error: ‘DecodedMode’ was not declared in this scope
         void setHost(const QString &host, ParsingMode mode = DecodedMode);
                                                              ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:227:61: error: non-member function ‘QString host(ComponentFormattingOptions)’ cannot have cv-qualifier
         QString host(ComponentFormattingOptions = FullyDecoded) const;
                                                                 ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:228:79: error: non-member function ‘QString topLevelDomain(ComponentFormattingOptions)’ cannot have cv-qualifier
         QString topLevelDomain(ComponentFormattingOptions options = FullyDecoded) const;
                                                                                   ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:231:36: error: non-member function ‘int port(int)’ cannot have cv-qualifier
         int port(int defaultPort = -1) const;
                                        ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:233:39: error: ‘ParsingMode’ has not been declared
         void setPath(const QString &path, ParsingMode mode = DecodedMode);
                                           ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:233:58: error: ‘DecodedMode’ was not declared in this scope
         void setPath(const QString &path, ParsingMode mode = DecodedMode);
                                                              ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:234:69: error: non-member function ‘QString path(ComponentFormattingOptions)’ cannot have cv-qualifier
         QString path(ComponentFormattingOptions options = FullyDecoded) const;
                                                                         ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:235:73: error: non-member function ‘QString fileName(ComponentFormattingOptions)’ cannot have cv-qualifier
         QString fileName(ComponentFormattingOptions options = FullyDecoded) const;
                                                                             ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:237:21: error: non-member function ‘bool hasQuery()’ cannot have cv-qualifier
         bool hasQuery() const;
                         ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:238:41: error: ‘ParsingMode’ has not been declared
         void setQuery(const QString &query, ParsingMode mode = TolerantMode);
                                             ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:238:60: error: ‘TolerantMode’ was not declared in this scope
         void setQuery(const QString &query, ParsingMode mode = TolerantMode);
                                                                ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:240:63: error: non-member function ‘QString query(ComponentFormattingOptions)’ cannot have cv-qualifier
         QString query(ComponentFormattingOptions = PrettyDecoded) const;
                                                                   ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:242:24: error: non-member function ‘bool hasFragment()’ cannot have cv-qualifier
         bool hasFragment() const;
                            ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:243:74: error: non-member function ‘QString fragment(ComponentFormattingOptions)’ cannot have cv-qualifier
         QString fragment(ComponentFormattingOptions options = PrettyDecoded) const;
                                                                              ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:244:47: error: ‘ParsingMode’ has not been declared
         void setFragment(const QString &fragment, ParsingMode mode = TolerantMode);
                                                   ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:244:66: error: ‘TolerantMode’ was not declared in this scope
         void setFragment(const QString &fragment, ParsingMode mode = TolerantMode);
                                                                      ^
    In file included from ../../include/QtCore/qstring.h:1:0,
                     from ../../include/QtCore/../../src/corelib/tools/qbytearray.h:680,
                     from ../../include/QtCore/qbytearray.h:1,
                     from ../../include/QtCore/../../src/corelib/tools/qbytearraylist.h:40,
                     from ../../include/QtCore/qbytearraylist.h:1,
                     from ../../include/QtCore/../../src/corelib/tools/qlist.h:1025,
                     from ../../include/QtCore/qlist.h:1,
                     from ../../include/QtCore/QList:1,
                     from eglconvenience/qeglplatformscreen_p.h:48,
                     from eglconvenience/qeglplatformscreen.cpp:34:
    ../../include/QtCore/../../src/corelib/tools/qstring.h:410:41: error: non-member function ‘QUrl resolved(const QUrl&)’ cannot have cv-qualifier
     #  endif
                                             ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:246:47: note: in expansion of macro ‘Q_REQUIRED_RESULT’
         QUrl resolved(const QUrl &relative) const Q_REQUIRED_RESULT;
                                                   ^
    In file included from ../../include/QtCore/qurl.h:1:0,
                     from ../../include/QtGui/../../src/gui/kernel/qevent.h:48,
                     from ../../include/QtGui/qevent.h:1,
                     from ../../include/QtGui/QTouchEvent:1,
                     from ../../include/QtGui/5.5.0/QtGui/qpa/../../../../../src/gui/kernel/qwindowsysteminterface.h:53,
                     from ../../include/QtGui/5.5.0/QtGui/qpa/qwindowsysteminterface.h:1,
                     from eglconvenience/qeglplatformscreen.cpp:37:
    ../../include/QtCore/../../src/corelib/io/qurl.h:248:23: error: non-member function ‘bool isRelative()’ cannot have cv-qualifier
         bool isRelative() const;
                           ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:249:38: error: non-member function ‘bool isParentOf(const QUrl&)’ cannot have cv-qualifier
         bool isParentOf(const QUrl &url) const;
                                          ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:251:24: error: non-member function ‘bool isLocalFile()’ cannot have cv-qualifier
         bool isLocalFile() const;
                            ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:253:27: error: non-member function ‘QString toLocalFile()’ cannot have cv-qualifier
         QString toLocalFile() const;
                               ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:256:23: error: non-member function ‘bool isDetached()’ cannot have cv-qualifier
         bool isDetached() const;
                           ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:258:38: error: non-member function ‘bool operator<(const QUrl&)’ cannot have cv-qualifier
         bool operator <(const QUrl &url) const;
                                          ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:258:38: error: ‘bool operator<(const QUrl&)’ must take exactly two arguments
    ../../include/QtCore/../../src/corelib/io/qurl.h:259:39: error: non-member function ‘bool operator==(const QUrl&)’ cannot have cv-qualifier
         bool operator ==(const QUrl &url) const;
                                           ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:259:39: error: ‘bool operator==(const QUrl&)’ must take exactly two arguments
    ../../include/QtCore/../../src/corelib/io/qurl.h:260:39: error: non-member function ‘bool operator!=(const QUrl&)’ cannot have cv-qualifier
         bool operator !=(const QUrl &url) const;
                                           ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:260:39: error: ‘bool operator!=(const QUrl&)’ must take exactly two arguments
    ../../include/QtCore/../../src/corelib/io/qurl.h:262:62: error: non-member function ‘bool matches(const QUrl&, FormattingOptions)’ cannot have cv-qualifier
         bool matches(const QUrl &url, FormattingOptions options) const;
                                                                  ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:343:1: error: expected unqualified-id before ‘private’
     private:
     ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:346:1: error: expected unqualified-id before ‘public’
     public:
     ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:351:64: error: ‘ParsingMode’ has not been declared
         static QList<QUrl> fromStringList(const QStringList &uris, ParsingMode mode = TolerantMode);
                                                                    ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:351:83: error: ‘TolerantMode’ was not declared in this scope
         static QList<QUrl> fromStringList(const QStringList &uris, ParsingMode mode = TolerantMode);
                                                                                       ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:354:5: error: ‘friend’ used outside of class
         friend Q_CORE_EXPORT uint qHash(const QUrl &url, uint seed) Q_DECL_NOTHROW;
         ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:356:1: error: expected unqualified-id before ‘private’
     private:
     ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:358:5: error: ‘friend’ used outside of class
         friend class QUrlQuery;
         ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:360:1: error: expected unqualified-id before ‘public’
     public:
     ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:362:12: error: ‘DataPtr’ does not name a type
         inline DataPtr &data_ptr() { return d; }
                ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:363:1: error: expected declaration before ‘}’ token
     };
     ^
    /root/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard --sysroot=/media/root -O2 -O3 -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_USING_NAMESPACE -DQT_BUILD_WIDGETS_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_GTK -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_ANDROID -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../include -I../../include/QtWidgets -I../../include/QtWidgets/5.5.0 -I../../include/QtWidgets/5.5.0/QtWidgets -Idialogs -I.uic -I../../include/QtCore/5.5.0 -I../../include/QtCore/5.5.0/QtCore -I../../include/QtGui/5.5.0 -I../../include/QtGui/5.5.0/QtGui -I../../include/QtGui -I../../include/QtCore -I.moc -isystem /media/root/usr/include/GLES2 -I../../mkspecs/devices/linux-cubieboard2-g++ -o .obj/qformlayout.o kernel/qformlayout.cpp
    ../../include/QtCore/../../src/corelib/io/qurl.h:192:17: warning: ‘QUrl fromEncoded(const QByteArray&, int)’ declared ‘static’ but never defined [-Wunused-function]
         static QUrl fromEncoded(const QByteArray &url, ParsingMode mode = TolerantMode);
                     ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:200:17: warning: ‘QUrl fromUserInput(const QString&)’ declared ‘static’ but never defined [-Wunused-function]
         static QUrl fromUserInput(const QString &userInput);
                     ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:202:17: warning: ‘QUrl fromUserInput(const QString&, const QString&, UserInputResolutionOptions)’ declared ‘static’ but never defined [-Wunused-function]
         static QUrl fromUserInput(const QString &userInput, const QString &workingDirectory,
                     ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:252:17: warning: ‘QUrl fromLocalFile(const QString&)’ declared ‘static’ but never defined [-Wunused-function]
         static QUrl fromLocalFile(const QString &localfile);
                     ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:264:20: warning: ‘QString fromPercentEncoding(const QByteArray&)’ declared ‘static’ but never defined [-Wunused-function]
         static QString fromPercentEncoding(const QByteArray &);
                        ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:265:23: warning: ‘QByteArray toPercentEncoding(const QString&, const QByteArray&, const QByteArray&)’ declared ‘static’ but never defined [-Wunused-function]
         static QByteArray toPercentEncoding(const QString &,
                           ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:348:23: warning: ‘QByteArray toAce(const QString&)’ declared ‘static’ but never defined [-Wunused-function]
         static QByteArray toAce(const QString &);
                           ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:349:24: warning: ‘QStringList idnWhitelist()’ declared ‘static’ but never defined [-Wunused-function]
         static QStringList idnWhitelist();
                            ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:350:24: warning: ‘QStringList toStringList(const QList<QUrl>&, FormattingOptions)’ declared ‘static’ but never defined [-Wunused-function]
         static QStringList toStringList(const QList<QUrl> &uris, FormattingOptions options = FormattingOptions(PrettyDecoded));
                            ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:351:24: warning: ‘QList<QUrl> fromStringList(const QStringList&, int)’ declared ‘static’ but never defined [-Wunused-function]
         static QList<QUrl> fromStringList(const QStringList &uris, ParsingMode mode = TolerantMode);
                            ^
    ../../include/QtCore/../../src/corelib/io/qurl.h:353:17: warning: ‘void setIdnWhitelist(const QStringList&)’ declared ‘static’ but never defined [-Wunused-function]
         static void setIdnWhitelist(const QStringList &);
                     ^
    Makefile:7295: recipe for target '.obj/qeglplatformscreen.o' failed
    make[3]: *** [.obj/qeglplatformscreen.o] Error 1
    make[3]: Leaving directory '/root/qt-everywhere-opensource-src-5.5.0/qtbase/src/platformsupport'
    Makefile:501: recipe for target 'sub-platformsupport-make_first' failed
    make[2]: *** [sub-platformsupport-make_first] Error 2
    make[2]: *** Waiting for unfinished jobs....
    
    
    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved