How to use QML_IMPORT_PATH with Qt Cmake Project?
Unsolved
General and Desktop
-
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) DefiningQML_IMPORT_PATH
in.bashrc
- didn't work outb) 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 underscoreimport
line (which is ok). But, If I run executable with console - the same message moduleorg.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?