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. Qt5.6.3 examples not being run with LinuxFB and evdev
Forum Updated to NodeBB v4.3 + New Features

Qt5.6.3 examples not being run with LinuxFB and evdev

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 2 Posters 701 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.
  • R Offline
    R Offline
    Ramakanth
    wrote on 6 Jul 2020, 11:33 last edited by
    #1

    Hi,

    I am unable to run a few QtWidget examples by setting the PATH as it throws below error:

    export PATH=/home/target/ti-processor-sdk-linux-rt-am335x-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/local/Qt-5.6.3/bin:$PATH

    qtbase/examples/widgets/animation/animatedtiles:-
    root@target:~/widgetapps# ./animatedtiles -platform linuxfb -plugin evdevtouch
    ./animatedtiles: relocation error: ./animatedtiles: symbol _ZN14QGraphicsSceneC1EffffP7QObject, version Qt_5 not defined in file libQt5Widgets.so.5 with link time reference

    qtbase/examples/widgets/scroller/graphicsview:
    root@target:~/widgetapps# ./graphicsview -platform linuxfb -plugin evdevtouch
    ./graphicsview: relocation error: ./graphicsview: symbol _ZN4QPenC1ERK6QBrushfN2Qt8PenStyleENS3_11PenCapStyleENS3_12PenJoinStyleE, version Qt_5 not defined in file libQt5Gui.so.5 with link time reference

    qtbase/examples/widgets/gestures/imagegestures:-
    root@target:~/widgetapps# ./imagegestures -platform linuxfb -plugin evdevtouch
    ./imagegestures: relocation error: ./imagegestures: symbol _ZN8QPainter6rotateEf, version Qt_5 not defined in file libQt5Gui.so.5 with link time reference

    cross compiled Qt gcc version: 7.2.1
    Target gcc version: 7.3.0

    Do I need to set LD_LIBRRAY_PATH explicitly as a few examples are being run successfully without setting the same? Any suggestions are appreciated.

    The above examples use evdev configuration by default but not tslib.
    Is tslib preferred over evdev for Qt 5.6.3 use? If so, why is that?

    Best Regards,
    Ramakanth

    J 1 Reply Last reply 6 Jul 2020, 11:40
    0
    • R Ramakanth
      6 Jul 2020, 11:33

      Hi,

      I am unable to run a few QtWidget examples by setting the PATH as it throws below error:

      export PATH=/home/target/ti-processor-sdk-linux-rt-am335x-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/local/Qt-5.6.3/bin:$PATH

      qtbase/examples/widgets/animation/animatedtiles:-
      root@target:~/widgetapps# ./animatedtiles -platform linuxfb -plugin evdevtouch
      ./animatedtiles: relocation error: ./animatedtiles: symbol _ZN14QGraphicsSceneC1EffffP7QObject, version Qt_5 not defined in file libQt5Widgets.so.5 with link time reference

      qtbase/examples/widgets/scroller/graphicsview:
      root@target:~/widgetapps# ./graphicsview -platform linuxfb -plugin evdevtouch
      ./graphicsview: relocation error: ./graphicsview: symbol _ZN4QPenC1ERK6QBrushfN2Qt8PenStyleENS3_11PenCapStyleENS3_12PenJoinStyleE, version Qt_5 not defined in file libQt5Gui.so.5 with link time reference

      qtbase/examples/widgets/gestures/imagegestures:-
      root@target:~/widgetapps# ./imagegestures -platform linuxfb -plugin evdevtouch
      ./imagegestures: relocation error: ./imagegestures: symbol _ZN8QPainter6rotateEf, version Qt_5 not defined in file libQt5Gui.so.5 with link time reference

      cross compiled Qt gcc version: 7.2.1
      Target gcc version: 7.3.0

      Do I need to set LD_LIBRRAY_PATH explicitly as a few examples are being run successfully without setting the same? Any suggestions are appreciated.

      The above examples use evdev configuration by default but not tslib.
      Is tslib preferred over evdev for Qt 5.6.3 use? If so, why is that?

      Best Regards,
      Ramakanth

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 6 Jul 2020, 11:40 last edited by
      #2

      @Ramakanth said in Qt5.6.3 examples not being run with LinuxFB and evdev:

      Do I need to set LD_LIBRRAY_PATH

      Yes, there is no need to set PATH. You clearly have more than one Qt version and the wrong one is used.
      You can easily check which libs are in use doing:

      ldd animatedtiles
      

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

      1 Reply Last reply
      2
      • R Offline
        R Offline
        Ramakanth
        wrote on 7 Jul 2020, 13:18 last edited by
        #3

        ldd animated tiles throws the output not a dynamic executable. Qt library being used to generate executable of the example program is configured with C++14.

        Do we need to add CONFIG+=c++14 and QMAKE_CXXFLAGS += "-fno-sized-deallocation" to resolve the error?
        All these relocation symbol errors are anything due to mismatch in Qt versions available on target and example program being compiled against.

        On the target, Qt 5.6.3 recipe is installed using Yocto meta-qt5 recipes.

        On Ubuntu 16.04, Qt 5.6.3 is cross-compiled with TI sdk to generate the needed Qt libs.
        Only difference being cross compiled Qt gcc version: 7.2.1 and Target Yocto gcc version: 7.3.0.

        Is there any scope of ABI-incompatibility for the example program being linked against and run on target? If so, how to resolve the same?

        J 1 Reply Last reply 8 Jul 2020, 04:57
        0
        • R Ramakanth
          7 Jul 2020, 13:18

          ldd animated tiles throws the output not a dynamic executable. Qt library being used to generate executable of the example program is configured with C++14.

          Do we need to add CONFIG+=c++14 and QMAKE_CXXFLAGS += "-fno-sized-deallocation" to resolve the error?
          All these relocation symbol errors are anything due to mismatch in Qt versions available on target and example program being compiled against.

          On the target, Qt 5.6.3 recipe is installed using Yocto meta-qt5 recipes.

          On Ubuntu 16.04, Qt 5.6.3 is cross-compiled with TI sdk to generate the needed Qt libs.
          Only difference being cross compiled Qt gcc version: 7.2.1 and Target Yocto gcc version: 7.3.0.

          Is there any scope of ABI-incompatibility for the example program being linked against and run on target? If so, how to resolve the same?

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 8 Jul 2020, 04:57 last edited by
          #4

          @Ramakanth said in Qt5.6.3 examples not being run with LinuxFB and evdev:

          On Ubuntu 16.04, Qt 5.6.3 is cross-compiled with TI sdk to generate the needed Qt libs.

          You have to use the cross compiled Qt on the target. Deploy your app properly to get a package with cross-compiled Qt libs.
          See https://doc.qt.io/qt-5/linux-deployment.html

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

          R 1 Reply Last reply 20 Jul 2020, 05:22
          0
          • J jsulm
            8 Jul 2020, 04:57

            @Ramakanth said in Qt5.6.3 examples not being run with LinuxFB and evdev:

            On Ubuntu 16.04, Qt 5.6.3 is cross-compiled with TI sdk to generate the needed Qt libs.

            You have to use the cross compiled Qt on the target. Deploy your app properly to get a package with cross-compiled Qt libs.
            See https://doc.qt.io/qt-5/linux-deployment.html

            R Offline
            R Offline
            Ramakanth
            wrote on 20 Jul 2020, 05:22 last edited by
            #5

            @jsulm After resolving the configure options and patches to use the same build on host VM and target, Qt examples could be run on target. Thanks.

            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