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. QT in Beaglebone black, error while loading shared libraries: libQtGui.so.4
Forum Update on Tuesday, May 27th 2025

QT in Beaglebone black, error while loading shared libraries: libQtGui.so.4

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 2 Posters 4.9k 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.
  • C Offline
    C Offline
    carlitos_litos
    wrote on 23 Nov 2013, 21:04 last edited by
    #1

    Hello:

    I have install QT4 in PC under Windows XP SP3 and in Beaglebone black, I have config all, compile perfectly, but when I upload binary file to Beaglebone black and try to run it display this error:

    error while loading shared libraries: libQtGui.so.4: cannot open shared object file: No such file or directory

    I installed QT4 in Beaglebone with following commands:
    opkg update
    opkg install qt4-embedded --force-depends
    opkg install libqtcoree-dev libqtguie-dev

    I have install also QT in Raspberry, and with same program work perfectly, but do not know what happen with Beaglebone.

    I have try to look for information about this error in google, but do not locate any useful information to solve it.
    Somebody with same problem has solve it ???

    Regards

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 23 Nov 2013, 21:29 last edited by
      #2

      Hi and welcome to devnet,

      Can you check the name of the libraries on your Beaglebone Black ? IIRC from another thread, they postfix their embedded version of the Qt libraries with an E, thus they can't be find. You might workaround this problem using symlinks

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • C Offline
        C Offline
        carlitos_litos
        wrote on 23 Nov 2013, 22:35 last edited by
        #3

        Hello Sgaist:

        Thanks for your help.
        Seem you are right and this library in BBB, name is libQtGuiE, I have found this link where provide amend to it, they say that edit and modify qmake.conf and add QT_LIBINFIX = E
        http://visualgdb.com/tutorials/beaglebone/qt-embedded/

        I have do it, but now compilation fail with this error message:
        undefined reference to `QWidget::x11Event(_XEvent*)'

        So, do not know exactly how amend it, if keep original configuration, compile fine, but fail when run, and if modify qmake.conf to add E sufix to library names, then fail compilation.

        What is symlinks ???

        Regards

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 23 Nov 2013, 22:38 last edited by
          #4

          Did you compile your application against a standard Qt or an Embedded Qt ?

          If the former you can't run your program using the Qt Embedded version. You would then either have to run an X11 server on your BBB or recompile your program to link against a Qt Embedded build

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • C Offline
            C Offline
            carlitos_litos
            wrote on 23 Nov 2013, 22:58 last edited by
            #5

            I think in BBB is embedded QT, I installed it with these commands:
            opkg update
            opkg install qt4-embedded --force-depends
            opkg install libqtcoree-dev libqtguie-dev

            And in PC, I synchronized all libraries, with QTCrosstool, to download to PC all libraries from BBB, so I think both are with embedded, I do cross compilation in PC under Windows. This is the utility to synchro both: http://visualgdb.com/tools/QtCrossTool/

            Regards

            1 Reply Last reply
            0

            1/5

            23 Nov 2013, 21:04

            • Login

            • Login or register to search.
            1 out of 5
            • First post
              1/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved