2 zc dirk zc_dirk 于 2014.11.29 16:53 提问

关于leapmotion和opengl工程缺少lib文件的问题

我从网上看到了一个关于LeapMotion钢琴演奏的工程,拿到自己电脑上就无法运行了,显示如下错误,哪位大神能不能帮我是缺少哪个lib文件了?

1>CPianoMelody.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) protected: virtual thiscall Leap::Interface::~Interface(void)" (imp_??1Interface@Leap@@MAE@XZ),该符号在函数 "public: virtual thiscall Leap::FingerList::~FingerList(void)" (??1FingerList@Leap@@UAE@XZ) 中被引用
1>LeapSample.obj : error LNK2001: 无法解析的外部符号 "
declspec(dllimport) protected: virtual thiscall Leap::Interface::~Interface(void)" (imp_??1Interface@Leap@@MAE@XZ)
1>CPianoMelody.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: struct Leap::Vector thiscall Leap::Pointable::tipPosition(void)const " (imp_?tipPosition@Pointable@Leap@@QBE?AUVector@2@XZ),该符号在函数 "public: bool thiscall CPianoMelody::OccurGesture(class Leap::KeyTapGesture const &)" (?OccurGesture@CPianoMelody@@QAE_NABVKeyTapGesture@Leap@@@Z) 中被引用
1>LeapSample.obj : error LNK2001: 无法解析的外部符号 "
declspec(dllimport) public: struct Leap::Vector thiscall Leap::Pointable::tipPosition(void)const " (imp_?tipPosition@Pointable@Leap@@QBE?AUVector@2@XZ)
1>CPianoMelody.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: struct Leap::Vector thiscall Leap::Pointable::tipVelocity(void)const " (imp_?tipVelocity@Pointable@Leap@@QBE?AUVector@2@XZ),该符号在函数 "public: bool thiscall CPianoMelody::OccurGesture(class Leap::KeyTapGesture const &)" (?OccurGesture@CPianoMelody@@QAE_NABVKeyTapGesture@Leap@@@Z) 中被引用
1>CPianoMelody.obj : error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: class Leap::Pointable thiscall Leap::KeyTapGesture::pointable(void)const " (imp_?pointable@KeyTapGesture@Leap@@QBE?AVPointable@2@XZ),该符号在函数 "public: bool thiscall CPianoMelody::OccurGesture(class Leap::KeyTapGesture const &)" (?OccurGesture@CPianoMelody@@QAE_NABVKeyTapGesture@Leap@@@Z) 中被引用
1>CPianoMelody.obj : error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: thiscall Leap::FingerList::FingerList(void)" (imp_??0FingerList@Leap@@QAE@XZ),该符号在函数 "public: thiscall CPianoMelody::CPianoMelody(void)" (??0CPianoMelody@@QAE@XZ) 中被引用
1>CPianoMelody.obj : error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: class Leap::FingerList thiscall Leap::Frame::fingers(void)const " (imp_?fingers@Frame@Leap@@QBE?AVFingerList@2@XZ),该符号在函数 "public: bool thiscall CPianoMelody::UpdateData(class Leap::Frame const &)" (?UpdateData@CPianoMelody@@QAE_NABVFrame@Leap@@@Z) 中被引用
1>LeapSample.obj : error LNK2001: 无法解析的外部符号 "
declspec(dllimport) public: class Leap::FingerList thiscall Leap::Frame::fingers(void)const " (imp_?fingers@Frame@Leap@@QBE?AVFingerList@2@XZ)
1>LeapSample.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class Leap::Hand thiscall Leap::Pointable::hand(void)const " (imp_?hand@Pointable@Leap@@QBE?AVHand@2@XZ),该符号在函数 "public: virtual void thiscall PianoListener::onFrame(class Leap::Controller const &)" (?onFrame@PianoListener@@UAEXABVController@Leap@@@Z) 中被引用
1>LeapSample.obj : error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: struct Leap::Vector thiscall Leap::Hand::palmPosition(void)const " (imp_?palmPosition@Hand@Leap@@QBE?AUVector@2@XZ),该符号在函数 "public: virtual void thiscall PianoListener::onFrame(class Leap::Controller const &)" (?onFrame@PianoListener@@UAEXABVController@Leap@@@Z) 中被引用
1>LeapSample.obj : error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: enum Leap::Gesture::Type thiscall Leap::Gesture::type(void)const " (imp_?type@Gesture@Leap@@QBE?AW4Type@12@XZ),该符号在函数 "public: virtual void thiscall PianoListener::onFrame(class Leap::Controller const &)" (?onFrame@PianoListener@@UAEXABVController@Leap@@@Z) 中被引用
1>LeapSample.obj : error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: enum Leap::Gesture::State thiscall Leap::Gesture::state(void)const " (imp_?state@Gesture@Leap@@QBE?AW4State@12@XZ),该符号在函数 "public: virtual void thiscall PianoListener::onFrame(class Leap::Controller const &)" (?onFrame@PianoListener@@UAEXABVController@Leap@@@Z) 中被引用
1>LeapSample.obj : error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: int thiscall Leap::Gesture::id(void)const " (imp_?id@Gesture@Leap@@QBEHXZ),该符号在函数 "public: virtual void thiscall PianoListener::onFrame(class Leap::Controller const &)" (?onFrame@PianoListener@@UAEXABVController@Leap@@@Z) 中被引用
1>LeapSample.obj : error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: thiscall Leap::SwipeGesture::SwipeGesture(class Leap::Gesture const &)" (imp_??0SwipeGesture@Leap@@QAE@ABVGesture@1@@Z),该符号在函数 "public: virtual void thiscall PianoListener::onFrame(class Leap::Controller const &)" (?onFrame@PianoListener@@UAEXABVController@Leap@@@Z) 中被引用
1>LeapSample.obj : error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: struct Leap::Vector thiscall Leap::SwipeGesture::direction(void)const " (imp_?direction@SwipeGesture@Leap@@QBE?AUVector@2@XZ),该符号在函数 "public: virtual void thiscall PianoListener::onFrame(class Leap::Controller const &)" (?onFrame@PianoListener@@UAEXABVController@Leap@@@Z) 中被引用
1>LeapSample.obj : error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: float thiscall Leap::SwipeGesture::speed(void)const " (imp_?speed@SwipeGesture@Leap@@QBEMXZ),该符号在函数 "public: virtual void thiscall PianoListener::onFrame(class Leap::Controller const &)" (?onFrame@PianoListener@@UAEXABVController@Leap@@@Z) 中被引用
1>LeapSample.obj : error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: thiscall Leap::ScreenTapGesture::ScreenTapGesture(class Leap::Gesture const &)" (imp_??0ScreenTapGesture@Leap@@QAE@ABVGesture@1@@Z),该符号在函数 "public: virtual void thiscall PianoListener::onFrame(class Leap::Controller const &)" (?onFrame@PianoListener@@UAEXABVController@Leap@@@Z) 中被引用
1>LeapSample.obj : error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: struct Leap::Vector thiscall Leap::ScreenTapGesture::position(void)const " (imp_?position@ScreenTapGesture@Leap@@QBE?AUVector@2@XZ),该符号在函数 "public: virtual void thiscall PianoListener::onFrame(class Leap::Controller const &)" (?onFrame@PianoListener@@UAEXABVController@Leap@@@Z) 中被引用
1>LeapSample.obj : error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: struct Leap::Vector thiscall Leap::ScreenTapGesture::direction(void)const " (imp_?direction@ScreenTapGesture@Leap@@QBE?AUVector@2@XZ),该符号在函数 "public: virtual void thiscall PianoListener::onFrame(class Leap::Controller const &)" (?onFrame@PianoListener@@UAEXABVController@Leap@@@Z) 中被引用
1>LeapSample.obj : error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: thiscall Leap::KeyTapGesture::KeyTapGesture(class Leap::Gesture const &)" (imp_??0KeyTapGesture@Leap@@QAE@ABVGesture@1@@Z),该符号在函数 "public: virtual void thiscall PianoListener::onFrame(class Leap::Controller const &)" (?onFrame@PianoListener@@UAEXABVController@Leap@@@Z) 中被引用
1>LeapSample.obj : error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: int thiscall Leap::FingerList::count(void)const " (imp_?count@FingerList@Leap@@QBEHXZ),该符号在函数 "public: virtual void thiscall PianoListener::onFrame(class Leap::Controller const &)" (?onFrame@PianoListener@@UAEXABVController@Leap@@@Z) 中被引用
1>LeapSample.obj : error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: class Leap::Finger thiscall Leap::FingerList::operatorconst " (imp_??AFingerList@Leap@@QBE?AVFinger@1@H@Z),该符号在函数 "public: virtual void thiscall PianoListener::onFrame(class Leap::Controller const &)" (?onFrame@PianoListener@@UAEXABVController@Leap@@@Z) 中被引用
1>LeapSample.obj : error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: bool thiscall Leap::HandList::isEmpty(void)const " (imp_?isEmpty@HandList@Leap@@QBE_NXZ),该符号在函数 "public: virtual void thiscall PianoListener::onFrame(class Leap::Controller const &)" (?onFrame@PianoListener@@UAEXABVController@Leap@@@Z) 中被引用
1>LeapSample.obj : error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: int thiscall Leap::GestureList::count(void)const " (imp_?count@GestureList@Leap@@QBEHXZ),该符号在函数 "public: virtual void thiscall PianoListener::onFrame(class Leap::Controller const &)" (?onFrame@PianoListener@@UAEXABVController@Leap@@@Z) 中被引用
1>LeapSample.obj : error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: bool thiscall Leap::GestureList::isEmpty(void)const " (imp_?isEmpty@GestureList@Leap@@QBE_NXZ),该符号在函数 "public: virtual void thiscall PianoListener::onFrame(class Leap::Controller const &)" (?onFrame@PianoListener@@UAEXABVController@Leap@@@Z) 中被引用
1>LeapSample.obj : error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: class Leap::Gesture thiscall Leap::GestureList::operatorconst " (imp_??AGestureList@Leap@@QBE?AVGesture@1@H@Z),该符号在函数 "public: virtual void thiscall PianoListener::onFrame(class Leap::Controller const &)" (?onFrame@PianoListener@@UAEXABVController@Leap@@@Z) 中被引用
1>LeapSample.obj : error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: class Leap::HandList thiscall Leap::Frame::hands(void)const " (imp_?hands@Frame@Leap@@QBE?AVHandList@2@XZ),该符号在函数 "public: virtual void thiscall PianoListener::onFrame(class Leap::Controller const &)" (?onFrame@PianoListener@@UAEXABVController@Leap@@@Z) 中被引用
1>LeapSample.obj : error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: class Leap::GestureList thiscall Leap::Frame::gestures(void)const " (imp_?gestures@Frame@Leap@@QBE?AVGestureList@2@XZ),该符号在函数 "public: virtual void thiscall PianoListener::onFrame(class Leap::Controller const &)" (?onFrame@PianoListener@@UAEXABVController@Leap@@@Z) 中被引用
1>LeapSample.obj : error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: thiscall Leap::Controller::Controller(void)" (imp_??0Controller@Leap@@QAE@XZ),该符号在函数 main 中被引用
1>LeapSample.obj : error LNK2019: 无法解析的外部符号 "
_declspec(dllimport) public: virtual thiscall Leap::Controller::~Controller(void)" (imp_??1Controller@Leap@@UAE@XZ),该符号在函数 _main 中被引用

2个回答

zc_dirk
zc_dirk   2014.11.29 16:54

还有一段...

1>LeapSample.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: bool thiscall Leap::Controller::addListener(class Leap::Listener &)" (imp_?addListener@Controller@Leap@@QAE_NAAVListener@2@@Z),该符号在函数 main 中被引用
1>LeapSample.obj : error LNK2019: 无法解析的外部符号 "
_declspec(dllimport) public: bool thiscall Leap::Controller::removeListener(class Leap::Listener &)" (imp_?removeListener@Controller@Leap@@QAE_NAAVListener@2@@Z),该符号在函数 main 中被引用
1>LeapSample.obj : error LNK2019: 无法解析的外部符号 "
_declspec(dllimport) public: class Leap::Frame thiscall Leap::Controller::frame(int)const " (imp_?frame@Controller@Leap@@QBE?AVFrame@2@H@Z),该符号在函数 "public: virtual void thiscall PianoListener::onFrame(class Leap::Controller const &)" (?onFrame@PianoListener@@UAEXABVController@Leap@@@Z) 中被引用
1>LeapSample.obj : error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: void thiscall Leap::Controller::enableGesture(enum Leap::Gesture::Type,bool)const " (imp_?enableGesture@Controller@Leap@@QBEXW4Type@Gesture@2@_N@Z),该符号在函数 "public: virtual void thiscall PianoListener::onConnect(class Leap::Controller const &)" (?onConnect@PianoListener@@UAEXABVController@Leap@@@Z) 中被引用
1>LeapSample.obj : error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: thiscall Leap::Listener::Listener(void)" (imp_??0Listener@Leap@@QAE@XZ),该符号在函数 "public: thiscall PianoListener::PianoListener(void)" (??0PianoListener@@QAE@XZ) 中被引用
1>LeapSample.obj : error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: virtual thiscall Leap::Listener::~Listener(void)" (imp_??1Listener@Leap@@UAE@XZ),该符号在函数 "public: virtual __thiscall PianoListener::~PianoListener(void)" (??1PianoListener@@UAE@XZ) 中被引用
1>LeapSample.obj : error LNK2001: 无法解析的外部符号 "public: virtual void __thiscall Leap::Listener::onDeviceChange(class Leap::Controller const &)" (?onDeviceChange@Listener@Leap@@UAEXABVController@2@@Z)
1>LeapSample.obj : error LNK2001: 无法解析的外部符号 "public: virtual void __thiscall Leap::Listener::onServiceConnect(class Leap::Controller const &)" (?onServiceConnect@Listener@Leap@@UAEXABVController@2@@Z)
1>LeapSample.obj : error LNK2001: 无法解析的外部符号 "public: virtual void __thiscall Leap::Listener::onServiceDisconnect(class Leap::Controller const &)" (?onServiceDisconnect@Listener@Leap@@UAEXABVController@2@@Z)

u010747632
u010747632   2016.09.20 14:59

添加依赖性 opengl32.lib glu32.lib

Csdn user default icon
上传中...
上传图片
插入图片