搞了半天,弄了很久一直报错,sdk都删了下了好几遍
发现问题仅仅是一步:
网上的教程都是
头文件leap.h。
并且官官方所给环境测试代码:
引用的头文件也是leap.h
`#include <iostream>
#include <string.h>
#include "Leap.h"
using namespace Leap;
int main(int argc, char** argv) {
std::cout << "Hello Leap motion!!!" << std::endl;
// Keep this process running until Enter is pressed
std::cout << "Press Enter to quit..." << std::endl;
std::cin.get();
return 0;
}`
但是我的leapmotion文档里都是leapC.h
虽然不知道是什么原因,但是也不感兴趣知道。
把测试文件里面的leap.h改成leapc.h就好了
其他的照旧。