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

Compilation error in QZXing::registerQMLTypes #16

Closed
oKcerG opened this issue Jan 17, 2017 · 3 comments
Closed

Compilation error in QZXing::registerQMLTypes #16

oKcerG opened this issue Jan 17, 2017 · 3 comments

Comments

@oKcerG
Copy link
Contributor

oKcerG commented Jan 17, 2017

../../src/QZXing.h:84:19: error: 'QZXingFilter' was not declared in this scope
qmlRegisterType<QZXingFilter>("QZXing", 2, 3, "QZXingFilter");

It seems this is caused by 75eb47e

@oKcerG
Copy link
Contributor Author

oKcerG commented Jan 17, 2017

Thanks for the fast reaction :)
Bur there is still a compilation error (now in QZxIngFilter.h) :

In file included from ../../src/QZXing.h:19:0,
from ../QZXingLive/main.cpp:8:
../../src/QZXingFilter.h:76:9:` error: 'QZXing' does not name a type

I guess this comes from the cyclic inclusion of QZXing and QZXingFilter.
The registerType (and imageProvider maybe) definition should be in QZXing.cpp

ftylitak added a commit that referenced this issue Jan 17, 2017
…r. Had to make decoder variable as pointer in order to avoid the compiler requirement to known the exact size of the class...that had to be forward declared. Properly addresses issue #16
@ftylitak
Copy link
Owner

Reopening till I get confirmation from @oKcerG

@ftylitak
Copy link
Owner

I am closing this issue since the compilation issue was fixed and I would like to decouple this issue from the #17.

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

2 participants