Qt 5.3.2 on a olinuxino a20-lime build error



  • Hi,

    I tried to cross-compile QT5.3.2 for my A20-lime, but i still get errors.

    Current errors are:
    @In file included from ../../../../include/QtCore/qtextstream.h:1:0,
    from ../../../../include/QtCore/QTextStream:1,
    from qeglfsscreen.h:47,
    from qeglfswindow.h:46,
    from qeglfsintegration.cpp:44:
    ../../../../include/QtCore/../../src/corelib/io/qtextstream.h:54:2: error: #error qtextstream.h must be included before any header file that defines Status
    In file included from ../../../../include/QtCore/qtextstream.h:1:0,
    from ../../../../include/QtCore/QTextStream:1,
    from qeglfsscreen.h:47,
    from qeglfswindow.h:46,
    from qeglfsintegration.cpp:44:
    ../../../../include/QtCore/../../src/corelib/io/qtextstream.h:80:10: error: expected identifier before ‘int’
    ../../../../include/QtCore/../../src/corelib/io/qtextstream.h:80:17: error: expected unqualified-id before ‘{’ token
    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.3.2/QtGui/qpa/../../../../../src/gui/kernel/qwindowsysteminterface.h:61,
    from ../../../../include/QtGui/5.3.2/QtGui/qpa/qwindowsysteminterface.h:1,
    from ../../../../include/QtGui/5.3.2/QtGui/private/../../../../../src/gui/kernel/qguiapplication_p.h:63,
    from ../../../../include/QtGui/5.3.2/QtGui/private/qguiapplication_p.h:1,
    from qeglfsintegration.cpp:48:
    ../../../../include/QtCore/../../src/corelib/io/qurl.h:139:9: error: expected identifier before numeric constant
    ../../../../include/QtCore/../../src/corelib/io/qurl.h:139:9: error: expected ‘}’ before numeric constant
    ../../../../include/QtCore/../../src/corelib/io/qurl.h:139:9: error: expected unqualified-id before numeric constant
    ../../../../include/QtCore/../../src/corelib/io/qurl.h:171:26: error: ‘UrlFormattingOption’ was not declared in this scope
    ../../../../include/QtCore/../../src/corelib/io/qurl.h:171:72: error: template argument 1 is invalid
    ../../../../include/QtCore/../../src/corelib/io/qurl.h:171:91: error: invalid type in declaration before ‘;’ token
    ../../../../include/QtCore/../../src/corelib/io/qurl.h:174:10: error: expected unqualified-id before ‘)’ token
    ../../../../include/QtCore/../../src/corelib/io/qurl.h:175:10: error: expected unqualified-id before ‘const’
    ../../../../include/QtCore/../../src/corelib/io/qurl.h:175:10: error: expected ‘)’ before ‘const’
    ../../../../include/QtCore/../../src/corelib/io/qurl.h:176:38: error: ‘QUrl& operator=(const QUrl&)’ must be a nonstatic member function
    ../../../../include/QtCore/../../src/corelib/io/qurl.h:180:10: error: expected unqualified-id before ‘const’
    ../../../../include/QtCore/../../src/corelib/io/qurl.h:180:10: error: expected ‘)’ before ‘const’
    @

    Last configuration is:
    @./configure -opengl es2 -device linux-a20olimex-g++ -device-option CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf- -sysroot /mnt/a20 -opensource -confirm-license -optimized-qmake -release -make libs -prefix /opt/qt5olim2 -no-pch -nomake examples -nomake tests -no-xcb -eglfs -v@

    Before I start compile I found this "topic":http://qt-project.org/forums/viewthread/43455 and I applied solutions from it.

    And I used arm-linux-gnueabihf 4.7.2-5 from emdebian repo.



  • I found some dependency with this problem connected with -eglfs but i don't know how to fix it.



  • Any solution to this problem? I am having same issue.

    @ from /out/work/armv7ahf-vfp-neon-linux-gnueabihf/qtbase/5.3.2-r0/qtbase-opensource-src-5.3.2/src/plugins/platforms/eglfs/qeglfsintegration.cpp:48:
    ../../../../include/QtCore/../../../qtbase-opensource-src-5.3.2/src/corelib/io/qurl.h:140:9: error: expected identifier before numeric constant
    ../../../../include/QtCore/../../../qtbase-opensource-src-5.3.2/src/corelib/io/qurl.h:140:9: error: expected '}' before numeric constant
    ../../../../include/QtCore/../../../qtbase-opensource-src-5.3.2/src/corelib/io/qurl.h:140:9: error: expected unqualified-id before numeric constant
    ../../../../include/QtCore/../../../qtbase-opensource-src-5.3.2/src/corelib/io/qurl.h:172:26: error: 'UrlFormattingOption' was not declared in this scope
    ../../../../include/QtCore/../../../qtbase-opensource-src-5.3.2/src/corelib/io/qurl.h:172:72: error: template argument 1 is invalid
    ../../../../include/QtCore/../../../qtbase-opensource-src-5.3.2/src/corelib/io/qurl.h:172:91: error: invalid type in declaration before ';' token
    ../../../../include/QtCore/../../../qtbase-opensource-src-5.3.2/src/corelib/io/qurl.h:175:10: error: expected unqualified-id before ')' token
    ../../../../include/QtCore/../../../qtbase-opensource-src-5.3.2/src/corelib/io/qurl.h:176:10: error: expected unqualified-id before 'const'
    ../../../../include/QtCore/../../../qtbase-opensource-src-5.3.2/src/corelib/io/qurl.h:176:10: error: expected ')' before 'const'
    ../../../../include/QtCore/../../../qtbase-opensource-src-5.3.2/src/corelib/io/qurl.h:177:38: error: 'QUrl& operator=(const QUrl&)' must be a nonstatic member function
    ../../../../include/QtCore/../../../qtbase-opensource-src-5.3.2/src/corelib/io/qurl.h:181:10: error: expected unqualified-id before 'const'
    ../../../../include/QtCore/../../../qtbase-opensource-src-5.3.2/src/corelib/io/qurl.h:181:10: error: expected ')' before 'const'
    ../../../../include/QtCore/../../../qtbase-opensource-src-5.3.2/src/corelib/io/qurl.h:182:39: error: 'QUrl& operator=(const QString&)' must be a nonstatic member function
    ../../../../include/QtCore/../../../qtbase-opensource-src-5.3.2/src/corelib/io/qurl.h:185:15: error: expected ')' before '&&' token
    ../../../../include/QtCore/../../../qtbase-opensource-src-5.3.2/src/corelib/io/qurl.h:187:40: error: 'QUrl& operator=(QUrl&&)' must be a nonstatic member function
    ../../../../include/QtCore/../../../qtbase-opensource-src-5.3.2/src/corelib/io/qurl.h:190:12: error: expected constructor, destructor, or type conversion before ';' token@

    Here is my configure:

    @
    ${S}/configure -v
    -opensource -confirm-license
    -sysroot ${STAGING_DIR_TARGET}
    -no-gcc-sysroot
    -prefix ${OE_QMAKE_PATH_PREFIX}
    -bindir ${OE_QMAKE_PATH_BINS}
    -libdir ${OE_QMAKE_PATH_LIBS}
    -datadir ${OE_QMAKE_PATH_DATA}
    -sysconfdir ${OE_QMAKE_PATH_SETTINGS}
    -docdir ${OE_QMAKE_PATH_DOCS}
    -headerdir ${OE_QMAKE_PATH_HEADERS}
    -archdatadir ${OE_QMAKE_PATH_ARCHDATA}
    -libexecdir ${OE_QMAKE_PATH_LIBEXECS}
    -plugindir ${OE_QMAKE_PATH_PLUGINS}
    -importdir ${OE_QMAKE_PATH_IMPORTS}
    -qmldir ${OE_QMAKE_PATH_QML}
    -translationdir ${OE_QMAKE_PATH_TRANSLATIONS}
    -testsdir ${OE_QMAKE_PATH_TESTS}
    -examplesdir ${OE_QMAKE_PATH_EXAMPLES}
    -hostbindir ${OE_QMAKE_PATH_HOST_BINS}
    -hostdatadir ${OE_QMAKE_PATH_HOST_DATA}
    -external-hostbindir ${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}
    -platform ${OE_QMAKESPEC}
    -icu
    -no-cups \
    -opengl es2
    -qpa eglfs
    -xplatform linux-oe-g++
    -shared
    -silent
    -no-pch
    -no-rpath \
    -pkg-config \
    -no-xcb
    -no-sql-db2
    -no-mtdev
    -no-gtkstyle
    -nomake tests
    -system-libjpeg
    -openssl-linked
    -nomake examples
    -no-xfixes
    -no-sql-mysql
    -make tools
    -qt-pcre
    -no-iconv
    -no-xkb
    -no-xkbcommon
    -no-fontconfig
    -no-kms
    -no-sql-sqlite
    -system-libpng
    -tslib 2>&1
    -no-directfb
    -no-glib
    -freetype
    -no-sql-oci
    -no-xinerama
    -evdev
    -no-sql-sqlite2
    -no-accessibility
    -widgets
    -no-xrandr
    -no-linuxfb
    -no-libudev
    -no-xcursor
    -no-sql-psql
    -make libs
    -no-nis
    -no-openvg
    -no-xvideo
    -no-xsync
    -no-sql-tds
    -no-xshape
    -dbus
    -system-zlib
    -pulseaudio
    -no-xrender
    -no-mitshm
    -no-sm
    -no-xinput
    -no-sql-ibase
    -no-xinput2
    -no-alsa
    -no-sql-odbc
    -release @


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.