Comments (7)
@Bash885 I don't think that it is an SDK compatibility issue. The linker is not able to find any Leap library functions.
Matleap does not specifically support MinGW64, but I think you can solve your problem by looking at build.m.
Lines 13 through 24 set the libdir_switch which needs to point to the Leap library. Later, on line 34, it prints the command that is sent to the mex compiler.
Please examine the output from line 34, Evaluating "mex -I./LeapSDK/include -L..."
, and make sure whatever comes after the -L
points to the correct location of the Leap SDK library. If it does not, you may need to edit that file and correct it.
Let me know how it goes.
Thanks,
Jeff
from matleap.
Thanks Jeff for the quick response.
After copying the Matleap file into the desktop and adding the LeapSDK folder, I tried the following in the command line to ensure that the right path to Leap.lib is included:
mex matleap.cpp -IC:\Users\TwoFlower\Desktop\matleap-master\LeapSDK\include -LC:\Users\TwoFlower\Desktop\matleap-master\LeapSDK\lib\x64 -lLeap
It is still giving the same error (which is by the way the same as if I remove the syntax after "-L...", hence you are right about linker not finding/identifying Leap library). This is very mysterious. Could it be that the compiler is not appropriately reading Leap.lib or the new Leap.lib is not really compatible with Matleap?
Thanks once more for your great help.
from matleap.
Does Leap support MinGW? I see some very old posts that say that it does not, but I am not sure if more current versions support it. The libraries in LeapSDK\lib\x64 are likely for Linux. Probably for MinGW, you will link with .lib files, which are stubs for their respective .dll... but I'm not 100% certain.
Since you are developing on Windows, you may consider installing the free version of Visual Studio and using that instead of MinGW.
from matleap.
Sorry to bother you @Bash885 but i have stumbled upon the exact same issue. Did you manage to find a solution for this problem?
Cheers,
José
from matleap.
Dear joseguerr,
No the error persisted and I could not build the mex-file on Windows 10 to be able to use the leap motion data (namely finger positions) in real-time in MATLAB. Let me know please if you find a solution,
Regards,
Bash
from matleap.
Hey there @Bash885,
I solved the problem by compiling with Visual Studio. In my case i used the 2013 community version and it worked for Matlab 2016a and 2017a. Be careful when running the build.m file because it will sometimes compiling with MinGW64 even if you have Visual Studio as your default compiler (select the Visual Studio compiler again if that's the case). A message will appear just after the final step so you can always check what compiler was used. Good luck!
Cheers,
José Guerra
from matleap.
Thanks José Guerra!! it helped!! :)
from matleap.
Related Issues (20)
- mxCreateNumericMatrix error on Windows HOT 1
- Tool tracking HOT 2
- "collect2.exe: error: ld returned 1 exit status Error in build (line 37) eval(cmd)" HOT 10
- Connection problem [solved] HOT 2
- [Noob] - How to find the functions of the library? HOT 1
- hand info for pointable data HOT 2
- How to start build the mex file HOT 5
- Crash on MATLAB 2017a HOT 3
- does not detect all the fingers HOT 2
- Not enough input arguments HOT 5
- build error HOT 2
- Build error HOT 5
- 0 frames HOT 1
- LeapMotion SDK 4.0.0 Incompability HOT 10
- Problem of drawing 2 hands in matleap
- Build error HOT 1
- Test lagging HOT 1
- Camera Image Capture Enhancement HOT 13
- hi HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matleap.