QUIRC error in OpenCV 4

which version, exactly ?
did you buil that locally ?

error means, that libquirc was not linked against the objdetect module, when building the opencv libs
(there isnt anything you can do, when building your program)