Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试构建一个包含 VTK 库的简单 Qt 应用程序,但出现链接错误:
从 vtksys.lib 引用的 Reg....A 函数未解析(如 RegOpenKeyExA)。
我认为我有 Advapi32.lib 链接。
我应该以某种方式在构建中指定 ASCII 还是缺少库或什么?
您用于构建 VTK 的编译器是什么?Qt呢?他们是一样的吗?似乎 Qt 和 VTK 之间的大多数关联问题是由于库文件不匹配造成的。
你的 CMakeLists.txt 是什么样的?你应该有这样的一行:
target_link_libraries(YourProgram QVTK ${VTK_LIBRARIES})