USB.h missing

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

USB.h missing

984 次查看
chandraevolute
Contributor V


Hi,    

I am using /opt/poky/1.8/sysroots/cortexa7hf-vfp-neon-poky-linux-gnueabi for compiling my sources. These sources compile perfectly in normal linux machines using GCC. I am using USB driver. I have a line where it says #include<usb.h>. It throws error

compilation terminated.

MSO_Drv.c:3:17: fatal error: usb.h: No such file or directory

#include <usb.h>

I searched in /opt/poky/1.8/sysroots/cortexa7hf-vfp-neon-poky-linux-gnueabi/usr/include/linux and /opt/poky/1.8/sysroots/cortexa7hf-vfp-neon-poky-linux-gnueabi/usr/include folder and it is not present.

What is the solution to resolve this error.

标签 (2)
0 项奖励
1 回复

630 次查看
igorpadykov
NXP Employee
NXP Employee

Hi chandra

please check attached Linux Manual Chapter 39 CHIPIDEA USB Driver,

sect.39.2.3 Menu Configuration Options    and verify that usb driver is included in build.

For custom "MSO_Drv" driver one can request full sources from its vendor.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励