Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating ZXing-C++ to the latest version #7

Open
tanius opened this issue Jun 20, 2020 · 0 comments
Open

Updating ZXing-C++ to the latest version #7

tanius opened this issue Jun 20, 2020 · 0 comments

Comments

@tanius
Copy link

tanius commented Jun 20, 2020

Since I just finished updating the ZXing-C++ library dependency for an application where I integrated QZXingNu, I wanted to report my experience to hopefully save you some time doing the same some day.

For updating to nu-book/zxing-cpp commit ed55911 (from 2020-06-19), you would have to:

  • In file CMakeLists.txt here, update target_link_libraries(${PROJECT_NAME} … ZXingCore) to target_link_libraries(${PROJECT_NAME} … ZXing::ZXing) (or just ZXing depending on what you decide about Linking to ZXing::Core instead of ZXingCore #4 )

  • In file qzingnu.h, update enum class BarcodeFormat (here) with the new values provided in the corresponding class in ZXing-C++. (Maybe you can just rely on that class via #include <ZXing/BarcodeFormat.h> instead of having to copy that code in?)

At that point, builds will work and applications can decode barcodes, but there will be some deprecation warnings in the output. That's because ZXing-C++ has a new interface, demonstrated here for a Qt application and discussed here. I did not yet work that out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant