VTK 9.3.0 编译问题 Visual Studio 2022

FAILED: bin/Debug/vtkFiltersReduction-9.3d.dll lib/Debug/vtkFiltersReduction-9.3d.lib cmd.exe /C "cd . && E:\AzureDevOps\cmake-3.26.3-windows-x86_64\bin\cmake.exe -E vs_link_dll --intdir=Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100220~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100220~1.0\x64\mt.exe --manifests -- C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1438~1.331\bin\Hostx64\x64\link.exe /nologo Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug\vtkToAffineArrayStrategy.cxx.obj Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug\vtkToConstantArrayStrategy.cxx.obj Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug\vtkToImplicitArrayFilter.cxx.obj Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug\vtkToImplicitRamerDouglasPeuckerStrategy.cxx.obj Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug\vtkToImplicitStrategy.cxx.obj Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug\vtkToImplicitTypeErasureStrategy.cxx.obj /out:bin\Debug\vtkFiltersReduction-9.3d.dll /implib:lib\Debug\vtkFiltersReduction-9.3d.lib /pdb:bin\Debug\vtkFiltersReduction-9.3d.pdb /dll /version:9.3 /machine:x64 /debug /INCREMENTAL lib\Debug\vtkCommonExecutionModel-9.3d.lib lib\Debug\vtkCommonDataModel-9.3d.lib lib\Debug\vtkCommonTransforms-9.3d.lib lib\Debug\vtkCommonMath-9.3d.lib lib\Debug\vtkkissfft-9.3d.lib lib\Debug\vtkCommonCore-9.3d.lib lib\Debug\vtksys-9.3d.lib ws2_32.lib dbghelp.lib psapi.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ." LINK Pass 1: command "C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1438~1.331\bin\Hostx64\x64\link.exe /nologo Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug\vtkToAffineArrayStrategy.cxx.obj Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug\vtkToConstantArrayStrategy.cxx.obj Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug\vtkToImplicitArrayFilter.cxx.obj Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug\vtkToImplicitRamerDouglasPeuckerStrategy.cxx.obj Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug\vtkToImplicitStrategy.cxx.obj Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug\vtkToImplicitTypeErasureStrategy.cxx.obj /out:bin\Debug\vtkFiltersReduction-9.3d.dll /implib:lib\Debug\vtkFiltersReduction-9.3d.lib /pdb:bin\Debug\vtkFiltersReduction-9.3d.pdb /dll /version:9.3 /machine:x64 /debug /INCREMENTAL lib\Debug\vtkCommonExecutionModel-9.3d.lib lib\Debug\vtkCommonDataModel-9.3d.lib lib\Debug\vtkCommonTransforms-9.3d.lib lib\Debug\vtkCommonMath-9.3d.lib lib\Debug\vtkkissfft-9.3d.lib lib\Debug\vtkCommonCore-9.3d.lib lib\Debug\vtksys-9.3d.lib ws2_32.lib dbghelp.lib psapi.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug/intermediate.manifest Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug/manifest.res" failed (exit code 1169) with the following output: vtkCommonCore-9.3d.lib(vtkCommonCore-9.3d.dll) : error LNK2005: "public: __cdecl vtkConstantImplicitBackend<float>::vtkConstantImplicitBackend<float>(float)" (??0?vtkConstantImplicitBackend@M@@QEAA@M@Z) already defined in vtkToImplicitRamerDouglasPeuckerStrategy.cxx.obj vtkCommonCore-9.3d.lib(vtkCommonCore-9.3d.dll) : error LNK2005: "public: __cdecl vtkConstantImplicitBackend\::vtkConstantImplicitBackend\(double)" (??0?vtkConstantImplicitBackend@N@@QEAA@N@Z) already defined in vtkToImplicitRamerDouglasPeuckerStrategy.cxx.obj vtkCommonCore-9.3d.lib(vtkCommonCore-9.3d.dll) : error LNK2005: "public: __cdecl vtkConstantImplicitBackend<char>::vtkConstantImplicitBackend<char>(char)" (??0?vtkConstantImplicitBackend@D@@QEAA@D@Z) already defined in vtkToImplicitRamerDouglasPeuckerStrategy.cxx.objvtkCommonCore-9.3d.lib(vtkCommonCore-9.3d.dll) : error LNK2005: "public: __cdecl vtkConstantImplicitBackend\::vtkConstantImplicitBackend\(signed char)" (??0?vtkConstantImplicitBackend@C@@QEAA@C@Z) already defined in vtkToImplicitRamerDouglasPeuckerStrategy.cxx.obj vtkCommonCore-9.3d.lib(vtkCommonCore-9.3d.dll) : error LNK2005: "public: __cdecl vtkConstantImplicitBackend<unsigned char>::vtkConstantImplicitBackend<unsigned char>(unsigned char)" (??0?vtkConstantImplicitBackend@E@@QEAA@E@Z) already defined in vtkToImplicitRamerDouglasPeuckerStrategy.cxx.obj vtkCommonCore-9.3d.lib(vtkCommonCore-9.3d.dll) : error LNK2005: "public: __cdecl vtkConstantImplicitBackend\::vtkConstantImplicitBackend\(short)" (??0?vtkConstantImplicitBackend@F@@QEAA@F@Z) already defined in vtkToImplicitRamerDouglasPeuckerStrategy.cxx.obj vtkCommonCore-9.3d.lib(vtkCommonCore-9.3d.dll) : error LNK2005: "public: __cdecl vtkConstantImplicitBackend<unsigned short>::vtkConstantImplicitBackend<unsigned short>(unsigned short)" (??0?vtkConstantImplicitBackend@G@@QEAA@G@Z) already defined in vtkToImplicitRamerDouglasPeuckerStrategy.cxx.obj vtkCommonCore-9.3d.lib(vtkCommonCore-9.3d.dll) : error LNK2005: "public: __cdecl vtkConstantImplicitBackend\::vtkConstantImplicitBackend\(int)" (??0?vtkConstantImplicitBackend@H@@QEAA@H@Z) already defined in vtkToImplicitRamerDouglasPeuckerStrategy.cxx.obj vtkCommonCore-9.3d.lib(vtkCommonCore-9.3d.dll) : error LNK2005: "public: __cdecl vtkConstantImplicitBackend<unsigned int>::vtkConstantImplicitBackend<unsigned int>(unsigned int)" (??0?vtkConstantImplicitBackend@I@@QEAA@I@Z) already defined in vtkToImplicitRamerDouglasPeuckerStrategy.cxx.obj vtkCommonCore-9.3d.lib(vtkCommonCore-9.3d.dll) : error LNK2005: "public: __cdecl vtkConstantImplicitBackend\::vtkConstantImplicitBackend\(long)" (??0?vtkConstantImplicitBackend@J@@QEAA@J@Z) already defined in vtkToImplicitRamerDouglasPeuckerStrategy.cxx.objvtkCommonCore-9.3d.lib(vtkCommonCore-9.3d.dll) : error LNK2005: "public: __cdecl vtkConstantImplicitBackend<unsigned long>::vtkConstantImplicitBackend<unsigned long>(unsigned long)" (??0?vtkConstantImplicitBackend@K@@QEAA@K@Z) already defined in vtkToImplicitRamerDouglasPeuckerStrategy.cxx.obj vtkCommonCore-9.3d.lib(vtkCommonCore-9.3d.dll) : error LNK2005: "public: __cdecl vtkConstantImplicitBackend\<__int64\>::vtkConstantImplicitBackend\<__int64\>(__int64)" (??0?vtkConstantImplicitBackend@_J@@QEAA@_J@Z) already defined in vtkToImplicitRamerDouglasPeuckerStrategy.cxx.obj vtkCommonCore-9.3d.lib(vtkCommonCore-9.3d.dll) : error LNK2005: "public: __cdecl vtkConstantImplicitBackend<unsigned __int64>::vtkConstantImplicitBackend<unsigned __int64>(unsigned __int64)" (??0?$vtkConstantImplicitBackend@_K@@QEAA@_K@Z) already defined in vtkToImplicitRamerDouglasPeuckerStrategy.cxx.obj Creating library lib\Debug\vtkFiltersReduction-9.3d.lib and object lib\Debug\vtkFiltersReduction-9.3d.exp bin\Debug\vtkFiltersReduction-9.3d.dll : fatal error LNK1169: one or more multiply defined symbols found [3503/3535] Generating proj.db ninja: build stopped: subcommand failed.

9.3.0就是有这个问题。可以把这个项目关闭,或者用其他的版本。

详见:官网链接
Vtk 9.3.0 Compile Errors with Visual Studio 2022 (Debug) - Development - VTK

相关推荐
VernonJsn16 分钟前
visual studio 2005的MFC各种线程函数之间的调用关系
ide·mfc·visual studio
戎梓漩17 分钟前
windows下安装curl,并集成到visual studio
ide·windows·visual studio
热爱生活的五柒4 小时前
vscode利用ofExtensions插件可以调试单进程Openfoam,但是不能调试mpi多进程案例
ide·vscode·编辑器
界面开发小八哥4 小时前
更高效的Java 23开发,IntelliJ IDEA助力全面升级
java·开发语言·ide·intellij-idea·开发工具
小江村儿的文杰13 小时前
XCode Build时遇到 .entitlements could not be opened 的问题
ide·macos·ue4·xcode
为什么每天的风都这么大14 小时前
Vscode/Code-server无网环境安装通义灵码
ide·vscode·阿里云·编辑器·ai编程·code-server
芝麻团坚果20 小时前
对subprocess启动的子进程使用VSCode python debugger
linux·ide·python·subprocess·vscode debugger
小码ssim20 小时前
IDEA使用tips(LTS✍)
java·ide·intellij-idea
hence..20 小时前
Vscode写markdown快速插入python代码
ide·vscode·python
qq_429856571 天前
idea启动服务报错Application run failed
java·ide·intellij-idea