Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
H3D.org Feeds
H3D.org Forum Index
   Programming Issues
     .lib not found for NiFalconHapticsDevice
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
_mrbloom
Posted on: 2012/6/26 16:27
Not too shy to talk
Joined: 2012/6/7
From:
Posts: 12
.lib not found for NiFalconHapticsDevice
Hi there, I am having a problem in finding the .lib for Falcon support at linking time, usinf HAPI library (not h3dAPI). It looks like a common problem from the previous posts of this forum, which I have looked at and weren't helpful to me though.

1>HapticManager.obj error LNK2001unresolved external symbol "__declspec(dllimport) protected: virtual bool __thiscall HAPI::NiFalconHapticsDevice::releaseHapticsDevice(void)" (__imp_?releaseHapticsDevice@NiFalconHapticsDevice@HAPI@@MAE_NXZ)
1>HapticManager.obj error LNK2001unresolved external symbol "__declspec(dllimport) protected: virtual bool __thiscall HAPI::NiFalconHapticsDevice::initHapticsDevice(int)" (__imp_?initHapticsDevice@NiFalconHapticsDevice@HAPI@@MAE_NH@Z)
1>HapticManager.obj error LNK2001unresolved external symbol "__declspec(dllimport) protected: virtual void __thiscall HAPI::NiFalconHapticsDevice::sendOutput(struct HAPI::HAPIHapticsDevice::DeviceOutput &,double)" (__imp_?sendOutput@NiFalconHapticsDevice@HAPI@@MAEXAAUDeviceOutput@HAPIHapticsDevice@2@N@Z)
1>HapticManager.obj error LNK2001unresolved external symbol "__declspec(dllimport) protected: virtual void __thiscall HAPI::NiFalconHapticsDevice::updateDeviceValues(struct HAPI::HAPIHapticsDevice::DeviceValues &,double)" (__imp_?updateDeviceValues@NiFalconHapticsDevice@HAPI@@MAEXAAUDeviceValues@HAPIHapticsDevice@2@N@Z)
1>HapticManager.obj error LNK2001unresolved external symbol "__declspec(dllimport) public: virtual __thiscall HAPI::NiFalconHapticsDevice::~NiFalconHapticsDevice(void)" (__imp_??1NiFalconHapticsDevice@HAPI@@UAE@XZ)
1>HapticManager.obj error LNK2001unresolved external symbol "__declspec(dllimport) public: __thiscall HAPI::NiFalconHapticsDevice::NiFalconHapticsDevice(unsigned int)" (__imp_??0NiFalconHapticsDevice@HAPI@@QAE@I@Z)
1>C:Usersccmiccmi_editor_datalibsFalconHaptics.dll fatal error LNK11206 unresolved externals



I am defining HAVE_NIFALCONAPI, the headers are indeed included. I tried to set the path to C:\Program Files\Novint\HDAL_SDK_2.1.3\lib\hdl.lib in the used .lib but nothing changed

The weird thing is that if I use AnyHapticDevice everything works correctly, even without including hdl.lib. This means that the code to manage the Falcon device must be somewhere in the HAPI library

Not using CMake though
_mrbloom
Posted on: 2012/6/26 17:12
Not too shy to talk
Joined: 2012/6/7
From:
Posts: 12
Re: .lib not found for NiFalconHapticsDevice
ok I solved by using the class FalconHapticsDevice() which I have discovered by doing

/* AnyHapticDevice hd; */ 
typeid(*(hd->getActualHapticsDevice())).name();


This class is not listed in the API documentation though
Threaded | Newest First Previous Topic | Next Topic | Top

Register To Post
 



(C) 2012 SenseGraphics AB    ---    Powered by XOOPS