如何安装libusb? [英] How to install libusb?

查看:40
本文介绍了如何安装libusb?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很难安装 libusb.我浏览了一些 YouTube 视频,他们在谈论安装"libusb.我浏览了另一个教程,他们说我们需要手动"构建它.但是,我从 http://sourceforge.net/projects/libusb-win32/files/下载了 libusb.

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

在我的下载中,没有安装软件(根据视频,是libusb_win32.exe).

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

我的操作系统是 Windows 7 Ultimate 32 位.PC 是戴尔 Inspiron 4030(我也需要在台式机上安装它).IDE 是 Qt,可与 Visual Studio 2010 编译器配合使用.

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.

我该如何安装?

推荐答案

我敢打赌你下载的是一个 .zip 文件,里面没有安装程序(可能名为 libusb-win32-bin-1.2.6.0.zip).原因是您无需安装任何东西即可使其正常工作.

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.

您只需解压,然后使用 LibUSB 将 libusb-win32-bin-1.2.6.0\include 添加到您的项目的包含目录中.然后,您必须将 libusb-win32-bin-1.2.6.0\lib\msvc 添加到您的项目使用的库中.如果你不知道怎么做这里是一个有用的链接,可以让它与 MSVC 2010 一起使用.

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.

这篇关于如何安装libusb?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆