Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Qdbus tools don't compile on windows

    Tools
    1
    2
    544
    Loading More Posts
    • 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
      skylendar last edited by

      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 Reply Quote 0
      • S
        skylendar last edited by

        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 Reply Quote 0
        • First post
          Last post