Leap Motion C++库未被识别

Leap Motion C++ Libraries not being recognized?

本文关键字:识别 Motion C++ Leap      更新时间:2023-10-16

我一直在用Java玩跳跃动作,它很好。。但后来我尝试使用C++,但似乎无法实现。我使用的是Visual Studio 2012,并正确设置了库和include目录。尽管如此,我总是会出现这样的错误:

1>Sample.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: virtual __thiscall Leap::Interface::~Interface(void)" (__imp_??1Interface@Leap@@MAE@XZ) referenced in function "public: virtual __thiscall Leap::FingerList::~FingerList(void)" (??1FingerList@Leap@@UAE@XZ)

这只是其中一个错误,但我最终得到了50(这意味着LeapMotion没有识别任何功能,尽管可视化工具确实显示了数据)。

有人能帮我吗?

谢谢!

我遇到了同样的问题。我设置了库和include文件夹以及输入lib文件,但由于我设置了调试模式,所以一直出现错误(未解析的符号)。您必须在Win32或x64之间进行选择,并使用Leap SDK中提供的特定库。这解决了问题。虽然我的机器是64位的,但在Configuration Manager上,我有调试Win32,因为我也在使用Cinder,而不仅仅是Leap Motion设备。

对于其他遇到这个问题的人,这里有更多关于在Visual Studio中设置Leap Motion项目的文档:

https://developer.leapmotion.com/documentation/Languages/C++/Guides/Leap_C++_Development.html