﻿编译方法：
1，将文件夹中的内容拷到/root/testpro目录下，
2，然后运行如下命令：

1 g++  -c  /root/testpro/testpro.cpp 

2 g++  -c  /root/testpro/SoftKeyPro.cpp 

3 g++  -c  /root/testpro/SoftKey.cpp 

4 g++ -o test.out SoftKey.o SoftKeyPro.o testpro.o -lrt -lusb


如报sem_open的错误，则加入-lprtread 