'How to install Zxing CPP (C++) on RaspberryPi

As the title, I want to build an environment of ZXing C++ on Raspberry Pi.
According to the https://github.com/nu-book/zxing-cpp instruction, I try to build it.
However, I face some problems, like Cmake error below.
Anyone has the experience that build a environment of ZXing C++, and compile programs successfully?
Hope you can share the steps, thanks!!!

enter image description here

enter image description here

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source