-
Notifications
You must be signed in to change notification settings - Fork 1k
[bug] conan does not set env variables from profile [buildenv] in package_info, which leads to pkg-config issues #18128
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
Comments
Hi @qwertzui11
Thanks for your report, and thanks for your kind words! I think there is a limitation in the I'll run a quick check. |
I have reproduced in test in PR #18130 Indeed, it is a limitation of the current I'll bring it to discuss with the team for ConanCenter potential solutions. What capacity do you have for customizing recipes? are you already using the flow documented in https://docs.conan.io/2/devops/using_conancenter.html to create your own binaries from a fork of |
Thats great news! Thanks a lot for your fast reply!
The client I'm working for has a Jfrog Artifactory instance, so I'm able to add patched recipes. Aka: export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/mnt/work/Development/conan-fun/toolchain/sysroots/armv8a-poky-linux/usr/lib/pkgconfig"
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/mnt/work/Development/conan-fun/toolchain/sysroots/armv8a-poky-linux/usr/share/pkgconfig"
conan install \
--profile:build default \
--profile:host ./tools/conan-profiles/arm64v8-toolchain \
--remote conancenter \
--build missing \
-s build_type=Release \
. I'm looking forward to the outcome of the discussion and I'd be happy to test or contribute in some other way 😃 Thanks again! 🎉 |
Hi @qwertzui11 - thanks for opening this issue. What we typically expect from a toolchain that provides a Is there any documentation from yocto/poky as to how to use |
We also had this issue, and managed to workaround it by changing the "system" recipes as described here #13962 |
That's very good to know, thanks for the clarification.
No, not really. One resource recommends to use Let me vent a bit: cross-compilation iiiisss such a terrible experience with C++ and its eco-system. eg, Back to the topic. In conclusion I used |
Thanks for the feedback @qwertzui11! |
Describe the bug
Hi! Let me start of by saying thanks for your great work with conan.
My current goal is to setup a hello-world qt project for arm64v8.
The OS-Team gave me a nice toolchain to compile for the arm64v8 platform.
BuildOS: ubuntu24.04
conan-version: 2.15.0
How to reproduce it
I got the following
conanfile.py
created byconan new cmake_exe -d name=foo -d version=1.0
Using
conan install
conan install \ --profile:build default \ --profile:host ./tools/conan-profiles/arm64v8-toolchain \ --remote conancenter \ --build missing \ -s build_type=Release \ .
with the host profile
Results in the following error log
The thing is, that
/mnt/work/Development/conan-fun/toolchain/sysroots/armv8a-poky-linux/usr/lib/pkgconfig
contains thegl.pc
.I can verify it by using all the values from the
conan
logs:gives
gl = 1.2
. Without the environment variablesPKG_CONFIG_PATH
I get the same error like conan.So I assume there is an issue with
conan
inpackage_info
not setting the environment variables given by the[buildenv]
profile.The
PKG_CONFIG_PATH
works nicely in other contexts with conan.What do you think?
Thanks for your time! :)
Cheers
The text was updated successfully, but these errors were encountered: