<?xml version="1.0" encoding="gbk"?>
<rss version="2.0">
<channel>
 <title><![CDATA[交叉编译提示找不到usb.h]]></title>
 <link><![CDATA[http://aiothome.net/read.php?tid=2781]]></link>
 <description><![CDATA[Latest 20 replies of 交叉编译提示找不到usb.h]]></description>
 <copyright><![CDATA[Copyright(C) ]]></copyright>
 <generator><![CDATA[PHPWind Forums by PHPWind Studio]]></generator>
 <lastBuildDate><![CDATA[Sun, 26 Jul 2026 16:07:26 +0000]]></lastBuildDate>
  <image>
 <url><![CDATA[images/rss.gif]]></url>
 <title><![CDATA[PHPWind Board]]></title>
 <link><![CDATA[http://aiothome.net]]></link>
 <description><![CDATA[]]></description>
  </image>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[成功了，谢谢你们[s:2]]]></description>
 <link><![CDATA[http://aiothome.net/read.php?tid=2781#9012]]></link>
 <author><![CDATA[yyh572103]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Sat, 22 Aug 2009 05:36:03 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[哦，不好意思，漏掉一个local
arm-linux-gcc usb_modeswitch.c -o usb_modeswitch -I /home/libusb-arm/usr/local/include/ -L /home/libusb-arm/usr/local/lib/ -lusb]]></description>
 <link><![CDATA[http://aiothome.net/read.php?tid=2781#9001]]></link>
 <author><![CDATA[长风]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Fri, 21 Aug 2009 09:05:24 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[libusb结构如下 

[root@localhost local]# pwd 
[color=#ff0000]/home/libusb-arm/usr/local[/color] 
[root@localhost local]# ls 
[color=#ff0000]bin include lib[/color] 
[root@localhost local]# ls bin/ 
[color=#ff0000]libusb-config[/color] 
[root@localhost local]# ls include/ 
[color=#ff0000]usb.h usbp ..]]></description>
 <link><![CDATA[http://aiothome.net/read.php?tid=2781#9000]]></link>
 <author><![CDATA[yyh572103]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Fri, 21 Aug 2009 08:43:56 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[[quote]引用第10楼kasim于2009-08-21 14:26发表的 : 
把-l /home/libusb-arm/usr/local/include/usb.h 
换成 
-l /home/libusb-arm/usr/local/include 

-I 后面跟的是目录名，表示把该目录加入到编译器搜索头文件的路径中 
[/quote] 
&nbsp;
也有错误
如下
[root@localhost usb_modeswitch-1.0.2]# arm-linux-gcc -I /ho ..]]></description>
 <link><![CDATA[http://aiothome.net/read.php?tid=2781#8998]]></link>
 <author><![CDATA[yyh572103]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Fri, 21 Aug 2009 08:38:16 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[[quote]引用第12楼长风于2009-08-21 16:14发表的 : 
还没编好吗？ 
按你的路径，你这样编译 
arm-linux-gcc usb_modeswitch.c -o usb_modeswitch -I /home/libusb-arm/usr/local/include/ -L /home/libusb-arm/usr/lib/ -lusb 
[/quote] 
&nbsp; 
还是不行 

[root@localhost usb_modeswitch-1.0.2]# ls 
[color=#ff0000] ..]]></description>
 <link><![CDATA[http://aiothome.net/read.php?tid=2781#8997]]></link>
 <author><![CDATA[yyh572103]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Fri, 21 Aug 2009 08:29:39 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[还没编好吗？
按你的路径，你这样编译
arm-linux-gcc usb_modeswitch.c -o usb_modeswitch -I /home/libusb-arm/usr/local/include/ -L /home/libusb-arm/usr/lib/ -lusb]]></description>
 <link><![CDATA[http://aiothome.net/read.php?tid=2781#8993]]></link>
 <author><![CDATA[长风]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Fri, 21 Aug 2009 08:14:35 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[版主帮帮忙[s:12]]]></description>
 <link><![CDATA[http://aiothome.net/read.php?tid=2781#8991]]></link>
 <author><![CDATA[yyh572103]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Fri, 21 Aug 2009 07:55:02 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[把-l /home/libusb-arm/usr/local/include/usb.h 
换成
-l /home/libusb-arm/usr/local/include

-I 后面跟的是目录名，表示把该目录加入到编译器搜索头文件的路径中]]></description>
 <link><![CDATA[http://aiothome.net/read.php?tid=2781#8982]]></link>
 <author><![CDATA[kasim]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Fri, 21 Aug 2009 06:26:29 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[[quote]引用第3楼长风于2009-08-20 15:01发表的 : 
缺少libusb 
交叉编译附件里的源码 
刚测了一下 有了libusb库后， 
usb_modeswitch 就能成功编译了 
[/quote] 

交叉编译了libusb,安装在/home/libusb_arm目录下， /home/libusb-arm/usr/local/include/usb.h 是存在的，可是 
我用arm-linux-gcc -l /home/libusb-arm/us ..]]></description>
 <link><![CDATA[http://aiothome.net/read.php?tid=2781#8980]]></link>
 <author><![CDATA[yyh572103]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Fri, 21 Aug 2009 06:12:15 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[[url]http://read.newbooks.com.cn/info/134684.html&nbsp;[/url] 搜到一个，试试]]></description>
 <link><![CDATA[http://aiothome.net/read.php?tid=2781#8942]]></link>
 <author><![CDATA[yyh572103]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Thu, 20 Aug 2009 08:02:31 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[[quote]引用第3楼长风于2009-08-20 15:01发表的 : 
缺少libusb 
交叉编译附件里的源码 
刚测了一下 有了libusb库后， 
usb_modeswitch 就能成功编译了 
[/quote] 

能否说的详细点，不是很懂，交叉编译libusb要指定安装路径什么的吗？[s:11]]]></description>
 <link><![CDATA[http://aiothome.net/read.php?tid=2781#8941]]></link>
 <author><![CDATA[yyh572103]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Thu, 20 Aug 2009 07:49:41 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[Re:回 3楼(长风) 的帖子]]></title>
 <description><![CDATA[[quote]引用第5楼yyh572103于2009-08-20 15:11发表的 回 3楼(长风) 的帖子 :
好帅，谢谢了，试下先 [s:6]
[/quote]
别忘了把编译好的libusb也放到开发板上去，不然你又该问为什么跑起来说找不到文件了[s:11]]]></description>
 <link><![CDATA[http://aiothome.net/read.php?tid=2781#8938]]></link>
 <author><![CDATA[kasim]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Thu, 20 Aug 2009 07:20:02 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[回 3楼(长风) 的帖子]]></title>
 <description><![CDATA[好帅，谢谢了，试下先 [s:6]]]></description>
 <link><![CDATA[http://aiothome.net/read.php?tid=2781#8936]]></link>
 <author><![CDATA[yyh572103]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Thu, 20 Aug 2009 07:11:48 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[可能我说的不太明白，usb_modeswitch.c中文件包含如下
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;string.h&gt;
//#include &lt;locale.h&gt;
#include &lt;assert.h&gt;
#include &lt;signal.h&gt;
#include &lt;ctype.h&gt;
#include &lt;getopt.h&gt;
#include &lt;usb.h&gt;[color=#ff0000]这 ..]]></description>
 <link><![CDATA[http://aiothome.net/read.php?tid=2781#8935]]></link>
 <author><![CDATA[yyh572103]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Thu, 20 Aug 2009 07:07:46 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[缺少libusb 
交叉编译附件里的源码
刚测了一下 有了libusb库后，
usb_modeswitch 就能成功编译了]]></description>
 <link><![CDATA[http://aiothome.net/read.php?tid=2781#8934]]></link>
 <author><![CDATA[长风]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Thu, 20 Aug 2009 07:01:30 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[不过我好像没看到micro2440手册上有关于usb_modeswitch的部分，你是按照什么说明做的？]]></description>
 <link><![CDATA[http://aiothome.net/read.php?tid=2781#8932]]></link>
 <author><![CDATA[kasim]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Thu, 20 Aug 2009 06:52:11 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[理论上可以放到任何目录下，把该目录用&quot;-I /path/to/directory/contaning/usb.h&quot;参数加到arm-linux-gcc的命令行上就可以了]]></description>
 <link><![CDATA[http://aiothome.net/read.php?tid=2781#8930]]></link>
 <author><![CDATA[kasim]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Thu, 20 Aug 2009 06:49:13 +0000]]></pubdate>
</item>
</channel></rss>