Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 3.1.0
-
None
-
QNX 6.6 + Apps and Media
Qt 5.3.0-rc
Qt Creator 3.1.0
Ubuntu 12.04 x64
-
b7fb9a44a524f65992985ec0b41b98b91ef73f8e
Description
It seems to me that whenever a project uses Qt Quick 2, then not all environment variables get properly set.
Using quick/controls/gallery as an example:
If I set "Path to Qt libraries on device=/home/sahumada/qt5-5.3/lib" (which is where I put all the Qt 5.3 libraries to) then all other components are taken from the system (e.g. plugins, qml, imports, etc), so you get an error.
If I set environment variables pointing to my Qt 5.3 components on the device (e.g. LD_LIBRARY_PATH, QML2_IMPORT_PATH, QT_LIB_PATH, QT_PLUGIN_PATH, QT_QPA_FONTDIR, etc) then I get an error about incompatible versions:
- qrc:/main.qml:45 plugin cannot be loaded for module "QtQuick": The plugin '/home/sahumada/qt5-5.3/qml/QtQuick.2/libqtquick2plugin.so' uses incompatible Qt library. (5.3.0) [release]
so I guess it keeps mixing my Qt libraries defined by environment variables and the system ones.
If I unset "Path to Qt libraries on device", then everything works by only using the environment variables.