Qt Forum

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

    Unsolved Qt on MarsBoard, Cross compile error, Socket can fd

    Mobile and Embedded
    qt 5.8 serialbus socket can fd cross compile socketcan
    3
    3
    953
    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.
    • S
      Saman19 last edited by

      Hello.
      I want to cross compile Qt for marsboard. after install required library on my board, I start compile Qt with qt-everywhere-opensource-src-5.8.0.

      by this command configure the Qt:
      ./configure -release -opengl es2 -ssl -device MarsBoard -device-option CROSS_COMPILE=/home/saman/QtonMars/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabihf- -sysroot /home/saman/QtonMars/sysroot -opensource -confirm-license -make libs -xcb -prefix /usr/local/qt5mars -v -no-use-gold-linker -openssl-linked -skip qtwayland

      Config summery:

      Configure summary:

      Building on: x86_64
      Building for: arm
      Configuration: cross_compile compile_examples enable_new_dtags largefile neon precompile_header shared rpath accessibility release c++11 concurrent dbus mremap reduce_exports stl
      Build options:
      Mode ................................... release
      Building shared libraries .............. yes
      Using C++ standard ..................... C++11
      Using gold linker ...................... no
      Using new DTAGS ........................ yes
      Using precompiled headers .............. yes
      Using LTCG ............................. no
      Target compiler supports:
      NEON ................................. yes
      Build parts ............................ libs
      Qt modules and options:
      Qt Concurrent .......................... yes
      Qt D-Bus ............................... yes
      Qt D-Bus directly linked to libdbus .... yes
      Qt Gui ................................. yes
      Qt Widgets ............................. yes
      Support enabled for:
      Accessibility .......................... yes
      Using pkg-config ....................... yes
      QML debugging .......................... yes
      udev ................................... yes
      Using system zlib ...................... yes
      Qt Core:
      DoubleConversion ....................... yes
      Using system DoubleConversion ........ no
      GLib ................................... yes
      iconv .................................. no
      ICU .................................... yes
      Logging backends:
      journald ............................. no
      syslog ............................... no
      Using system PCRE ...................... no
      Qt Network:
      getaddrinfo() .......................... yes
      getifaddrs() ........................... yes
      IPv6 ifname ............................ yes
      libproxy ............................... no
      OpenSSL ................................ yes
      Qt directly linked to OpenSSL ........ yes
      SCTP ................................... no
      Use system proxies ..................... yes
      Qt Sql:
      DB2 (IBM) .............................. no
      InterBase .............................. no
      MySql .................................. no
      OCI (Oracle) ........................... no
      ODBC ................................... yes
      PostgreSQL ............................. no
      SQLite2 ................................ yes
      SQLite ................................. yes
      Using system provided SQLite ......... no
      TDS (Sybase) ........................... yes
      Qt Gui:
      FreeType ............................... yes
      Using system FreeType ................ yes
      HarfBuzz ............................... yes
      Using system HarfBuzz ................ no
      Fontconfig ............................. yes
      Image formats:
      GIF .................................. yes
      ICO .................................. yes
      JPEG ................................. yes
      Using system libjpeg ............... yes
      PNG .................................. yes
      Using system libpng ................ yes
      OpenGL:
      EGL .................................. yes
      Desktop OpenGL ....................... no
      OpenGL ES 2.0 ........................ yes
      OpenGL ES 3.0 ........................ no
      OpenGL ES 3.1 ........................ no
      Session Management ..................... yes
      Features used by QPA backends:
      evdev .................................. yes
      libinput ............................... no
      mtdev .................................. yes
      tslib .................................. yes
      xkbcommon-evdev ........................ no
      QPA backends:
      DirectFB ............................... no
      EGLFS .................................. yes
      EGLFS details:
      EGLFS i.Mx6 .......................... no
      EGLFS i.Mx6 Wayland .................. no
      EGLFS EGLDevice ...................... no
      EGLFS GBM ............................ no
      EGLFS Mali ........................... no
      EGLFS Rasberry Pi .................... no
      EGL on X11 ........................... yes
      LinuxFB ................................ yes
      Mir client ............................. no
      X11:
      Using system provided XCB libraries .. yes
      EGL on X11 ........................... yes
      Xinput2 .............................. yes
      XCB XKB .............................. no
      XLib ................................. yes
      Xrender .............................. yes
      XCB render ........................... yes
      XCB GLX .............................. yes
      XCB Xlib ............................. yes
      Using system-provided xkbcommon ...... no
      Qt Widgets:
      GTK+ ................................... no
      Styles ................................. Fusion Windows
      Qt PrintSupport:
      CUPS ................................... yes
      Qt SerialBus:
      Socket CAN ............................. yes
      Socket CAN FD .......................... no
      QtXmlPatterns:
      XML schema support ..................... yes
      Qt QML:
      QML interpreter ........................ yes
      QML network support .................... yes
      Qt Quick:
      Direct3D 12 ............................ no
      AnimatedImage item ..................... yes
      Canvas item ............................ yes
      Support for Quick Designer ............. yes
      Flipable item .......................... yes
      GridView item .......................... yes
      ListView item .......................... yes
      Path support ........................... yes
      PathView item .......................... yes
      Positioner items ....................... yes
      ShaderEffect item ...................... yes
      Sprite item ............................ yes
      Qt Gamepad:
      SDL2 ................................... no
      Qt 3D:
      System Assimp .......................... no
      Qt Bluetooth:
      BlueZ .................................. yes
      BlueZ Low Energy ....................... no
      Linux Crypto API ....................... no
      Qt Multimedia:
      ALSA ................................... yes
      GStreamer 1.0 .......................... no
      GStreamer 0.10 ......................... yes
      Video for Linux ........................ yes
      OpenAL ................................. no
      PulseAudio ............................. yes
      Resource Policy (libresourceqt5) ....... no
      DirectShow ............................. no
      Windows Media Foundation ............... no
      Qt Location:
      Gypsy GPS Daemon ....................... no
      WinRT Geolocation API .................. no
      Qt Sensors:
      sensorfw ............................... no
      Qt WebEngine:
      Proprietary Codecs ..................... no
      Spellchecker ........................... yes
      ALSA ................................... yes
      PulseAudio ............................. yes

      Note: PKG_CONFIG_LIBDIR automatically set to /home/saman/QtonMars/sysroot/usr/lib/pkgconfig:/home/saman/QtonMars/sysroot/usr/share/pkgconfig:/home/saman/QtonMars/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig

      Note: PKG_CONFIG_SYSROOT_DIR automatically set to /home/saman/QtonMars/sysroot

      Note: Dropped compiler flags '-pthread' when detecting library 'glib'.

      Note: When linking against OpenSSL, you can override the default
      library names through OPENSSL_LIBS.
      For example:
      OPENSSL_LIBS='-L/opt/ssl/lib -lssl -lcrypto' ./configure -openssl-linked

      Note: QtSerialBus: Newer kernel needed for flexible data-rate frame support (canfd_frame).

      Note: Bluez version is too old to support Bluetooth Low Energy.
      Only classic Bluetooth will be available.

      Note: Dropped compiler flags '-pthread' when detecting library 'gstreamer'.

      Note: Dropped compiler flags '-pthread' when detecting library 'gstreamer_app'.

      Platform notes:

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

      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/qt5mars

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

      My problem is with this line :

      Note: QtSerialBus: Newer kernel needed for flexible data-rate frame support (canfd_frame).

      also config.log of my configureation is attached in this post!
      [0_1529477310817_config.log](Uploading 100%)

      How can solve this problem?
      please help me.

      aha_1980 1 Reply Last reply Reply Quote 0
      • aha_1980
        aha_1980 Lifetime Qt Champion @Saman19 last edited by

        hi @Saman19

        do you want to use CAN FD? if not simply ignore this note.

        otherwise you need a newer Linux Kernel, as this message states.

        Qt has to stay free or it will die.

        1 Reply Last reply Reply Quote 2
        • Cleiton Bueno
          Cleiton Bueno last edited by

          @Saman19 said in Qt on MarsBoard, Cross compile error, Socket can fd:

          Note: QtSerialBus: Newer kernel needed for flexible data-rate frame support (canfd_frame).

          It does not seem to me a problem but an informative note.

          If you do not use CAN, check:

          1. Is Kernel Network CAN enabled? Something like:
          Networking support --->
               <M> CAN bus subsystem support --->
                   --- CAN bus subsystem support
                   <M> Raw CAN Protocol (raw access with CAN-ID filtering)
                   <M> Broadcast Manager CAN Protocol (with content filtering)
                         CAN Device Drivers --->
                             <M> Virtual Local CAN Interface (vcan)
                             <M> Platform CAN drivers with Netlink support
          
          

          Mandatory, because under the kernel is the SocketCAN that handles this.

          1. Install the can-utils package

          2. It is necessary to include / install QtSerialPort, not for CAN but for ModBus that is part of QtSerialBus.


          Cleiton Bueno

          Blog | Linkedin | B2Open

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