Zxing is the code for bar code scanning and formation, including the source code for Android, iPhone, and C ++. This time I transplanted the ZIP file of version 1.6 downloaded in zxing. I can also search for the QT code of qqrdecoder on the Internet, but it contains the old version and can only recognize the QR code, that is, a QR code. And there is not much interference and clear picture under the photo.
I copied zxing from CPP/CORE/src in version 1.6 to qqrdecoder, but encountered the trouble of always failing to compile the code. It took almost a week to complete, but I finally found the reason, and I recorded it.
It turns out that the. Pro file in QT will always be added once each copy, so there will always be a lot of multiple definition. There is no error in the code. In fact, I have read the pro file before, but I didn't take it into consideration. I think it should be correct. Now we can see that QT depends on the Pro file. This is the main problem. Of course, there are still some minor code problems. You can just change them. For example, if there is an error about the string insert function, you only need to forcibly convert it. The datamatrix code and qrcode Code have some repeated code. In fact, I am wondering that they are different namespaces. Maybe they all write the zxing space when they are used, therefore, the carbide compiler is not identified, but the compilation in Linux is successful. I can only compile datamatrix if it is blocked. I will study it again next week.
Well, let's write so much. After it is completely successful, let's make a summary.