[SOLVED] How to add qt-gfx-transformed driver/plugin to Qt for Embedded 4.8.5 project
I am building a Qt for Embedded app using the latest Qt Creator, but I am using the toolchain for Qt for Embedded 4.8.5. I want to run the app on a 3.5 inch screen (320x240). I built the toolchain using Bitbake via "bitbake meta-toolchain-qte". I'd like my app to rotate 90 degrees at start, and I found out that to do this, you run the app like this: "./myapp -qws -display transformed:rot90".
I know I have to add the -qt-gfx-transformed driver, and what I did initially was to look inside my Yocto Project directory(build-x11/tmp/sysroots/imx6qsabresd/usr/lib/qtopia/plugins/gfxdrivers) and found the library "libqgfxtransformed.so". I added this library via "Add Library" option, and added the said library to the target platform's /usr/lib/ folder, but when I tried running my app using the previously mentioned command for rotating, an error saying "transformed: driver not found".
I've come across this method of loading plugins dynamically: http://developer.nokia.com/community/wiki/Loading_and_initialising_a_Qt_plug-in_dynamically, but I am not sure if this applies to my situation. Can anyone point me in the right direction? Thanks
I finally got to solve this by myself. I only had to add 'libqgfxtransformed.so' to my target's /usr/lib/qtopia/plugins/gfxdrivers folder. I then ran my app using the '-qws -display transformed:rot90' switch and I got my rotation done!