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. QT compiler flags/defines
Forum Updated to NodeBB v4.3 + New Features

QT compiler flags/defines

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

    I am trying to integrate Qt into a build environment where QMake/CMake is currently not an option, hence I need to understand every detail of the build process to replicate it in our own Makefiles.

    What are the purpose of the DEFINES (e.g. -DUNICODE, -DWIN32, -DQT_DLL, -DQT_WEBKIT_LIB, etc) ? Are they necessary for building projects based on Qt (not QT itself) - and if, where do I find a complete list of relevant flags? Can possibly missing flags cause various obscure failures at runtime?

    I have tried removing them from the autogenerated makefiles in various example projects, which does not seem to change anything.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      danilocesar
      wrote on last edited by
      #2

      I believe they're important...

      I did a a very fast lookup for those string:

      UNICODE are being used in 3rdparty/wintab/wintab.h
      QT_DLL is being used in global/qglobal.h

      New you need to track down what they're doing ;)

      Anyway, whatever you have to do, replicate qmake's work probably is not a good idea.
      Post here your environment issues and maybe we can help you in a proper way.

      <a href="http://www.danilocesar.com">Danilo Cesar Lemes de Paula</a>
      Software Engineer

      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