Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to compile QtDeclarative without QtXmlPatterns, QtSvg and QtSql
Qt 6.11 is out! See what's new in the release blog

How to compile QtDeclarative without QtXmlPatterns, QtSvg and QtSql

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 2.9k 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.
  • H Offline
    H Offline
    Hedge
    wrote on last edited by
    #1

    I want to slim my application down (again).
    QtDeclarative depends on QtXmlPatterns, QtSvg and QtSql which I don't use at all, so I'd like to compile the library without them.

    Has someone altered source-file for QtDeclarative (or a clue how to do this) ?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      You might have a look if the configure script has options for excluding dependencies to these libraries.

      If not, the common way is to wade through the sources and place #ifdef/#endif preprocessor directives around code fragments which cause the dependency. This allows for switching on and off the dependencies using a single #define preprocessor directive.

      However, I would not bet that QtDeclarative can be built without those dependencies and I am worried it isn't possible at all. I would definitly wait until this is acknowledged by a troll. Otherwise you will have wasted hours of hours of work.

      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