Coder Social home page Coder Social logo

Comments (7)

jeffsp avatar jeffsp commented on August 30, 2024

@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.

Bash885 avatar Bash885 commented on August 30, 2024

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.

jeffsp avatar jeffsp commented on August 30, 2024

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.

joseguerr avatar joseguerr commented on August 30, 2024

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.

Bash885 avatar Bash885 commented on August 30, 2024

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.

joseguerr avatar joseguerr commented on August 30, 2024

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.

kuldeep429 avatar kuldeep429 commented on August 30, 2024

Thanks José Guerra!! it helped!! :)

from matleap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.