提问人:Ross Maxx 提问时间:11/11/2023 最后编辑:Ross Maxx 更新时间:11/11/2023 访问量:19
在 MSVC 上链接 liblo 时,CMake 在 rtosc 上构建失败
CMake build failure on rtosc when liblo is linked on MSVC
问:
我正在尝试构建在 MSVC 上使用 liblo、ci 分支的 rtosc。在建造时,遇到了这个警告
LINK : warning LNK4044: unrecognized option '/LC:/vcpkg/installed/x64-windows/debug/lib'; ignored [D:\BuildAndGit\zynaddsubfx\rtosc\build\liblo.vcxproj]
这会导致很多错误
Building Custom Rule D:/BuildAndGit/zynaddsubfx/rtosc/CMakeLists.txt liblo.c LINK : warning LNK4044: unrecognized option '/LC:/vcpkg/installed/x64-windows/debug/lib'; ignored
[D:\BuildAndGit\zynaddsubfx\rtosc\build\liblo.vcxproj] LINK : warning LNK4044: unrecognized option '/llo'; ignored
[D:\BuildAndGit\zynaddsubfx\rtosc\build\liblo.vcxproj] liblo.obj : error LNK2019: unresolved external symbol lo_message_new referenced in function speed_liblo_write
[D:\BuildAndGit\zynaddsubfx\rtosc\build\liblo.vcxproj] liblo.obj : error LNK2019: unresolved external symbol lo_message_free referenced in function speed_liblo_write
[D:\BuildAndGit\zynaddsubfx\rtosc\build\liblo.vcxproj] liblo.obj : error LNK2019: unresolved external symbol lo_message_add_int32 referenced in function speed_liblo_write
[D:\BuildAndGit\zynaddsubfx\rtosc\build\liblo.vcxproj] liblo.obj : error LNK2019: unresolved external symbol lo_message_add_float referenced in function speed_liblo_write
[D:\BuildAndGit\zynaddsubfx\rtosc\build\liblo.vcxproj] liblo.obj : error LNK2019: unresolved external symbol lo_message_add_string referenced in function speed_liblo_write
[D:\BuildAndGit\zynaddsubfx\rtosc\build\liblo.vcxproj] liblo.obj : error LNK2019: unresolved external symbol lo_message_get_argv referenced in function speed_liblo_read
[D:\BuildAndGit\zynaddsubfx\rtosc\build\liblo.vcxproj] liblo.obj : error LNK2019: unresolved external symbol lo_message_serialise referenced in function speed_liblo_write
[D:\BuildAndGit\zynaddsubfx\rtosc\build\liblo.vcxproj] liblo.obj : error LNK2019: unresolved external symbol lo_message_deserialise referenced in function speed_liblo_read
[D:\BuildAndGit\zynaddsubfx\rtosc\build\liblo.vcxproj] liblo.obj : error LNK2019: unresolved external symbol lo_bundle_new referenced in function main
[D:\BuildAndGit\zynaddsubfx\rtosc\build\liblo.vcxproj] liblo.obj : error LNK2019: unresolved external symbol lo_bundle_add_message referenced in function main
[D:\BuildAndGit\zynaddsubfx\rtosc\build\liblo.vcxproj] liblo.obj : error LNK2019: unresolved external symbol lo_bundle_serialise referenced in function main
[D:\BuildAndGit\zynaddsubfx\rtosc\build\liblo.vcxproj] liblo.obj : error LNK2019: unresolved external symbol lo_bundle_free referenced in function main
[D:\BuildAndGit\zynaddsubfx\rtosc\build\liblo.vcxproj]
[D:\BuildAndGit\zynaddsubfx\rtosc\build\Debug\liblo.exe : fatal error LNK1120: 12 unresolved externals D:\BuildAndGit\zynaddsubfx\rtosc\build\liblo.vcxproj]
在cmake和源文件中查找调用的位置,但没有找到任何内容。/L
编辑:找到了一些更多信息,这些信息是gcc标志,我应该使用的标志是,但我仍然不知道在哪里寻找。在所有cmake文件中查找它,没有找到它。-L
/LIBPATH
答: 暂无答案
评论