-
Notifications
You must be signed in to change notification settings - Fork 981
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
[bug] Conan package doesn't find other conan package as dependency in a yocto environment #9621
Comments
Hi @ukaiser I suspect this could be something in the paho-mqtt-cpp/1.2.0 recipe, that could be failing for some cross-compile scenario. Maybe related conan-io/conan-center-index#3760? One of the first things that could be tried is cross-compiling that recipe for another architecture, for example, and see if the recipe in general is able to cross-compile successfully. If it does, then probably is related to "sysroot"-like specifics of the Yocto environment, and CMake using some other find module instead of the Conan generated one. |
I agree, it should be related to cross-compiler + PahoMQTT. I would move this issue to conan-center-index. Besides that, we need the profile used to try to reproduce. However, using the Docker image conanio/gcc9-armv7hf, all build fine. Of, course, is different from Yocto, but still is cross-building. My full log: Details$ conan install paho-mqtt-cpp/1.2.0@ -o paho-mqtt-cpp:ssl=False -o paho-mqtt-cpp:shared=False --build missing --install-folder build-conan paho-mqtt-cpp/1.2.0: Not found in local cache, looking in remotes... Cross-build from 'Linux:x86_64' to 'Linux:armv7hf' paho-mqtt-c/1.3.8: Copying sources to build folder
-- Build files have been written to: /home/conan/.conan/data/paho-mqtt-c/1.3.8///build/816065fbcab3faf801de50ee7a0b6500c779d038 paho-mqtt-cpp/1.2.0: Copying sources to build folder
-- Build files have been written to: /home/conan/.conan/data/paho-mqtt-cpp/1.2.0///build/0a7918ae5974d9a7edd75451e937d668e278d58c |
Based on the output:
My bet is that the build is using other find module, probably belonging to yocto cmake or something like that. |
Yes, it sounds something affected by Yocto environment which is changing the Cmake root module path, like, searching on Yocto folders instead of using Conan folders. |
hello @uilianries ! |
@dornbirndevelops Excellent find, let's see if it works for @ukaiser |
Environment Details (include every applicable attribute)
Steps to reproduce (Include if Applicable)
I'm in the process of converting a embedded linux appliaction from checked in dependencies in the repo to using conan.
conanfile.txt
The package paho-mqtt-cpp has a dependency to paho-mqtt-c.
If I now execute the command
in the yocto environment the paho-mqtt-c package gets build correctly. But while configuring the paho-mqtt-cpp package
cmake can't find the paho-mqtt-c library. See logs.
If I exceute conan install for the host system all buidls without an error.
Logs (Executed commands with output) (Include/Attach if Applicable)
Conan Logs
ENV
The text was updated successfully, but these errors were encountered: