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. Compile errors in qdbusconnection.h
Qt 6.11 is out! See what's new in the release blog

Compile errors in qdbusconnection.h

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

    Hi all,
    I compile a project using the latest version of QT SDK, and get erros as below:

    @
    C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:138: error: expected ',' or '...' before 'struct'

    C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:140: error: expected ',' or '...' before 'struct'

    C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:140: error: 'bool QDBusConnection::connect(const QString&, const QString&, const QString&)' cannot be overloaded

    C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:138: error: with 'bool QDBusConnection::connect(const QString&, const QString&, const QString&)'

    C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:143: error: expected ',' or '...' before 'struct'

    C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:143: error: 'bool QDBusConnection::connect(const QString&, const QString&, const QString&)' cannot be overloaded

    C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:138: error: with 'bool QDBusConnection::connect(const QString&, const QString&, const QString&)'

    C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:147: error: expected ',' or '...' before 'struct'

    C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:149: error: expected ',' or '...' before 'struct'

    C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:149: error: 'bool QDBusConnection::disconnect(const QString&, const QString&, const QString&)' cannot be overloaded

    C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:147: error: with 'bool QDBusConnection::disconnect(const QString&, const QString&, const QString&)'

    C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:152: error: expected ',' or '...' before 'struct'

    C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:152: error: 'bool QDBusConnection::disconnect(const QString&, const QString&, const QString&)' cannot be overloaded

    C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:147: error: with 'bool QDBusConnection::disconnect(const QString&, const QString&, const QString&)'

    C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:164: error: expected unqualified-id before 'struct'

    C:\Qt\2010.05\qt\include/QtDBus/../../src/dbus/qdbusconnection.h:164: error: expected ';' before 'struct'
    @

     How can I solve the problem?
     Thank you
    

    [EDIT: code formatting for output, Volker]

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jdbastardy
      wrote on last edited by
      #2

      Dbus shouldn't be compiled under windows. Are you cross compiling or anything like that? (maybe a different mkspec)?

      http://mattias-cibien.co.cc

      • Prepare for Qt consequences.
      1 Reply Last reply
      0
      • Y Offline
        Y Offline
        yunton
        wrote on last edited by
        #3

        Thank you for reply.
        Anyway we use a window version of Qt, this doesn't mean that this version can be compiled under windows?
        The compiler we use is minGW, which come with the QT SDK package.

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jdbastardy
          wrote on last edited by
          #4

          Are you including QtDBus in your project under windows? DBus isn't supported on windows at this time

          http://mattias-cibien.co.cc

          • Prepare for Qt consequences.
          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