Installing POT on a Running Device and Test
- Uncompress the archive and copy the Qt build into your Pi in /usr/local. Do not rename it as rpath is set.
- If provided, copy qtdeps into your Pi, wherever you want.
- Copy piomxtextures_pocplayer into your Pi, wherever you want. You'll need this only if you want to test it. Not needed when you'll run your application.
- Copy all the samples in the samples directory if you want to test those.
- Assign more RAM to the GPU (do this using the Pi config tool or by setting gpu_mem in /boot/config.txt to 256MB).
- Into your Pi add the qtdeps/lib path to the dynamic linker search path. You can do this by setting the LD_LIBRARY_PATH to that directory or by adding it to the /etc/ld.so.conf.d/pot.conf and running ldconfig.
- Now all the deps should be ok and you can try to run a sample app. Let's start from the C++ POCPlayer:
- ./piomxtextures_pocplayer /some/abs/path
- You can also try using qmlscene. Try for instance the simple video_position.qml:
- /usr/local/Qt-rasp2-5.5.0/bin/qmlscene video_simple.qml file:///.../big_buck_bunny_1080p_h264.mov
You can also change the paths if you want, but you'll have to see if everything keeps working or adapt the procedure for that.
There are a few features that are not available in Qt API (at least not that I know). You can control these features with env variables before running your app (changing those dynamically is not possible, but it is simple to implement if you want to contribute). These are the variables:
Building Your Own App
You can use the Qt build to build your own app. To do this place your sysroot into /opt/rpi/sysroot and the Raspbian toolchain in /opt/rpi/gcc-linaro-arm-linux-gnueabihf-raspbian on your host and use the qmake command in /opt/rpi/sysroot/usr/local/Qt-rasp(2)-5.5.0/bin to build your application.
[More details to come for this]