ubuntu环境下的datamatrix二维码识别
一、源码安装libdmtx包
1.使用git进行libdmtx的源码下载
git clone https://git.code.sf.net/p/libdmtx/libdmtx libdmtx-libdmtx
cd libdmtx--libdmtx
2.安装autogen.sh需要的包autoreconf
sudo apt-get install -y autoconf automake libtool pkg-config
3.生成configure
./autogen.sh
4.生成makefile
./configure
5.编译
make
6.编译安装
make install
二、源码安装dmtx-wrappers
1.使用git进行dmtx-wrappers源码下载
git clone https://git.code.sf.net/p/libdmtx/dmtx-wrappers libdmtx-dmtx-wrappers
cd libdmtx-dmtx-wrappers/python
2.安装
python setup.py install
3.测试
python test.py
4.故障排除
ImportError: libdmtx.so.0: cannot open shared object file
/sbin/ldconfig /usr/local/lib
export LD_LIBRARY_PATH=/usr/local/lib