[SOLVED] How to install QT under the Raspbian image?
-
Is it possible that I have to use another qmake to cross-compile for the wheezy than for the original qtonpi image?
-
can be solved by
export LD_LIBRARY_PATH=/opt/qt50-snaphot/lib
before running the qt-program.
-
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?
-
where did you execute it? via QtCreator or locally on the pi?
do you have the rights to execute it? -
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 -
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"
-
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? -
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?