I need to provide some modules for project.
Now, it looks for them in QT directory(I've installed it in $HOME
), but instead of it I want to make it search in /usr/lib/x86_64-linux-gnu/qt5/qml/
.
What I have tried:
a) Defining QML_IMPORT_PATH
in .bashrc
- didn't work out
b) Copying needed module in $HOME/Qt5.5.1/Tools/QtCreator/bin/qml/
:
Here we have something different. If I open of the .qml
files - it wouldn't underscore import
line (which is ok). But, If I run executable with console - the same message module org.bla.bla is not installed
.
So, If copying didn't help, maybe I had to just make QtCreator(or smth else) search for modules in appropriate folder, but how?
UPD.
Well, you can define path to your modules with QML2_IMPORT_PATH
(not just QML
, but QML2
). As I mentioned above, I've copied module folder in $HOME/Qt5.5.1/Tools/QtCreator/bin/qml/
which is completely wrong! The right way was to copy it in $QT_HOME/5.5/gcc_64/qml/
. It runs now fine, but I can't say the same about "how" it works. Unfortunately, this is not related to the question I've asked. Therefore, I'll not ask others to answer my question, but won't close it as well until find real problem and mention it here, so I can help others.