Comments (5)
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.
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.
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.
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.
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)
- Reading input reports via GET_REPORT to EP0 not supported?
- How to detect insertion and removal events with javahidapi?
- parameter incorrect error when writing data to the USB HID device HOT 3
- Java byte is no a right type to pass BYTES
- NullPointerException for ubuntu 12.04 HOT 1
- Trouble using the writing after using it once
- Write function not working on MAC OS X 10.7.5 HOT 1
- Device.Write() throwing Invalid Parameter Error HOT 1
- NullPointerException in HIDManager.openByPath() and openById() HOT 1
- Library crashes under OSX 10.9
- Closing hid device after writing causes Java vm to crash on Mac
- Windows 8.1 suspends HID connections through USB
- Please fix the stack guard
- CRC Error in Windows
- Null Pointer error on list device() method --java.lang.reflect.InvocationTargetException HOT 1
- Error opening device by id on windows 8
- Incorrect Function error when writing to device
- Not able to read DataLogic Scanner, Device is null with Windows 7 and Windows 8.1
- did not claim interface 0 before use
- Cannot open the device (java.lang.NullPointerException)
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 javahidapi.