Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to use QML_IMPORT_PATH with Qt Cmake Project?

How to use QML_IMPORT_PATH with Qt Cmake Project?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt5qtcreatorcmake
2 Posts 1 Posters 5.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • sosunS Offline
    sosunS Offline
    sosun
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • sosunS Offline
      sosunS Offline
      sosun
      wrote on last edited by
      #2

      Ok, it seems I can provide module's path with QML2_IMPORT_PATH. But it doesn't solve my issue since message stays.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved