vs2019 compile zxing cpp source code

vs2019 compile zxing cpp source code

1. Download the source code from zxing official website, the official website address https://github.com/nu-book/zxing-cpp

2. Run cmake as an administrator, the cmake version is 3.20.4, select the zxing-cpp source code, and formulate the compiled folder path, see the following figure for details:

insert image description here

3. Click Configure in the above picture, select the compiled ide, I choose vs2019 here, and select the platform, I choose x64 here, and then camake starts compiling

insert image description here
insert image description here
Here will report qt5 error, don’t need to care about it, it will be like this after compiling,
insert image description here
finally click Generate, and the vs2019 project zxing.sln will appear in your compiling directory

A small reminder is that after downloading the open source code, do not delete the .github folder, otherwise cmake will report an error.

Guess you like

Origin blog.csdn.net/weixin_42280271/article/details/118766241