zxing leak memory
1.使用此目录zxing-cpp
- https://github.com/glassechidna/zxing-cpp/tree/master
问题:
- 由于板子的内存比较小,会出现Out of memory 的问题,在PC上测试是不会出现问题。
同时不支持C++17的编译器。
解决方案
- 对zxing-cpp 版本分别测试验证。
结果:
编译:
cd zxing-cpp
mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/xxx/workspace/gitcode/zxing-cpp-1.1.1/install ..
make
make install
question
编译报错需要修改: