Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-74613

Static Qt 5.12.1: QtCharts QML import results in: fatal error LNK1169

    XMLWordPrintable

Details

    • Windows
    •  c0f0d22a1ae85c7efafb4cee6d0e59effb68262c

    Description

      Compile output with QtCharts imported in QML:

      Qt5Chartsd.lib(qbarmodelmapper.obj) : error LNK2005: "class QtCharts::QBarSet * (__cdecl* QtCharts::qt_allocate_bar_set)(class QString const &)" (?qt_allocate_bar_set@QtCharts@@3P6APEAVQBarSet@1@AEBVQString@@@ZEA) already defined in qtchartsqml2d.lib(declarativechart.obj)
         Creating library debug\QtQuickChartsTest.lib and object debug\QtQuickChartsTest.exp
      debug\QtQuickChartsTest.exe : fatal error LNK1169: one or more multiply defined symbols found
      

      Steps to reproduce:

      • Build an application with a static version of Qt 5.12.1 and import QtCharts in QML. See attached project for reference.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            e0348803 Miikka Heikkinen
            miikapernu Miika Pernu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes