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



  • 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


  • Lifetime Qt Champion

    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



  • 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


  • Lifetime Qt Champion

    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



  • 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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.