-
Notifications
You must be signed in to change notification settings - Fork 43
Failed loadLibrary KCBv2 in Matlab #16
Comments
Hi @ADNewbie
You could follow official workaround The most simple approach is to use macro to wrap #ifdef __cplusplus
extern "C" {
#endif |
Please let me know if this is still an issue. |
Hi mkostin, |
I wonder if it is too late. But I think I find a way to use Kinect v2 in matlab without KinectCommonBridge. The "kinect.h" in Kinect SDK actually has a C interface. Just define CINTERFACE before including "kinect.h" then you can avoid the C++ part. Of course you still need to write some code to convert data between Kinect SDK and matlab matrix and compile a library so that the interface is properly warped. But it shouldn't be too difficult. After that, you can use loadlibrary to load the library and call the functions. I already tried the initialization part and the Kinect light up. So I believe the rest should also work. |
Hopefully I'm not too late on this but I've gotten it to work in MATLAB2015b on a Windows 8 machine, https://github.com/jmarkow/kinect-acquisition Not well documented but the k2 scripts in the |
I am trying to load KCBv2 into Matlab (2014a on Windows 8.1). The library compiles fine on MS VS2013, but fails using loadLibrary following the procedure here: Matlab Link
Errors:
Function pointer types are unsupported in structures
extern "C" { found in file. C++ files are not supported. Use #ifdef __cplusplus to protect
Any suggestions?
The text was updated successfully, but these errors were encountered: