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. Enable to run QT application in beagleboard (Angstrom)

Enable to run QT application in beagleboard (Angstrom)

Scheduled Pinned Locked Moved Mobile and Embedded
6 Posts 3 Posters 5.1k 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.
  • M Offline
    M Offline
    mehkants
    wrote on last edited by
    #1

    hello everyone.

    I want to run QT application in beagleboard - xm (target board).
    in beagle board, i had boot Angstrom OS.

    so, what i did.

    i had install arm cross complier and qt library files for beagleboard in host PC(ubuntu 11.04).

    Using QT creater i had made one qt application(that i want to run in beagleboard).

    in target board (beagle board), i set enivorment for qt (copy qt library files which i found from /opt/qt-arm/lib (from host PC). and also set PATH variable of /etc/profile as /opt/qt-arm/lib).

    and also copy project's executable file to beagleboard

    when i run that executable file using below command,

    #./app -qws

    i got error like:

    ./app: error while loading shared libraries: /opt/qt-arm/lib/libQtGuiE.so.4: file too short.

    help me. how to fix this error.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      messi
      wrote on last edited by
      #2

      Solution 1

      Problems during the copy process. Please verify the lib size again with the original used one on your host PC.

      Solution 2

      /opt/qt-arm/lib/libQtGuiE.so.4 is a soft link which points to the wrong library
      verify it with "ls -asl /opt/qt-arm/lib/libQtGuiE.so.4"

      Solution 3

      ldconfig found another version of libQtGuiE
      Check LD_LIBRARY_PATH and /etc/ld.so.conf

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mehkants
        wrote on last edited by
        #3

        fixed problem.

        in host side, libQtGuiE.so.4, libQtGuiE.so.4.6, libQtGuiE.so.4.6.2 all are linked together.

        but when i copied it to beagleboard, they were not linked together.

        how to link together?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          messi
          wrote on last edited by
          #4

          tar cvfz QtLib.tgz /opt/qt-arm/lib/

          • or -

          copie only the non link file an create the soft link by:
          ln -s libQtGuiE.so.4.6.2 libQtGuiE.so.4
          ln -s libQtGuiE.so.4.6.2 libQtGuiE.so.4.6

          1 Reply Last reply
          0
          • L Offline
            L Offline
            luca
            wrote on last edited by
            #5

            When you copy library from pc to the Angstrom SD card use rsync:
            @
            rsync -av PC/librarypath/ SDCARD/librarypath/
            @

            you also can use cp command but I don't remember the parameter to preserve symbolic links.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              messi
              wrote on last edited by
              #6

              cp -p

              or

              cp --preserve=links

              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