Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When building source code with QT Creator in windows 10, there are some error LNK2001. #59965

Open
1 of 2 tasks
wong-hao opened this issue Dec 19, 2024 · 0 comments
Open
1 of 2 tasks
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!

Comments

@wong-hao
Copy link

wong-hao commented Dec 19, 2024

What is the bug or the crash?

[2961/5289 3.3/sec] Automatic MOC for target test_core_layoutitem
[2962/5289 3.3/sec] Automatic MOC for target test_core_layoutitemgroup
[2963/5289 3.3/sec] Linking CXX shared library output\bin\qgis_gui.dll
FAILED: output/bin/qgis_gui.dll src/gui/qgis_gui.lib 
C:\Windows\system32\cmd.exe /C "cd . && E:\CMake\bin\cmake.exe -E vs_link_dll --intdir=src\gui\CMakeFiles\qgis_gui.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x64\mt.exe --manifests  -- E:\MICROS~1\MICROS~2\VC\Tools\MSVC\1442~1.344\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\qgis_gui.rsp  /out:output\bin\qgis_gui.dll /implib:src\gui\qgis_gui.lib /pdb:output\bin\qgis_gui.pdb /dll /version:3.39 /machine:x64 /debug /INCREMENTAL && cd ."
LINK Pass 1: command "E:\MICROS~1\MICROS~2\VC\Tools\MSVC\1442~1.344\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\qgis_gui.rsp /out:output\bin\qgis_gui.dll /implib:src\gui\qgis_gui.lib /pdb:output\bin\qgis_gui.pdb /dll /version:3.39 /machine:x64 /debug /INCREMENTAL /MANIFEST /MANIFESTFILE:src\gui\CMakeFiles\qgis_gui.dir/intermediate.manifest src\gui\CMakeFiles\qgis_gui.dir/manifest.res" failed (exit code 1120) with the following output:
  正在创建库 src\gui\qgis_gui.lib 和对象 src\gui\qgis_gui.exp
qgstemporalcontrollerwidget.cpp.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __cdecl QToolButton::checkStateSet(void)" (?checkStateSet@QToolButton@@MEAAXXZ)
qgstextformatwidget.cpp.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __cdecl QToolButton::checkStateSet(void)" (?checkStateSet@QToolButton@@MEAAXXZ)
qgsunitselectionwidget.cpp.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __cdecl QToolButton::checkStateSet(void)" (?checkStateSet@QToolButton@@MEAAXXZ)
qgsqueryresultwidget.cpp.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __cdecl QToolButton::checkStateSet(void)" (?checkStateSet@QToolButton@@MEAAXXZ)
qgsstyleitemslistwidget.cpp.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __cdecl QToolButton::checkStateSet(void)" (?checkStateSet@QToolButton@@MEAAXXZ)
qgssubstitutionlistwidget.cpp.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __cdecl QToolButton::checkStateSet(void)" (?checkStateSet@QToolButton@@MEAAXXZ)
qgstablewidgetbase.cpp.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __cdecl QToolButton::checkStateSet(void)" (?checkStateSet@QToolButton@@MEAAXXZ)
qgsorderbydialog.cpp.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __cdecl QToolButton::checkStateSet(void)" (?checkStateSet@QToolButton@@MEAAXXZ)
qgspanelwidgetstack.cpp.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __cdecl QToolButton::checkStateSet(void)" (?checkStateSet@QToolButton@@MEAAXXZ)
qgspresetcolorrampdialog.cpp.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __cdecl QToolButton::checkStateSet(void)" (?checkStateSet@QToolButton@@MEAAXXZ)
qgsproviderguiregistry.cpp.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __cdecl QToolButton::checkStateSet(void)" (?checkStateSet@QToolButton@@MEAAXXZ)
qgsnewhttpconnection.cpp.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __cdecl QToolButton::checkStateSet(void)" (?checkStateSet@QToolButton@@MEAAXXZ)
qgsnewmemorylayerdialog.cpp.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __cdecl QToolButton::checkStateSet(void)" (?checkStateSet@QToolButton@@MEAAXXZ)
qgsnewvectorlayerdialog.cpp.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __cdecl QToolButton::checkStateSet(void)" (?checkStateSet@QToolButton@@MEAAXXZ)
qgsnewgeopackagelayerdialog.cpp.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __cdecl QToolButton::checkStateSet(void)" (?checkStateSet@QToolButton@@MEAAXXZ)
qgsfeatureselectiondlg.cpp.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __cdecl QToolButton::checkStateSet(void)" (?checkStateSet@QToolButton@@MEAAXXZ)
qgsfielddomainwidget.cpp.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __cdecl QToolButton::checkStateSet(void)" (?checkStateSet@QToolButton@@MEAAXXZ)
qgsformlabelformatwidget.cpp.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __cdecl QToolButton::checkStateSet(void)" (?checkStateSet@QToolButton@@MEAAXXZ)
qgshttpheaderwidget.cpp.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __cdecl QToolButton::checkStateSet(void)" (?checkStateSet@QToolButton@@MEAAXXZ)
qgsexpressionbuilderwidget.cpp.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __cdecl QToolButton::checkStateSet(void)" (?checkStateSet@QToolButton@@MEAAXXZ)
qgsexpressionlineedit.cpp.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __cdecl QToolButton::checkStateSet(void)" (?checkStateSet@QToolButton@@MEAAXXZ)
qgsexpressionpreviewwidget.cpp.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __cdecl QToolButton::checkStateSet(void)" (?checkStateSet@QToolButton@@MEAAXXZ)
qgsexpressionselectiondialog.cpp.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __cdecl QToolButton::checkStateSet(void)" (?checkStateSet@QToolButton@@MEAAXXZ)
qgscompoundcolorwidget.cpp.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __cdecl QToolButton::checkStateSet(void)" (?checkStateSet@QToolButton@@MEAAXXZ)
qgscredentialdialog.cpp.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __cdecl QToolButton::checkStateSet(void)" (?checkStateSet@QToolButton@@MEAAXXZ)
qgsdatasourceselectdialog.cpp.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __cdecl QToolButton::checkStateSet(void)" (?checkStateSet@QToolButton@@MEAAXXZ)
qgsexpressionbuilderdialog.cpp.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __cdecl QToolButton::checkStateSet(void)" (?checkStateSet@QToolButton@@MEAAXXZ)
qgsvectortilesourceselect.cpp.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __cdecl QToolButton::checkStateSet(void)" (?checkStateSet@QToolButton@@MEAAXXZ)

Steps to reproduce the issue

  1. Open source code file cmake file.
  2. Build all projects under 'Release with Debug Information' mode.

Versions

3.39

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

No response

@wong-hao wong-hao added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

No branches or pull requests

1 participant