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 compile RESOURCE without requiring QML
Forum Updated to NodeBB v4.3 + New Features

How to compile RESOURCE without requiring QML

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 506 Views 1 Watching
  • 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.
  • F Offline
    F Offline
    Farling
    wrote on last edited by
    #1

    I have a project using only Widgets, no QML.

    With Qt 5.11, when I try to compile the system it is generating a link error in qrc_<program>_qmlcache.cpp because I don't have qml in my CONFIG.

    If I add qml to the CONFIG in the .pro file, then the program links successfully (but is larger).

    Is there an option I can set somewhere so that the resource compiler doesn't generate the QML (and javascript) stub files?

    (I have a .css and a .js file in the resource file, but they are only in there for delivery as part of the output of my program. They never get executed by my program.)

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Just make sure you don't have QML compiler enabled at it should be fine. Check your .pro file and Qt Creator Project -> build settings.

      (Z(:^

      1 Reply Last reply
      2
      • F Offline
        F Offline
        Farling
        wrote on last edited by
        #3

        Yes, that has solved the problem.
        It's just a shame that QtCreator generates that option by default (rather than looking inside the .pro file).

        aha_1980A 1 Reply Last reply
        0
        • F Farling

          Yes, that has solved the problem.
          It's just a shame that QtCreator generates that option by default (rather than looking inside the .pro file).

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          hi @Farling,

          would you mind creating a bugreport at bugreports.qt.io ? (and provide the link here?) that would help to fix the problem in future.

          thanks

          Qt has to stay free or it will die.

          1 Reply Last reply
          1

          • Login

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