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. MSVC can't find qtpcre2d.lib?
Forum Updated to NodeBB v4.3 + New Features

MSVC can't find qtpcre2d.lib?

Scheduled Pinned Locked Moved Solved Installation and Deployment
4 Posts 2 Posters 101 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.
  • T Offline
    T Offline
    Taytoo
    wrote last edited by
    #1

    Setting up a new dev machine, copied working msvc solution/projects files that link statically with qt. Build Qt from sources using exact same configure command and output paths that I used on previous computer. But on new machine, I'm getting error at link time:

    4>qtvars_plugin_import.cpp
    5>LINK : fatal error LNK1181: cannot open input file 'qtpcre2d.lib'
    

    I've verified that the lib file is the Qt lib folder. Output of qmake.exe -query command - the one I compiled:

    QT_SYSROOT:
    QT_INSTALL_PREFIX:C:/Qt/Static/5.15.19
    QT_INSTALL_ARCHDATA:C:/Qt/Static/5.15.19
    QT_INSTALL_DATA:C:/Qt/Static/5.15.19
    QT_INSTALL_DOCS:C:/Qt/Static/5.15.19/doc
    QT_INSTALL_HEADERS:C:/Qt/Static/5.15.19/include
    QT_INSTALL_LIBS:C:/Qt/Static/5.15.19/lib
    QT_INSTALL_LIBEXECS:C:/Qt/Static/5.15.19/bin
    QT_INSTALL_BINS:C:/Qt/Static/5.15.19/bin
    QT_INSTALL_TESTS:C:/Qt/Static/5.15.19/tests
    QT_INSTALL_PLUGINS:C:/Qt/Static/5.15.19/plugins
    QT_INSTALL_IMPORTS:C:/Qt/Static/5.15.19/imports
    QT_INSTALL_QML:C:/Qt/Static/5.15.19/qml
    QT_INSTALL_TRANSLATIONS:C:/Qt/Static/5.15.19/translations
    QT_INSTALL_CONFIGURATION:
    QT_INSTALL_EXAMPLES:C:/Qt/Static/5.15.19/examples
    QT_INSTALL_DEMOS:C:/Qt/Static/5.15.19/examples
    QT_HOST_PREFIX:C:/Qt/Static/5.15.19
    QT_HOST_DATA:C:/Qt/Static/5.15.19
    QT_HOST_BINS:C:/Qt/Static/5.15.19/bin
    QT_HOST_LIBS:C:/Qt/Static/5.15.19/lib
    QMAKE_SPEC:win32-msvc
    QMAKE_XSPEC:win32-msvc
    QMAKE_VERSION:3.1
    QT_VERSION:5.15.19
    
    Christian EhrlicherC 1 Reply Last reply
    0
    • T Offline
      T Offline
      Taytoo
      wrote last edited by
      #4

      Downgraded Qt VS Tools Extension to 3.2.0 and that got it working.

      1 Reply Last reply
      0
      • T Taytoo

        Setting up a new dev machine, copied working msvc solution/projects files that link statically with qt. Build Qt from sources using exact same configure command and output paths that I used on previous computer. But on new machine, I'm getting error at link time:

        4>qtvars_plugin_import.cpp
        5>LINK : fatal error LNK1181: cannot open input file 'qtpcre2d.lib'
        

        I've verified that the lib file is the Qt lib folder. Output of qmake.exe -query command - the one I compiled:

        QT_SYSROOT:
        QT_INSTALL_PREFIX:C:/Qt/Static/5.15.19
        QT_INSTALL_ARCHDATA:C:/Qt/Static/5.15.19
        QT_INSTALL_DATA:C:/Qt/Static/5.15.19
        QT_INSTALL_DOCS:C:/Qt/Static/5.15.19/doc
        QT_INSTALL_HEADERS:C:/Qt/Static/5.15.19/include
        QT_INSTALL_LIBS:C:/Qt/Static/5.15.19/lib
        QT_INSTALL_LIBEXECS:C:/Qt/Static/5.15.19/bin
        QT_INSTALL_BINS:C:/Qt/Static/5.15.19/bin
        QT_INSTALL_TESTS:C:/Qt/Static/5.15.19/tests
        QT_INSTALL_PLUGINS:C:/Qt/Static/5.15.19/plugins
        QT_INSTALL_IMPORTS:C:/Qt/Static/5.15.19/imports
        QT_INSTALL_QML:C:/Qt/Static/5.15.19/qml
        QT_INSTALL_TRANSLATIONS:C:/Qt/Static/5.15.19/translations
        QT_INSTALL_CONFIGURATION:
        QT_INSTALL_EXAMPLES:C:/Qt/Static/5.15.19/examples
        QT_INSTALL_DEMOS:C:/Qt/Static/5.15.19/examples
        QT_HOST_PREFIX:C:/Qt/Static/5.15.19
        QT_HOST_DATA:C:/Qt/Static/5.15.19
        QT_HOST_BINS:C:/Qt/Static/5.15.19/bin
        QT_HOST_LIBS:C:/Qt/Static/5.15.19/lib
        QMAKE_SPEC:win32-msvc
        QMAKE_XSPEC:win32-msvc
        QMAKE_VERSION:3.1
        QT_VERSION:5.15.19
        
        Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote last edited by
        #2

        @Taytoo said in MSVC can't find qtpcre2d.lib?:

        QT_VERSION:5.15.19

        This is a commercial version, please ask the Qt support for help.
        did you really copy the debug Qt libs?

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        0
        • T Offline
          T Offline
          Taytoo
          wrote last edited by
          #3

          Yes, I use -debug-and-release flag in configure command so both versions are generated and in lib folder. I'll try Qt support but, in the past, I've found them to be quite slow & unhelpful. Better to just ask here and get answers.

          After posting this, I rebuild Qt from sources - thinking something got messed up during qt build, and also downgraded Qt VS Tool extension but still getting same error.

          1 Reply Last reply
          0
          • T Offline
            T Offline
            Taytoo
            wrote last edited by
            #4

            Downgraded Qt VS Tools Extension to 3.2.0 and that got it working.

            1 Reply Last reply
            0
            • T Taytoo has marked this topic as solved
            • T Taytoo has marked this topic as solved

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved