1.编译modulecomm生成so文件。
2.编译testpythoncpp生成so文件。
3.将上述两个so文件拷贝到pythonreadpic.py所在目录。
4.用sudo apt-get install patchelf。
5.patchelf --set-rpath '$ORIGIN' libmodulecomm.so。
6.patchelf --set-rpath '$ORIGIN' libtestpythoncpp.so。
7.修改pythonreadpic.py的mylib.registelisten("usbpic")，指定到监听的共享内存名称。
8.运行python pythonreadpic.py即可查看图片。
9.其它工程可以参照。
