g++ ibutton.cpp -I/usr/include/libusb-1.0 -pthread -lhidapi-hidraw  -fPIC -shared -o libibtn.so

#生成对应的so
gcc ibutton.cpp -I/usr/include/libusb-1.0 -pthread -lhidapi-hidraw  -fPIC -shared -o libibtn.so

gcc libmsr600.cpp -I/usr/include/libusb-1.0 -pthread -lhidapi-hidraw  -fPIC -shared -o libmsr600.so

#no link to hid
gcc hid.c libmsr600.cpp -fPIC -shared -o libmsr600.so


g++ ibutton.cpp -I/usr/include/libusb-1.0 -pthread -lhidapi-hidraw   -o libibtn.o


gcc testibtn.cpp  -L./libibtn.so


gcc -cpp ibutton.cpp -I/usr/include/libusb-1.0 -pthread -lhidapi-hidraw   -o libibtn.o

gcc -cpp ibutton.cpp -I/usr/include/libusb-1.0 -pthread -lhidapi-hidraw   -o libibtn.o

gcc testibtn.cpp -L. -libtn

#测试生成对应的内容
gcc testibtn.cpp -L. -libtn -o test

gcc testmsr.cpp -L. -lmsr600 -ludev -o testmsr


gcc testibtn.cpp -L. -lmsr600 -o testibtn

gcc testauto.cpp -L. -lmsr600 -o testauto


