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. How to debug on a embedded system with native compiled QT with EGLFS and no X11 ?
Forum Updated to NodeBB v4.3 + New Features

How to debug on a embedded system with native compiled QT with EGLFS and no X11 ?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 1.3k 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.
  • M Offline
    M Offline
    Markus Ippy
    wrote on last edited by
    #1

    I have compiled QT5.8 with EGLFS on raspberry pi2 with raspbian stretch .

    My QT application that i programmed works properly in Windows 10 and Ubuntu 17.4
    On my Raspberry Pi i get however a segmentation fault error .
    In my program i have a page loader which loads some QML's .
    The error seems to occur only if i load a QML which includes QtGraphicalEffects 1.0 ( Qtgraphical effects 1.0 is installedon the pi)
    Now my question would be how can i use the debugger for my project in command line ( since linux is installed without X11 due to EGLFS and QT is Native compiled ). I tried to google for it but could not find the correct commandline commands to debug my code on the system.

    jsulmJ 1 Reply Last reply
    0
    • M Markus Ippy

      I have compiled QT5.8 with EGLFS on raspberry pi2 with raspbian stretch .

      My QT application that i programmed works properly in Windows 10 and Ubuntu 17.4
      On my Raspberry Pi i get however a segmentation fault error .
      In my program i have a page loader which loads some QML's .
      The error seems to occur only if i load a QML which includes QtGraphicalEffects 1.0 ( Qtgraphical effects 1.0 is installedon the pi)
      Now my question would be how can i use the debugger for my project in command line ( since linux is installed without X11 due to EGLFS and QT is Native compiled ). I tried to google for it but could not find the correct commandline commands to debug my code on the system.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Markus-Ippy If you want to use gdb on the target device then see: https://www.tutorialspoint.com/gnu_debugger/installing_gdb.htm

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply
      1
      • jsulmJ jsulm

        @Markus-Ippy If you want to use gdb on the target device then see: https://www.tutorialspoint.com/gnu_debugger/installing_gdb.htm

        M Offline
        M Offline
        Markus Ippy
        wrote on last edited by
        #3

        @jsulm

        Thank you i have set up gdb now on my raspberry pi image , i am just unsure how to proceed now .

        currently i build my release in a shadow directory like this

        cd /myinstallfolder
        qmake /pathtomysource/myproject.pro
        make

        What parameters do i have to pass to qmake to make a debug build in commandline and see the debug out ?

        Would this be correct ?
        qmake -debug /pathtomysource/myproject.pro
        make

        Sorry for the noob question , but i have only worked with qtcreator and there its really simple to debug code .

        jsulmJ 1 Reply Last reply
        1
        • M Markus Ippy

          @jsulm

          Thank you i have set up gdb now on my raspberry pi image , i am just unsure how to proceed now .

          currently i build my release in a shadow directory like this

          cd /myinstallfolder
          qmake /pathtomysource/myproject.pro
          make

          What parameters do i have to pass to qmake to make a debug build in commandline and see the debug out ?

          Would this be correct ?
          qmake -debug /pathtomysource/myproject.pro
          make

          Sorry for the noob question , but i have only worked with qtcreator and there its really simple to debug code .

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Markus-Ippy

          qmake CONFIG+=debug ...
          

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          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