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

Cannot install qt 6.7.0 prebuilt binary on Windows #16215

Closed
1 task
ABBAPOH opened this issue May 7, 2024 · 9 comments · Fixed by conan-io/conan-center-index#24876
Closed
1 task

Cannot install qt 6.7.0 prebuilt binary on Windows #16215

ABBAPOH opened this issue May 7, 2024 · 9 comments · Fixed by conan-io/conan-center-index#24876
Assignees

Comments

@ABBAPOH
Copy link
Contributor

ABBAPOH commented May 7, 2024

What is your question?

Hello, I am trying to install Qt prebuilt binariy on Windows.
Here's my profile:

[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=17
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=193
os=Windows

conan install --requires=qt/6.7.0

ERROR: Missing prebuilt package for 'qt/6.7.0'. You can try:
    - List all available packages using 'conan list qt/6.7.0:* -r=remote'
    - Explain missing binaries: replace 'conan install ...' with 'conan graph explain ...'
    - Try to build locally from sources using the '--build=qt/6.7.0' argument

More Info at 'https://docs.conan.io/2/knowledge/faq.html#error-missing-prebuilt-package'

conan graph explain --requires=qt/6.7.0

======== Closest binaries ========
qt/6.7.0
  qt/6.7.0#0d41d85b2ab456f5751faa25c1554581%1712318691.56 (2024-04-05 12:04:51 UTC)
    qt/6.7.0#0d41d85b2ab456f5751faa25c1554581:024d8d75a587ccc6ec19a5f6e7082c608ea3527b
      remote: conancenter
      settings: Windows, x86_64, Release, msvc, 17, dynamic, Release, 193
      options(diff):
      requires: brotli/1.1.Z, bzip2/1.0.Z, double-conversion/3.3.Z, freetype/2.13.Z, glib/2.78.Z, harfbuzz/8.3.Z, libffi/3.4.Z, libgettext/0.22.Z, libiconv/1.17.Z, libpng/1.6.Z, libpq/15.4.Z, md4c/0.4.Z, openssl/3.2.Z, pcre2/10.42.Z, sqlite3/3.45.Z, zlib/1.3.Z
      diff
        options
          expected: qtdeclarative=True, qtdoc=True, qttools=True, qttranslations=True
          existing: qtdeclarative=False, qtdoc=False, qttools=False, qttranslations=False
        explanation: This binary was built with the same settings, but different options

conan graph explain --requires=qt/6.7.0 -o:h qt/*:qttools=False

======== Computing dependency graph ========
ERROR: qt/6.7.0: Error in configure() method, line 229
        _enablemodule(module_name)
while calling '_enablemodule', line 217
        setattr(self.options, mod, True)
        ConanException: Incorrect attempt to modify option 'qttools' from 'False' to 'True'

Tried setting options in the conanfile.py:

    def config_options(self):
        self.options["qt"].qtdeclarative = False
        self.options["qt"].qtdoc = False
        self.options["qt"].qttools = False
        self.options["qt"].qttranslations = False

Same error.
I have run out of ideas, any help appreciated.

Have you read the CONTRIBUTING guide?

  • I've read the CONTRIBUTING guide
@memsharded memsharded self-assigned this May 7, 2024
@memsharded
Copy link
Member

Hi @ABBAPOH

Thanks for your report.

I have been able to reproduce, first I also got the same "Missing binary" error, and then:

(conan2_310) λ conan graph explain --requires=qt/6.7.0 -s compiler.cppstd=17 -o qt*:qtdeclarative=False -o qt*:qtdoc=False -o qt*:qttools=False -o qt*:qttranslation=False

======== Computing dependency graph ========
ERROR: qt/6.7.0: Error in configure() method, line 229
        _enablemodule(module_name)
while calling '_enablemodule', line 217
        setattr(self.options, mod, True)
        ConanException: Incorrect attempt to modify option 'qtdeclarative' from 'False' to 'True'

This looks like a bug in the recipe in ConanCenter, not in Conan itself, I'll try to have a look.

@ABBAPOH
Copy link
Contributor Author

ABBAPOH commented May 7, 2024

@jcar87
Copy link
Contributor

jcar87 commented May 7, 2024

Hi @ABBAPOH , thank you for reporting this.
We have located the issue in the Conan Center recipe. Apologies for this - we will be more careful in the future.

@glennaycock
Copy link

I get the same issues with Linux. All the dependency options affect the package ID.

@jcar87
Copy link
Contributor

jcar87 commented Jun 10, 2024

Hi @glennaycock - thanks for reporting this.

Looking to sort this out - however it's not ideal.
We can set essential_modules=False for everyone, but that probably means reduced functionality
Or we can set essential_modules=True, but we maintain too many qt versions and this has a severe impact on our CI.

While we address this, in the meantime:

  • if you pass -o "qt/*:essential_modules=False" and are using a configuration that matches our CI, you should get the same binaries that we currently have published
  • pass -o "qt/*:essential_modules=True" and --build=missing

It really does depend on what your needs are with regards to the components that qt should have been built with

@jcar87
Copy link
Contributor

jcar87 commented Aug 8, 2024

@ABBAPOH , @glennaycock - this is being fixed in conan-io/conan-center-index#24876

@jcar87
Copy link
Contributor

jcar87 commented Aug 12, 2024

Should be fixed with the most recent recipe revision (might take ~20 minutes to be published).

@jcar87 jcar87 closed this as completed Aug 12, 2024
@ABBAPOH
Copy link
Contributor Author

ABBAPOH commented Aug 12, 2024

I'll try take a look tonight, thanks!

@ABBAPOH
Copy link
Contributor Author

ABBAPOH commented Aug 13, 2024

Works for me now, thanks!

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

Successfully merging a pull request may close this issue.

4 participants