Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. [SOLVED] How to install QT under the Raspbian image?
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] How to install QT under the Raspbian image?

Scheduled Pinned Locked Moved QtonPi
19 Posts 4 Posters 17.8k 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.
  • P Offline
    P Offline
    Pinkypanzer
    wrote on last edited by
    #9

    do I have to use special settings in the pro file or otherwere in the project?

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Pinkypanzer
      wrote on last edited by
      #10

      Is it possible that I have to use another qmake to cross-compile for the wheezy than for the original qtonpi image?

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Pinkypanzer
        wrote on last edited by
        #11

        can be solved by

        export LD_LIBRARY_PATH=/opt/qt50-snaphot/lib

        before running the qt-program.

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jcverdie
          wrote on last edited by
          #12

          I ran into the same problem, but in my case it comes from a custom QT5 build (not the snapshot).
          Anyway, if followed http://qt-project.org/wiki/RaspberryPi_Beginners_Guide
          and qt ended being installed not in opt but in /usr/local/qt5pi/
          libQtQuick.so.5.0.0 is in the lib subfolder but setting LD_LIBRARY_PATH does not change anything which is quite surprising, and as for Pinkypanzer the ldd tells me hello-qtonpi is not an executable :(

          Any other clue?

          1 Reply Last reply
          0
          • P Offline
            P Offline
            Pinkypanzer
            wrote on last edited by
            #13

            where did you execute it? via QtCreator or locally on the pi?
            do you have the rights to execute it?

            1 Reply Last reply
            0
            • J Offline
              J Offline
              jcverdie
              wrote on last edited by
              #14

              Both give the same result: running from QtCreator and running locally give the same error message

              Yes, my binaries are in 644 mode

              1 Reply Last reply
              0
              • P Offline
                P Offline
                Pinkypanzer
                wrote on last edited by
                #15

                now I see there's an error in my post. it has to be
                export LD_LIBRARY_PATH=/opt/qt50-snapshot/lib
                maybe this is your problem? you have to link the lib-folder

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  jcverdie
                  wrote on last edited by
                  #16

                  Indeed I've done that, but qt is not installed in opt for me, it is in /usr/local/qt5pi/lib !
                  And obviously I did not picked up the path, it came out of the box from the guidelines :(

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    Pinkypanzer
                    wrote on last edited by
                    #17

                    in QT CREATOR you have to set the the path in the system environment

                    cited from the beginners guide:
                    At last, add the LD_LIBRARY_PATH on the “System Environment” and set it to “/usr/local/qt5pi/lib”

                    In my case the path would be "/opt/qt50-snapshot/lib"

                    1 Reply Last reply
                    0
                    • P Offline
                      P Offline
                      Pinkypanzer
                      wrote on last edited by
                      #18

                      Then I'm sorry, I don't know what your problem is.
                      Did you check the path is available at you pi and you have the rights to read from it?

                      1 Reply Last reply
                      0
                      • P Offline
                        P Offline
                        pdsuk
                        wrote on last edited by
                        #19

                        @jcverdie

                        I followed the beginners guide like yourself also and ran into the same problem.

                        Apps deployed and executed from within QtCreator ran correctly on the device but if I went to the command line on the RPi itself, I couldn't execute them (libQtQuick.. not found)

                        Running: export LD_LIBRARY_PATH=/usr/local/qt5pi/lib/

                        Fixes this problem but only when logged in as root!

                        If I export LD_LIBRARY_PATH as user 'pi' I still cannot execute the binary (same error as before).

                        Stranger still, QtCreator which can deploy and run the binary correctly, is logging in via ssh with user 'pi' !

                        Any ideas why this is happening?

                        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