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

Mac Static Libraries give linking error when used in Visual Studio

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.15.2
    • Build System
    • None
    • macOS

    Description

      We are trying to build Qt5 from source into static libraries. We plan to use these static libraries in Visual Studio.

      I used the below link to get the source code of Qt:

      https://wiki.qt.io/Building_Qt_5_from_Git#Getting_the_source_code

       

      I have built the static libraries for mac using the below configure statement:

      configure -static -release -commercial -platform macx-clang -ltcg -optimize-size -no-pch -developer-build -confirm-license -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -nomake examples -nomake tests

      This was followed by 'make'.

       

      The libraries get created successfully but when i use these libraries in a Visual Studio Project, we get linker errors.

       

      The entire output of the build from Visual Studio has been attached for reference.

       

      Can you please help in this on priority ?

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            abhishek.mohata Abhishek Mohata
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes