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. Need help on Cross compiling Qt 5.2 on UDOO board
QtWS25 Last Chance

Need help on Cross compiling Qt 5.2 on UDOO board

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 2.7k 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
    davidhuang
    wrote on last edited by
    #1

    Hi guys,
    Does anyone know what it is the problem?

    Here is my building environment.

    Host:

    1. Ubontu 13.10 64-bit
    2. install ia32-libs
    3. toolchain: https://github.com/embest-tech/fsl-linaro-toolchain.git
    4. Qt5: git clone git://gitorious.org/qt/qt5.git qt5
    5. Qt3d: git clone git://gitorious.org/qt/qt3d.git qt3d
    6. Edit qmake.conf
      $ gedit qtbase/mkspecs/devices/linux-imx6-g++/qmake.conf
      QMAKE_INCDIR += $$[QT_SYSROOT]/usr/include $$[QT_SYSROOT]/usr/include/arm-linux-gnueabihf
      QMAKE_LFLAGS += -Wl,-rpath-link,$$[QT_SYSROOT]/usr/lib -Wl,-rpath-link,$$[QT_SYSROOT]/usr/lib/arm-linux-gnueabihf
    7. ./configure -prefix /opt/qt5_udoo -make libs -no-pch -no-opengl -device imx6 -device-option CROSS_COMPILE=~/qt5udoo/arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi- -no-largefile -opengl es2 -qt-zlib -qt-libpng -qt-libjpeg -no-nis -no-cups -gui -make examples -sysroot /mnt/udoo_debian -no-gcc-sysroot -opensource -confirm-license -qreal float -v

    Target:
    UDOO with image udoo_quad_debian_wheezy_armhf_v1.0beta.img

    Before make command:
    sudo mount -o loop,offset=8225280 ~/qt5udoo/udoo_quad_debian_wheezy_armhf_v1.0beta.img /mnt/udoo_debian

    ** /mnt/udoo_debian = $[QT_SYSROOT]

    EGL uses framebuffer backend:
    $ cd /mnt/udoo_debian/usr/lib
    $ sudo rm libEGL.so
    $ sudo rm libEGL.so.1
    $ sudo rm libGAL.so
    $ sudo ln -s libEGL-fb.so libEGL.so
    $ sudo ln -s libEGL-fb.so libEGL.so.1
    $ sudo ln -s libGAL-fb.so libGAL.so

    Configure summary

    Building on: linux-g++ (x86_64, CPU features: mmx sse sse2)
    Building for: devices/linux-imx6-g++ (arm, CPU features: neon)
    Platform notes:

    • Also available for Linux: linux-kcc linux-icc linux-cxx

    qmake vars .......... styles += mac fusion windows DEFINES += QT_NO_MTDEV DEFINES += QT_NO_LIBUDEV DEFINES += QT_NO_XCB DEFINES += QT_NO_XKBCOMMON sql-drivers = sql-plugins = sqlite qmake switches .........

    Build options:
    Configuration .......... accessibility audio-backend c++11 clock-gettime clock-monotonic compile_examples concurrent cross_compile egl eglfs evdev eventfd freetype full-config getaddrinfo getifaddrs iconv inotify ipv6ifname large-config linuxfb medium-config minimal-config mremap neon no-harfbuzz opengl opengles2 openvg pcre png posix_fallocate qpa qpa reduce_exports reduce_relocations release rpath shared small-config zlib

    Build parts ............ libs examples
    Mode ................... release
    Using C++11 ............ yes
    Using PCH .............. no

    Target compiler supports:
    iWMMXt/Neon .......... no/yes

    Qt modules and options:
    Qt D-Bus ............... no
    Qt Concurrent .......... yes
    Qt GUI ................. yes
    Qt Widgets ............. yes
    JavaScriptCore JIT ..... yes (To be decided by JavaScriptCore)
    QML debugging .......... yes
    Use system proxies ..... no

    Support enabled for:
    Accessibility .......... yes
    ALSA ................... no
    CUPS ................... no
    FontConfig ............. no
    FreeType ............... yes
    Iconv .................. yes
    ICU .................... no

    Image formats:
    GIF .................. yes (plugin, using bundled copy)
    JPEG ................. yes (plugin, using bundled copy)
    PNG .................. yes (in QtGui, using bundled copy)
    Glib ................... no
    GTK theme .............. no
    Large File ............. no
    mtdev .................. no

    Networking:
    getaddrinfo .......... yes
    getifaddrs ........... yes
    IPv6 ifname .......... yes
    OpenSSL .............. no
    NIS .................... no
    OpenGL ................. yes (OpenGL ES 2.x)
    OpenVG ................. yes-auto
    PCRE ................... yes (bundled copy)
    pkg-config ............. yes
    PulseAudio ............. no

    QPA backends:
    DirectFB ............. no
    EGLFS ................ yes
    KMS .................. no
    LinuxFB .............. yes
    XCB .................. no
    Session management ..... yes

    SQL drivers:
    DB2 .................. no
    InterBase ............ no
    MySQL ................ no
    OCI .................. no
    ODBC ................. no
    PostgreSQL ........... no
    SQLite 2 ............. no
    SQLite ............... yes (plugin, using bundled copy)
    TDS .................. no
    udev ................... no
    xkbcommon .............. no
    zlib ................... yes (bundled copy)


    after "make" command, stop here

    qsgvivantevideomaterial.cpp: In destructor 'virtual QSGVivanteVideoMaterial::~QSGVivanteVideoMaterial()':
    qsgvivantevideomaterial.cpp:70: error: expected initializer before ':' token
    qsgvivantevideomaterial.cpp:76: error: expected primary-expression before '}' token
    qsgvivantevideomaterial.cpp:76: error: expected ';' before '}' token
    qsgvivantevideomaterial.cpp:76: error: expected primary-expression before '}' token
    qsgvivantevideomaterial.cpp:76: error: expected ')' before '}' token
    qsgvivantevideomaterial.cpp:76: error: expected primary-expression before '}' token
    qsgvivantevideomaterial.cpp:76: error: expected ';' before '}' token

    1 Reply Last reply
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      Hi davidhuang,

      first of all welcome to the DevNet forums.

      Please start new threads to ask your questions if the subject is not completely related. Thanks,

      Qt Certified Specialist
      www.edalsolutions.be

      1 Reply Last reply
      0
      • D Offline
        D Offline
        davidhuang
        wrote on last edited by
        #3

        Hi Eddy,
        Yes. Thanks for reminding.

        [quote author="Eddy" date="1396858064"]Hi davidhuang,

        first of all welcome to the DevNet forums.

        Please start new threads to ask your questions if the subject is not completely related. Thanks,[/quote]

        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