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

[question] how to use qt/5.15.2@ recipe? #6024

Closed
AndreyMlashkin opened this issue Jun 22, 2021 · 6 comments
Closed

[question] how to use qt/5.15.2@ recipe? #6024

AndreyMlashkin opened this issue Jun 22, 2021 · 6 comments
Labels
question Further information is requested

Comments

@AndreyMlashkin
Copy link
Contributor

AndreyMlashkin commented Jun 22, 2021

I am trying to switch from the obsolete bincrafters recipe to qt/5.15.2@
As starting point, I take a test_package/conanfile.py

There is a "qt" generator used

generators = "qt", "cmake", "cmake_find_package_multi", "qmake"

If I try to use this generator in my recipe, I get the following error:

ERROR: Invalid generator 'qt'. Available types: txt, gcc, compiler_args, cmake, cmake_multi, cmake_paths, cmake_find_package, cmake_find_package_multi, qmake, qbs, scons, visual_studio, visual_studio_multi, visual_studio_legacy, xcode, ycm, virtualenv, virtualenv_python, virtualbuildenv, virtualrunenv, boost-build, pkg_config, json, b2, premake, make, deploy, markdown, CMakeToolchain, CMakeDeps, MSBuildToolchain, MesonToolchain, MSBuildDeps, QbsToolchain, msbuild, VirtualEnv, AutotoolsDeps, AutotoolsToolchain, AutotoolsGen, BazelDeps, BazelToolchain

I use

Conan version 1.37.2

Without this generator, I get the following error in both test_package and in my recipe:

  Could not find a package configuration file provided by "Qt5" with any of
  the following names:

    Qt5Config.cmake
    qt5-config.cmake

  Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
  to a directory containing one of the above files.  If "Qt5" provides a
  separate development package or SDK, be sure it has been installed.```
@AndreyMlashkin AndreyMlashkin added the question Further information is requested label Jun 22, 2021
@ericLemanissier
Copy link
Contributor

These errors are unexpected: "qt" generator should be available and Qt5::foo targets should be available
Can you please send your conanfile, profile, the command you are executing, and the full output ?

@AndreyMlashkin
Copy link
Contributor Author

I have cleaned the local cache and it seems, the problem is gone, thank you!

@AndreyMlashkin
Copy link
Contributor Author

I have another issue, not really related:
is there already support for Qt5:X11Extras module?

@ericLemanissier
Copy link
Contributor

the module can be built with option -o qt:qtx11extras=True, but it currently be consumed only from qmake projects because the recipe does not yet create the cmake targets for this module

@AndreyMlashkin
Copy link
Contributor Author

Thanks a lot!

@AndreyMlashkin
Copy link
Contributor Author

I have opened a PR about adding x11 extras
#6030

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

No branches or pull requests

2 participants