Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qdbus tools don't compile on windows
Qt 6.11 is out! See what's new in the release blog

Qdbus tools don't compile on windows

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 1 Posters 956 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.
  • S Offline
    S Offline
    skylendar
    wrote on last edited by
    #1

    Hi there and thx for reading and answering if you can.

    If you strive to port a linux project to windows, you may use the qdbus tools such as qdbusxml2cpp
    However the Qt5 versions don't compile on windows, because the file named moc\token.h contains symbols such as THIS or DELETE in the FOR_ALL_TOKENS macro that are already defined in windows headers (winnt.h, etc...)

    Is there already a solution tor sorting out this issue ?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      skylendar
      wrote on last edited by
      #2

      you can #undef a few declarations, but some symbols are actually already used as typedef'ed types in windows headers, e.g. CHAR, so the issue remains

      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