QT50-Snapshot on Raspberry Pi
-
That sorted out right, but then, another error and this one I could not fix:
While making it, got this error:
http://i.imgur.com/WY4nyte.pngI tried to ignore it, but on the install got this one:
http://i.imgur.com/Zejtzww.pngAny advice on this?
-
Run make without -j to get the error
-
-
It makes it more readable and ensures that you don't have several errors in parallel.
Anyway, I wasn't hit by that one, however, replacing DISPMANX_TRANSFORM_T by VC_IMAGE_TRANSFORM_T should be enough in that case
-
THank you, all sorted out right now I think! Now doing dd to the sdcard. After I plug it in RPi, I assume that qt is all set up, so if I run qt on terminal it will recognize it, right?
-
What do you mean by run Qt on terminal ?
Since you cross-compiled Qt, you should start Qt Creator, Go to the Preferences, in Build and Run add your newly built Qt, make a kit using it. Add a Generic Device in devices and connect it to the Rasberry Pi.
Then create a default application that you'll configure with your Raspberry specific Kit, build, run and enjoy !
-
Ok, but I need to compile a program that makes use of Qt to run in RaspberryPi, how can I do that?
-
That's what the last paragraph describes, just start a new default project, select your Raspberry Kit, hit the run button which will trigger a build and start the application on the Pi (if you correctly add the device in the preferences)
-
ok, so first things first, How do I do all that? What manuals can I read? I am using Ubuntu (and sorry for my noobish knowledge on this, going for Qt for the first time, and it's not being an easy ride! ).
EDIT: I don't have any Qt environment set-up!
-
You don't have Qt Creator installed ? Then you should go and download the Linux package and install it.
Then go through Qt's documentation/tutorials/examples
-
SGaist, afte rall, there was something wrong with qmake.
http://i.imgur.com/uZcPyoQ.png
Suggestions? I tried again sudo make install on qtbase folder, but reported this:
"
ntConfigVersion.cmake /mnt/rasp-pi-rootfs/usr/local/qt5pi/lib/cmake/Qt5Concurrent/
make[2]: Leaving directory/home/roque/opt/qt5/qtbase/src/concurrent' cd gui/ && ( test -e Makefile || /home/roque/opt/qt5/qtbase/bin/qmake /home/roque/opt/qt5/qtbase/src/gui/gui.pro -o Makefile ) && make -f Makefile install make[2]: Entering directory
/home/roque/opt/qt5/qtbase/src/gui'
make[2]: *** No rule to make target/mnt/rasp-pi-rootfs/opt/vc/include/GLES2/gl2.h', needed by
.obj/qaccessible.o'. Stop.
make[2]: Leaving directory/home/roque/opt/qt5/qtbase/src/gui' make[1]: *** [sub-gui-install_subtargets] Error 2 make[1]: Leaving directory
/home/roque/opt/qt5/qtbase/src'
make: *** [sub-src-install_subtargets] Error 2
roque@Roque-Ubuntu:~/opt/qt5/qtbase$ sudo -e Makefile || /home/roque/opt/qt5/qtbase/bin/qmake /home/roque/opt/qt5/qtbase/src/gui/gui.pro -o Makefile
sudo: Makefile unchanged
roque@Roque-Ubuntu:~/opt/qt5/qtbase$ sudo -e Makefile || /home/roque/opt/qt5/qtbase/bin/qmake /home/roque/opt/qt5/qtbase/src/gui/gui.pro -o Makefile
sudo: Makefile unchanged
"[EDIT] Also, error output while trying to build:
"Project ERROR: Unknown module(s) in QT: quick
22:56:03: The process "/usr/local/qt5pi/bin/qmake" exited with code 3.
Error while building/deploying project helloworld (kit: Raspberry Pi)
When executing step "qmake"
22:56:03: Elapsed time: 00:00." -
Did you mount your Raspberry Pi fs ?