Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Building Qt 5.7.1 for QNX 6.6.0 armle-v7: Page 1 of 10 (10 Items)
   
Building Qt 5.7.1 for QNX 6.6.0 armle-v7  
I am trying to build Qt 5.7.1 for QNX 6.6.0 running atop an i.MX6q processor (armle-v7). Actually, the build itself 
succeeded, but Qt refuses to start up. Here's what I did:

I essentially followed the instructions found here:
http://wiki.qt.io/Building_Qt_for_QNX_Neutrino_OS
and here:
http://wiki.qt.io/QNX-App-development-and-deployment

I used git to check out version 5.7.1 to my Debian host system and built Qt as per the instructions in the Qt Wiki. I 
then uploaded the Qt build (the folders bin, doc, examples, include, lib, mkspecs and plugins) to the target board to 
local eMMC storage (/home/qt5, although I have tried /opt/qt/ before with the same result). I set up the envvars needed 
for Qt as follows:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/qt5/lib
export QT_PLUGIN_PATH=/home/qt5/plugins
export QML2_IMPORT_PATH=/home/qt5/qml
export QML_IMPORT_PATH=/home/qt5/imports
export QQNX_PHYSICAL_SCREEN_SIZE="217,136"
export QT_DEBUG_PLUGINS=1
export QT_QPA_PLATFORM_PLUGIN_PATH=/home/qt5/plugins
export QT_QPA_FONTDIR=/home/qt5/lib/fonts

When I try to run a Qt binary, I get the following error (see attached file for full dump):
Got keys from plugin meta data ("qnx")
QFactoryLoader::QFactoryLoader() checking directory path "/home/qt5/examples/gui/analogclock/platforms" ...
Cannot load library /home/qt5/plugins/platforms/libqqnx.so: (Library cannot be found)
QLibraryPrivate::loadPlugin failed on "/home/qt5/plugins/platforms/libqqnx.so" : "Cannot load library /home/qt5/plugins/
platforms/libqqnx.so: (Library cannot be found)"
This application failed to start because it could not find or load the Qt platform plugin "qnx"
in "/home/qt5/plugins".

Those files are, however, exactly where they are supposed to be. Running ldd on the Qt binary didn't reveal any dead 
links, either. Screen does run and the gles-gears sample binaries work with no issues.

Please help. I'm stuck and I don't know what to do.

Thanks a lot!
Attachment: Text analogclock_full_dump.txt 3.03 KB