How to install libusb?

强颜欢笑 提交于 2021-02-11 12:41:01

问题


I am having hard time installing libusb. I went across some YouTube videos, and they were talking about "INSTALLING" libusb. I went across another tutorial and they are saying we need to build it "manually". However, I downloaded libusb from http://sourceforge.net/projects/libusb-win32/files/.

In my download, there is no software to install (according to video, it is libusb_win32.exe).

My OS is Windows 7 Ultimate 32 bit. The PC is a Dell Inspiron 4030 (I need to install this in my desktop PC as well). The IDE is Qt, which works with the Visual Studio 2010 compiler.

How can I install this?


回答1:


I bet what you downloaded is a .zip file with no installer in it (probably named libusb-win32-bin-1.2.6.0.zip). The reason is that you don't have anything to install to have it work.

You only have to unzip it and then, add libusb-win32-bin-1.2.6.0\include to the include directories of your project using LibUSB. Then, you will have to add libusb-win32-bin-1.2.6.0\lib\msvc to the libraries used by your project. If you don't know how to do that here is a useful link to have it work with MSVC 2010.



来源:https://stackoverflow.com/questions/16444900/how-to-install-libusb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!