Ads 468x60px

##EasyReadMore##

14 9月, 2017

Add mosquitto racipe to SDK for yocto

以下為不成功的編譯 但可以瞭解流程
可直接跳至 “meta-intel-iot-middleware” 開始

下載 mosquitto_1.4.10.bb:

mkdir mosquitto;cd mosquitto
# wget http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel-iot-middleware/plain/recipes-connectivity/mosquitto/mosquitto_1.4.10.bb
# wget http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel-iot-middleware/plain/recipes-connectivity/mosquitto/files/build.patch
# wget http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel-iot-middleware/plain/recipes-connectivity/mosquitto/files/mosquitto.service
meta-intel-iot-middleware - Shared middleware recipes for Intel IoT platforms - https://goo.gl/QSFqLp

需將 build.patch mosquitto.service 放置 files 資料夾裡
# mkdir files
# mv build.patch mosquitto.service files
否則會得到下面的 warning 訊息:

image
Unable to get checksum for mosquitto SRC_URI entry build.patch: file could not be found
Unable to get checksum for mosquitto SRC_URI entry mosquitto.service: file could not be found

image

Nothing PROVIDES 'c-ares' (but /home/oknow/workspace/genericx86-64-jethro-14.0.0/meta/recipes-support/mosquitto/mosquitto_1.4.10.bb DEPENDS on or otherwise requires it)

cat mosquitto_1.4.10.bb 可以看到內容要求 c-ares
DEPENDS = "openssl util-linux c-ares"

基本上再把 c-ares 放進去即可

但 intel 有提供 meta-intel-iot-middleware
裡面包含了這幾種原件 相依上會比較完整
而事實上 上面找到的 bb 檔也是從 meta-intel-iot-middleware 裡的 mosquitto 拉出來的

下載 meta-intel-iot-middleware:

# git clone git://git.yoctoproject.org/meta-intel-iot-middleware
將 Yocto Metadata Layers
# cp -r meta-intel-iot-middleware/ genericx86-64-jethro-14.0.0/
再執行 Hob 就沒什麼問題了

image

image

如果有需要其它的東西可以到下面網址找找:
http://git.yoctoproject.org/

0 意見:

張貼留言

 
Blogger Templates