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. Cross compiling QT 5.5 with BBB.
Forum Updated to NodeBB v4.3 + New Features

Cross compiling QT 5.5 with BBB.

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 1.4k Views 1 Watching
  • 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.
  • B Offline
    B Offline
    bharat446
    wrote on last edited by
    #1

    Hi all,

    I am trying to cross compile QT 5.5 with BBB. OS Ubuntu 16.04

    this is the ./configure i have used

    ./configure -v -release -device linux-beagleboard-g++ -device-option CROSS_COMPILE=$TOOLCHAIN/home/cse/Desktop/BBB/SDK/linux-devkit/sysroots/i686-arago-linux/usr/bin/arm-linux-gnueabihf-gcc-4.7.3 -sysroot /home/cse/Desktop/BBB/SDK/Target_NFS -prefix /usr/local/qt5 -qt-xcb -qt-zlib -qt-libjpeg -qt-libpng -qt-xkbcommon -qt-freetype -qt-pcre -qt-harfbuzz -nomake examples -opengl es2

    configuration went well and i got this output

    Build options:
    Configuration .......... accessibility accessibility-atspi-bridge alsa audio-backend c++11 clock-gettime clock-monotonic compile_examples concurrent cross_compile dbus directfb enable_new_dtags evdev eventfd fontconfig full-config getaddrinfo getifaddrs glib gtk2 gtkstyle harfbuzz iconv inotify ipv6ifname large-config largefile linuxfb medium-config minimal-config mremap neon nis opengl opengles2 openssl pcre png posix_fallocate precompile_header pulseaudio qpa qpa reduce_exports release rpath shared small-config system-freetype tslib xcb xcb-plugin xcb-qt xcb-sm xcb-xlib xinput2 xkbcommon-qt xlib xrender zlib
    Build parts ............ libs
    Mode ................... release
    Using sanitizer(s)...... none
    Using C++11 ............ yes
    Using gold linker....... no
    Using new DTAGS ........ yes
    Using PCH .............. yes
    Target compiler supports:
    Neon ................. yes

    Qt modules and options:
    Qt D-Bus ............... yes (loading dbus-1 at runtime)
    Qt Concurrent .......... yes
    Qt GUI ................. yes
    Qt Widgets ............. yes
    Large File ............. yes
    QML debugging .......... yes
    Use system proxies ..... no

    Support enabled for:
    Accessibility .......... yes
    ALSA ................... yes
    CUPS ................... no
    Evdev .................. yes
    FontConfig ............. yes
    FreeType ............... yes (system library)
    Glib ................... yes
    GStreamer .............. no
    GTK theme .............. yes
    HarfBuzz ............... yes (bundled copy)
    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)
    journald ............... no
    libinput................ no
    mtdev .................. no
    Networking:
    getaddrinfo .......... yes
    getifaddrs ........... yes
    IPv6 ifname .......... yes
    libproxy.............. no
    OpenSSL .............. yes (loading libraries at run-time)
    NIS .................... yes
    OpenGL / OpenVG:
    EGL .................. no
    OpenGL ............... yes (OpenGL ES 2.0+)
    OpenVG ............... no
    PCRE ................... yes (bundled copy)
    pkg-config ............. yes
    PulseAudio ............. yes
    QPA backends:
    DirectFB ............. yes
    EGLFS ................ no
    EGLFS i.MX6....... . no
    EGLFS KMS .......... no
    EGLFS Mali ......... no
    EGLFS Raspberry Pi . no
    EGLFS X11 .......... no
    LinuxFB .............. yes
    XCB .................. yes (bundled copy)
    EGL on X ........... no
    GLX ................ no
    MIT-SHM ............ yes
    Xcb-Xlib ........... yes
    Xcursor ............ yes (loaded at runtime)
    Xfixes ............. yes (loaded at runtime)
    Xi ................. no
    Xi2 ................ yes
    Xinerama ........... yes (loaded at runtime)
    Xrandr ............. yes (loaded at runtime)
    Xrender ............ yes
    XKB ................ yes
    XShape ............. yes
    XSync .............. yes
    XVideo ............. yes
    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
    tslib .................. yes
    udev ................... no
    xkbcommon-x11........... yes (bundled copy, XKB config root: /usr/share/X11/xkb)
    xkbcommon-evdev......... no
    zlib ................... yes (bundled copy)

    NOTE: Qt is using double for qreal on this system. This is binary incompatible against Qt 5.1.
    Configure with '-qreal float' to create a build that is binary compatible with 5.1.

    Qt is now configured for building. Just run 'make'.
    Once everything is built, you must run 'make install'.
    Qt will be installed into /usr/local/qt5

    Prior to reconfiguration, make sure you remove any leftovers from
    the previous build.

    Now when i run "make" it is showing the following error

    .obj/qxcbmain.o: In function qt_plugin_instance': qxcbmain.cpp:(.text+0xc0): undefined reference to QPlatformIntegrationPlugin::QPlatformIntegrationPlugin(QObject*)'
    .obj/qxcbmain.o: In function QXcbIntegrationPlugin::qt_metacall(QMetaObject::Call, int, void**)': qxcbmain.cpp:(.text+0x180): undefined reference to QPlatformIntegrationPlugin::qt_metacall(QMetaObject::Call, int, void**)'
    .obj/qxcbmain.o: In function QXcbIntegrationPlugin::qt_metacast(char const*)': qxcbmain.cpp:(.text+0x1a6): undefined reference to QPlatformIntegrationPlugin::qt_metacast(char const*)'
    .obj/qxcbmain.o: In function QXcbIntegrationPlugin::~QXcbIntegrationPlugin()': qxcbmain.cpp:(.text._ZN21QXcbIntegrationPluginD2Ev[_ZN21QXcbIntegrationPluginD5Ev]+0xc): undefined reference to QPlatformIntegrationPlugin::~QPlatformIntegrationPlugin()'
    .obj/qxcbmain.o: In function QXcbIntegrationPlugin::~QXcbIntegrationPlugin()': qxcbmain.cpp:(.text._ZN21QXcbIntegrationPluginD0Ev[_ZN21QXcbIntegrationPluginD0Ev]+0xc): undefined reference to QPlatformIntegrationPlugin::~QPlatformIntegrationPlugin()'
    .obj/qxcbmain.o:(.data.rel.ro+0x38): undefined reference to QPlatformIntegrationPlugin::create(QString const&, QStringList const&)' .obj/qxcbmain.o:(.data.rel.ro+0x40): undefined reference to QPlatformIntegrationPlugin::staticMetaObject'
    .obj/qxcbmain.o:(.data.rel.ro+0x60): undefined reference to `typeinfo for QPlatformIntegrationPlugin'
    collect2: error: ld returned 1 exit status
    Makefile.xcb-plugin:221: recipe for target '../../../../plugins/platforms/libqxcb.so' failed
    make[5]: *** [../../../../plugins/platforms/libqxcb.so] Error 1
    make[5]: Leaving directory '/home/cse/Desktop/BBB/QT/5.5/Src/qtbase/src/plugins/platforms/xcb'
    Makefile:115: recipe for target 'sub-xcb-plugin-pro-make_first-ordered' failed
    make[4]: *** [sub-xcb-plugin-pro-make_first-ordered] Error 2
    make[4]: Leaving directory '/home/cse/Desktop/BBB/QT/5.5/Src/qtbase/src/plugins/platforms/xcb'
    Makefile:96: recipe for target 'sub-xcb-make_first' failed
    make[3]: *** [sub-xcb-make_first] Error 2
    make[3]: Leaving directory '/home/cse/Desktop/BBB/QT/5.5/Src/qtbase/src/plugins/platforms'
    Makefile:125: recipe for target 'sub-platforms-make_first' failed
    make[2]: *** [sub-platforms-make_first] Error 2
    make[2]: Leaving directory '/home/cse/Desktop/BBB/QT/5.5/Src/qtbase/src/plugins'
    Makefile:694: recipe for target 'sub-plugins-make_first' failed
    make[1]: *** [sub-plugins-make_first] Error 2
    make[1]: Leaving directory '/home/cse/Desktop/BBB/QT/5.5/Src/qtbase/src'
    Makefile:45: recipe for target 'sub-src-make_first' failed
    make: *** [sub-src-make_first] Error 2

    how to get rid of this error?

    D 1 Reply Last reply
    0
    • B bharat446

      Hi all,

      I am trying to cross compile QT 5.5 with BBB. OS Ubuntu 16.04

      this is the ./configure i have used

      ./configure -v -release -device linux-beagleboard-g++ -device-option CROSS_COMPILE=$TOOLCHAIN/home/cse/Desktop/BBB/SDK/linux-devkit/sysroots/i686-arago-linux/usr/bin/arm-linux-gnueabihf-gcc-4.7.3 -sysroot /home/cse/Desktop/BBB/SDK/Target_NFS -prefix /usr/local/qt5 -qt-xcb -qt-zlib -qt-libjpeg -qt-libpng -qt-xkbcommon -qt-freetype -qt-pcre -qt-harfbuzz -nomake examples -opengl es2

      configuration went well and i got this output

      Build options:
      Configuration .......... accessibility accessibility-atspi-bridge alsa audio-backend c++11 clock-gettime clock-monotonic compile_examples concurrent cross_compile dbus directfb enable_new_dtags evdev eventfd fontconfig full-config getaddrinfo getifaddrs glib gtk2 gtkstyle harfbuzz iconv inotify ipv6ifname large-config largefile linuxfb medium-config minimal-config mremap neon nis opengl opengles2 openssl pcre png posix_fallocate precompile_header pulseaudio qpa qpa reduce_exports release rpath shared small-config system-freetype tslib xcb xcb-plugin xcb-qt xcb-sm xcb-xlib xinput2 xkbcommon-qt xlib xrender zlib
      Build parts ............ libs
      Mode ................... release
      Using sanitizer(s)...... none
      Using C++11 ............ yes
      Using gold linker....... no
      Using new DTAGS ........ yes
      Using PCH .............. yes
      Target compiler supports:
      Neon ................. yes

      Qt modules and options:
      Qt D-Bus ............... yes (loading dbus-1 at runtime)
      Qt Concurrent .......... yes
      Qt GUI ................. yes
      Qt Widgets ............. yes
      Large File ............. yes
      QML debugging .......... yes
      Use system proxies ..... no

      Support enabled for:
      Accessibility .......... yes
      ALSA ................... yes
      CUPS ................... no
      Evdev .................. yes
      FontConfig ............. yes
      FreeType ............... yes (system library)
      Glib ................... yes
      GStreamer .............. no
      GTK theme .............. yes
      HarfBuzz ............... yes (bundled copy)
      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)
      journald ............... no
      libinput................ no
      mtdev .................. no
      Networking:
      getaddrinfo .......... yes
      getifaddrs ........... yes
      IPv6 ifname .......... yes
      libproxy.............. no
      OpenSSL .............. yes (loading libraries at run-time)
      NIS .................... yes
      OpenGL / OpenVG:
      EGL .................. no
      OpenGL ............... yes (OpenGL ES 2.0+)
      OpenVG ............... no
      PCRE ................... yes (bundled copy)
      pkg-config ............. yes
      PulseAudio ............. yes
      QPA backends:
      DirectFB ............. yes
      EGLFS ................ no
      EGLFS i.MX6....... . no
      EGLFS KMS .......... no
      EGLFS Mali ......... no
      EGLFS Raspberry Pi . no
      EGLFS X11 .......... no
      LinuxFB .............. yes
      XCB .................. yes (bundled copy)
      EGL on X ........... no
      GLX ................ no
      MIT-SHM ............ yes
      Xcb-Xlib ........... yes
      Xcursor ............ yes (loaded at runtime)
      Xfixes ............. yes (loaded at runtime)
      Xi ................. no
      Xi2 ................ yes
      Xinerama ........... yes (loaded at runtime)
      Xrandr ............. yes (loaded at runtime)
      Xrender ............ yes
      XKB ................ yes
      XShape ............. yes
      XSync .............. yes
      XVideo ............. yes
      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
      tslib .................. yes
      udev ................... no
      xkbcommon-x11........... yes (bundled copy, XKB config root: /usr/share/X11/xkb)
      xkbcommon-evdev......... no
      zlib ................... yes (bundled copy)

      NOTE: Qt is using double for qreal on this system. This is binary incompatible against Qt 5.1.
      Configure with '-qreal float' to create a build that is binary compatible with 5.1.

      Qt is now configured for building. Just run 'make'.
      Once everything is built, you must run 'make install'.
      Qt will be installed into /usr/local/qt5

      Prior to reconfiguration, make sure you remove any leftovers from
      the previous build.

      Now when i run "make" it is showing the following error

      .obj/qxcbmain.o: In function qt_plugin_instance': qxcbmain.cpp:(.text+0xc0): undefined reference to QPlatformIntegrationPlugin::QPlatformIntegrationPlugin(QObject*)'
      .obj/qxcbmain.o: In function QXcbIntegrationPlugin::qt_metacall(QMetaObject::Call, int, void**)': qxcbmain.cpp:(.text+0x180): undefined reference to QPlatformIntegrationPlugin::qt_metacall(QMetaObject::Call, int, void**)'
      .obj/qxcbmain.o: In function QXcbIntegrationPlugin::qt_metacast(char const*)': qxcbmain.cpp:(.text+0x1a6): undefined reference to QPlatformIntegrationPlugin::qt_metacast(char const*)'
      .obj/qxcbmain.o: In function QXcbIntegrationPlugin::~QXcbIntegrationPlugin()': qxcbmain.cpp:(.text._ZN21QXcbIntegrationPluginD2Ev[_ZN21QXcbIntegrationPluginD5Ev]+0xc): undefined reference to QPlatformIntegrationPlugin::~QPlatformIntegrationPlugin()'
      .obj/qxcbmain.o: In function QXcbIntegrationPlugin::~QXcbIntegrationPlugin()': qxcbmain.cpp:(.text._ZN21QXcbIntegrationPluginD0Ev[_ZN21QXcbIntegrationPluginD0Ev]+0xc): undefined reference to QPlatformIntegrationPlugin::~QPlatformIntegrationPlugin()'
      .obj/qxcbmain.o:(.data.rel.ro+0x38): undefined reference to QPlatformIntegrationPlugin::create(QString const&, QStringList const&)' .obj/qxcbmain.o:(.data.rel.ro+0x40): undefined reference to QPlatformIntegrationPlugin::staticMetaObject'
      .obj/qxcbmain.o:(.data.rel.ro+0x60): undefined reference to `typeinfo for QPlatformIntegrationPlugin'
      collect2: error: ld returned 1 exit status
      Makefile.xcb-plugin:221: recipe for target '../../../../plugins/platforms/libqxcb.so' failed
      make[5]: *** [../../../../plugins/platforms/libqxcb.so] Error 1
      make[5]: Leaving directory '/home/cse/Desktop/BBB/QT/5.5/Src/qtbase/src/plugins/platforms/xcb'
      Makefile:115: recipe for target 'sub-xcb-plugin-pro-make_first-ordered' failed
      make[4]: *** [sub-xcb-plugin-pro-make_first-ordered] Error 2
      make[4]: Leaving directory '/home/cse/Desktop/BBB/QT/5.5/Src/qtbase/src/plugins/platforms/xcb'
      Makefile:96: recipe for target 'sub-xcb-make_first' failed
      make[3]: *** [sub-xcb-make_first] Error 2
      make[3]: Leaving directory '/home/cse/Desktop/BBB/QT/5.5/Src/qtbase/src/plugins/platforms'
      Makefile:125: recipe for target 'sub-platforms-make_first' failed
      make[2]: *** [sub-platforms-make_first] Error 2
      make[2]: Leaving directory '/home/cse/Desktop/BBB/QT/5.5/Src/qtbase/src/plugins'
      Makefile:694: recipe for target 'sub-plugins-make_first' failed
      make[1]: *** [sub-plugins-make_first] Error 2
      make[1]: Leaving directory '/home/cse/Desktop/BBB/QT/5.5/Src/qtbase/src'
      Makefile:45: recipe for target 'sub-src-make_first' failed
      make: *** [sub-src-make_first] Error 2

      how to get rid of this error?

      D Offline
      D Offline
      Dang Vu
      wrote on last edited by
      #2
      This post is deleted!
      B 1 Reply Last reply
      0
      • D Dang Vu

        This post is deleted!

        B Offline
        B Offline
        bharat446
        wrote on last edited by
        #3

        @Dang-Vu I have not understood what you were trying to say, but the link you have provided is pretty useful. Thank you for the link.

        Bharadwaj

        D 1 Reply Last reply
        0
        • B bharat446

          @Dang-Vu I have not understood what you were trying to say, but the link you have provided is pretty useful. Thank you for the link.

          Bharadwaj

          D Offline
          D Offline
          Dang Vu
          wrote on last edited by
          #4

          @bharat446 you was successed?

          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