MSVC can't find qtpcre2d.lib?
-
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
-
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
@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? -
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.
-
-