LiangliangNan / MVStudio

An integrated SfM (Structure from Motion) and MVS (Multi-View Stereo) solution.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

严重性 代码 说明 项目 文件 行 禁止显示状态 错误 LNK2019 无法解析的外部符号 __imp_timeGetTime,该符号在函数 "public: static int __cdecl ClockTimer::ClockMS(void)" (?ClockMS@ClockTimer@@SAHXZ) 中被引用 MVStudio G:\MVStudio-1.0\MVStudio-1.0\build\MVStudio\sift_gpu.lib(GlobalUtil.obj) 1

yuanhn5206 opened this issue · comments

after solve that problem, it comes this, it seem sift_gpu do not work well

我检查了链接,看起来并没有问题,不知为何还是会报错

after solve that problem, it comes this, it seem sift_gpu do not work well

What is "that problem"?
Please include your hardware and system information and explain how to reproduce this issue. It works without any problem on my laptop (with macOS).

I make this project in windows11, VS2015,after cmake, I open MVStudio-1.0.sln by VS2015 and build it, sift_gpu.lib failed to link, error log is :

严重性 代码 说明 项目 文件 行 禁止显示状态
错误 LNK2019 无法解析的外部符号 __imp_timeGetTime,该符号在函数 "public: static int __cdecl ClockTimer::ClockMS(void)" (?ClockMS@ClockTimer@@SAHXZ) 中被引用 MVStudio G:\MVStudio-1.0\MVStudio-1.0\build\MVStudio\sift_gpu.lib(GlobalUtil.obj) 1

I try to link sift_gpu manual, still failed to compile, maybe you can give me some sugestions
cmake version:3.21.2 + VS 2015
hardware:
AMD 3700x + NVidia gtx 1660s

Can you try adding the following code at the end of MVStudio/3rd_party/SiftGPU/CMakeLists.txt?

if (WIN32)
    target_link_libraries(sift_gpu Winmm.lib)
endif (WIN32)

Any update?

yeah, it works well. thank you so much.