Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Forum Updated on Feb 6th

    Build Qt5 on imx6 card (udoo quad)

    Installation and Deployment
    imx6 build cross compile opengl
    1
    1
    1719
    Loading More Posts
    • 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.
    • M
      modjo756 last edited by modjo756

      Hi i'm trying to compile qt5.5 on a udoo quad (imx6 quad processor). To do that i followed the tutorial for raspberry. After install all the dependencies necessary (i think ) **i make a configure : **
      *./configure -v -no-pch -no-opengl -opengl es2 -tslib -force-pkg-config -device linux-imx6-g++ -device-option CROSS_COMPILE=/usr/bin/ -opensource -confirm-license -optimized-qmake -reduce-exports -release -qt-pcre -make libs *

      I obtained this :

      *Build options:
      Configuration .......... accessibility accessibility-atspi-bridge alsa audio-backend c++11 clock-gettime clock-monotonic compile_examples concurrent cross_compile cups dbus egl eglfs enable_new_dtags evdev eventfd fontconfig full-config getaddrinfo getifaddrs glib gstreamer-0.10 harfbuzz iconv icu inotify ipv6ifname large-config largefile libudev linuxfb medium-config minimal-config mremap mtdev neon nis opengl opengles2 openssl openvg pcre png posix_fallocate pulseaudio qpa qpa reduce_exports release rpath shared small-config system-freetype system-jpeg system-png system-zlib tslib use_gold_linker xcb xcb-glx xcb-plugin xcb-render xcb-xlib xinput2 xkbcommon-qt xlib xrender
      Build parts ............ libs
      Mode ................... release
      Using sanitizer(s)...... none
      Using C++11 ............ yes
      Using gold linker....... yes
      Using new DTAGS ........ yes
      Using PCH .............. no
      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 ................... yes
      Evdev .................. yes
      FontConfig ............. yes
      FreeType ............... yes (system library)
      Glib ................... yes
      GStreamer .............. yes (0.10)
      GTK theme .............. no
      HarfBuzz ............... yes (bundled copy)
      Iconv .................. yes
      ICU .................... yes
      Image formats:
      GIF .................. yes (plugin, using bundled copy)
      JPEG ................. yes (plugin, using system library)
      PNG .................. yes (in QtGui, using system library)
      journald ............... no
      libinput................ no
      mtdev .................. yes (system library)
      Networking:
      getaddrinfo .......... yes
      getifaddrs ........... yes
      IPv6 ifname .......... yes
      libproxy.............. no
      OpenSSL .............. yes (loading libraries at run-time)
      NIS .................... yes
      OpenGL / OpenVG:
      EGL .................. yes
      OpenGL ............... yes (OpenGL ES 2.0+)
      OpenVG ............... yes-auto
      PCRE ................... yes (bundled copy)
      pkg-config ............. yes
      PulseAudio ............. yes
      QPA backends:
      DirectFB ............. no
      EGLFS ................ yes
      EGLFS i.MX6....... . no
      EGLFS KMS .......... no
      EGLFS Mali ......... no
      EGLFS Raspberry Pi . no
      EGLFS X11 .......... no
      LinuxFB .............. yes
      XCB .................. yes (system library)
      EGL on X ........... no
      GLX ................ yes
      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 ................ no
      XShape ............. yes
      XSync .............. yes
      XVideo ............. yes
      Session management ..... yes
      SQL drivers:
      DB2 .................. no
      InterBase ............ no
      MySQL ................ yes (plugin)
      OCI .................. no
      ODBC ................. yes (plugin)
      PostgreSQL ........... yes (plugin)
      SQLite 2 ............. yes (plugin)
      SQLite ............... yes (plugin, using bundled copy)
      TDS .................. yes (plugin)
      tslib .................. yes
      udev ................... yes
      xkbcommon-x11........... yes (bundled copy, XKB config root: /usr/share/X11/xkb)
      xkbcommon-evdev......... no
      zlib ................... yes (system library)
      *

      for information i use this qmake.conf (qtbase/mkspecs/devices/linux-imx6-g++) :
      *#

      qmake configuration for the Freescale iMX6 boards (single, dual and quad)

      include(../common/linux_device_pre.conf)

      QMAKE_INCDIR += $$/usr/include $$/usr/include/vivante
      QMAKE_LIBDIR += $$/usr/lib/arm-linux-gnueabihf/vivante $$/usr/lib/arm-linux-gnueabihf/vivante/x11

      QMAKE_INCDIR_OPENGL_ES2 += /usr/include/vivante/GLES2
      QMAKE_LIBDIR_OPENGL_ES2 +=/usr/lib/arm-linux-gnueabihf/vivante

      QMAKE_LFLAGS += -Wl,-rpath-link,$$/usr/lib/arm-linux-gnueabihf/vivante

      QMAKE_LIBS_EGL += -lEGL
      QMAKE_LIBS_OPENGL_ES2 += -lGLESv2 -lEGL -lGAL
      QMAKE_LIBS_OPENVG += -lOpenVG -lEGL -lGAL

      IMX6_CFLAGS = -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1
      QMAKE_CFLAGS += $$IMX6_CFLAGS
      QMAKE_CXXFLAGS += $$IMX6_CFLAGS

      DISTRO_OPTS += hard-float

      Preferred eglfs backend

      EGLFS_DEVICE_INTEGRATION = eglfs_viv

      include(../common/linux_arm_device_post.conf)

      load(qt_config)*

      That is strange in my log is that i don't have eglfs for imx6 !!!

      After that i launched a make-j3 and after many minutes i obtained this error :

      *-I/usr/include animation/qabstractanimation.h -o .moc/moc_qabstractanimation.cpp
      usr/include/c++/4.8/bits/stl_relops.:67: Parse error at "std"
      make[3]: *** [.moc/moc_qabstractanimation.cpp] Error 1
      *

      I tried to find a solution, i found this thread :
      error

      If i understand this error is corrected since qt 5.4.2, do you know why i have this ?

      For information, i followed the same procedure for a raspberrypi 2 and i didn't have any problem !

      1 Reply Last reply Reply Quote 0
      • First post
        Last post