Open AbhishankarBM opened 8 months ago
There are 2 issues there:
mosquitto/1.4.15@bincrafters/stable
is a very old, legacy package from years ago that it is not in ConanCenter at all. That is from the bincrafters community. You should be looking for the modern alternatives in ConanCenter https://conan.io/centerOk, this might be related to the yocto setup, and Conan Python interpreter picking some libraries, openssl or something from yocto instead of the correct one, and then failing because of that. I'd suggest reporting how you installed Conan, and then maybe trying to use the self-contained Conan executable that can be downloaded from https://conan.io/downloads, and try with it.
pip install conan
kas shell
, meta-conan will be cloned to my build folder and automatically appended to build/conf/bblayers.conf.
bitbake <image>
conan remote enable conancenter
in my do_install().-This is my .bb file
inherit conan
DESCRIPTION = "An open source MQTT broker"
LICENSE = "EPL-2.0"
CONAN_PKG = "mosquitto/2.0.15"
do_install() {
conan remote enable conancenter
conan install --requires=mosquitto/2.0.15 --profile default -of /home/user/
}
conan install
command I am doing inside do_install()
I am using meta-conan with my yocto sdk and when I try to do the below in in yocto recipe,
conan install --requires=mosquitto/1.4.15@bincrafters/stable --profile default -of /home/user
I am getting an error which says,
| ======== Computing dependency graph ======== | mosquitto/1.4.15@bincrafters/stable: Not found in local cache, looking in remotes... | mosquitto/1.4.15@bincrafters/stable: Checking remote: conancenter | Graph root | cli | ERROR: Package 'mosquitto/1.4.15@bincrafters/stable' not resolved: HTTPSConnectionPool(host='center.conan.io', port=443): Max retries exceeded with url: /v1/ping (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb5a7f33d30>, 'Connection to center.conan.io timed out. (connect timeout=30)'))