conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
945 stars 1.72k forks source link

[bug] Can not create Qt packages for Android, iOS #24969

Open DmitrySokolov opened 4 weeks ago

DmitrySokolov commented 4 weeks ago

Describe the bug

To function properly, Qt for Android platform needs paths for a host Qt package. The following Qt files have references to host Qt files.

.\bin\qmake.bat
.\bin\qmake6.bat
.\bin\qtpaths.bat
.\bin\qtpaths6.bat
.\bin\target_qt.conf
.\lib\cmake\Qt6\Qt6Dependencies.cmake

So, when Qt for Android is installed into local cache

conan install --requires Qt6/6.7 --profile .\android.conf

it should:

Problem:

  1. How can I make a dependency on the same package but for other os=Windows setting?

The only solution I see is to split Qt packages to platform specific names, i.e, instead of Qt6 there will be qt6-andoid, qt6-windows, etc.

  1. How can I find out the local cache path to a package binary folder?

How to reproduce it

No response

jcar87 commented 4 weeks ago

Hi @DmitrySokolov thanks for asking this question.

Could you please post the details of your Android conan profile so that we can try to reproduce this on our end? moving this issue to conan-center-index as it is related to the Qt recipe there

DmitrySokolov commented 4 weeks ago

Hi,

I use

[settings]
os=Android
os.api_level=21
arch=armv8
compiler=clang
compiler.version=17
compiler.cppstd=17
compiler.libcxx=c++_static
build_type=Release

but you can use any suitable profile