Code Monkey home page Code Monkey logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
I can build it, but when I run it from Java I got
hidapi-jni.dll: Can't find dependent libraries

Same env: win 7 & VS 2010 Express

Original comment by [email protected] on 3 Nov 2011 at 1:37

from javahidapi.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
I'm sorry I can't offer more help than this, but I just successfully built the 
dll for x64 and tested that it is working with Java. It sounds like the issue 
is with your environments and not the API itself.

I am also using Windows 7 and VS 2010 Express.

Original comment by [email protected] on 12 Nov 2011 at 8:27

from javahidapi.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
I solved the problem. One should check target architecture! If it's 32bit it 
WILL NOT WORK. It should to be changed to x64. If VS doesn't have one, you 
should install Windows 7 SDK and change toolset in project configuration. Then 
change target arch. to 64bit.

Original comment by [email protected] on 14 Nov 2011 at 10:58

from javahidapi.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
I'm also getting the linker errors (unresolved external symbol). I have the 
opposite problem though in that the win32 platform builds with no errors but 
the x64 fails. I'm using Win7 and I've tried it with VS Express and Premium. 

Question or bartek..:
 When you said "change toolset in project configuration" did you mean Property Pages > Configuration Properties > General Platform Toolset? Did you set it to 'Windows7.1SDK'?

I've done that for the x64 platform and no change.

Quick sample:

1>Link:
1>     Creating library 
C:\playground\MMP\SW\javahidapi\windows\Release\hidapi.lib and object 
C:\playground\MMP\SW\javahidapi\windows\Release\hidapi.exp
1>hid-java.obj : error LNK2001: unresolved external symbol 
__imp_WideCharToMultiByte
1>hid.obj : error LNK2001: unresolved external symbol __imp_CreateFileA
...

Original comment by [email protected] on 22 Nov 2011 at 6:55

from javahidapi.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
Windows build files has been updated.

Original comment by [email protected] on 10 Jan 2012 at 12:52

  • Changed state: Fixed

from javahidapi.

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.