def METHOD_NAME(self):
    if self.settings.compiler.get_safe("cppstd"):
        tools.check_min_cppstd(self, self._minimum_cpp_standard)
    min_version = self._minimum_compilers_version.get(str(self.settings.compiler))
    if not min_version:
        self.output.warn("{} recipe lacks information about the {} compiler support.".format(
            self.name, self.settings.compiler))
    else:
        if tools.Version(self.settings.compiler.version) < min_version:
            raise ConanInvalidConfiguration("{} requires C++{} support. The current compiler {} {} does not support it.".format(
                self.name, 
                self._minimum_cpp_standard, 
                self.settings.compiler, 
                self.settings.compiler.version))
    if not self.options["qt"].shared: 
        raise ConanInvalidConfiguration("Shared Qt lib is required.") 