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

Cannot use qt5_add_resources in dynamic libraries with Visual Studio

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Invalid
    • Affects Version/s: 5.8.0
    • Fix Version/s: None
    • Component/s: Build tools: rcc
    • Labels:
      None
    • Environment:
      Windows; Visual Studio

      Description

      The cpp files generated by qt5_add_resources do not contain __declspec(dllexport) required for symbols to be visible in a dynamic library compiled by Visual Studio.

      I propose adding an RCC option "--exporting" (default false) that adds the necessary function decorations.

        Attachments

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

          Activity

            People

            Assignee:
            erb Jason Erb (Suitable Technologies)
            Reporter:
            erb Jason Erb (Suitable Technologies)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes