Uploaded image for project: 'Qt Solutions'
  1. Qt Solutions
  2. QTSOLBUG-166

Building QtSingleApplication as DLL fails with Qt5

    XMLWordPrintable

Details

    Description

      Building QtSingleApplication as DLL fails with Qt5
      QtSingleApplication build fails with ‘-library’ option with Qt5. There are warnings of inconsistent dll linkage:

      ..\src\qtsingleapplication.cpp(137) : warning C4273: 'QtSingleApplication::sysInit' : inconsistent dll linkage
              d:\qtsdk\repos\qt-solutions\qtsingleapplication\src\qtsingleapplication.h(100) : see previous definition of 'sysInit'
      ..\src\qtsingleapplication.cpp(155) : warning C4273: 'QtSingleApplication::QtSingleApplication' : inconsistent dll linkage
              d:\qtsdk\repos\qt-solutions\qtsingleapplication\src\qtsingleapplication.h(69) : see previous definition of '{ctor}'
      ..\src\qtsingleapplication.cpp(168) : warning C4273: 'QtSingleApplication::QtSingleApplication' : inconsistent dll linkage
              d:\qtsdk\repos\qt-solutions\qtsingleapplication\src\qtsingleapplication.h(70) : see previous definition of '{ctor}'
      ..\src\qtsingleapplication.cpp(241) : warning C4273: 'QtSingleApplication::isRunning' : inconsistent dll linkage
              d:\qtsdk\repos\qt-solutions\qtsingleapplication\src\qtsingleapplication.h(80) : see previous definition of 'isRunning'
      ..\src\qtsingleapplication.cpp(260) : warning C4273: 'QtSingleApplication::sendMessage' : inconsistent dll linkage
              d:\qtsdk\repos\qt-solutions\qtsingleapplication\src\qtsingleapplication.h(91) : see previous definition of 'sendMessage'
      ..\src\qtsingleapplication.cpp(270) : warning C4273: 'QtSingleApplication::id' : inconsistent dll linkage
              d:\qtsdk\repos\qt-solutions\qtsingleapplication\src\qtsingleapplication.h(81) : see previous definition of 'id'
      ..\src\qtsingleapplication.cpp(288) : warning C4273: 'QtSingleApplication::setActivationWindow' : inconsistent dll linkage
              d:\qtsdk\repos\qt-solutions\qtsingleapplication\src\qtsingleapplication.h(83) : see previous definition of 'setActivationWindow'
      ..\src\qtsingleapplication.cpp(304) : warning C4273: 'QtSingleApplication::activationWindow' : inconsistent dll linkage
              d:\qtsdk\repos\qt-solutions\qtsingleapplication\src\qtsingleapplication.h(84) : see previous definition of 'activationWindow'
      ..\src\qtsingleapplication.cpp(324) : warning C4273: 'QtSingleApplication::activateWindow' : inconsistent dll linkage
              d:\qtsdk\repos\qt-solutions\qtsingleapplication\src\qtsingleapplication.h(92) : see previous definition of 'activateWindow'
      qtlocalpeer.cpp
      

      And the build then fails with fatal errors.
      The qtsingleapplication.pri should have QT_CONFIG instead of CONFIG in it.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              qtcomsupport Qt Support
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: