You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm unable to compile an image with bitbake when serialport is added to a recipe. Here's my recipe (generated by devtool and fixed manually):
# Recipe created by recipetool
# This is the basis of a recipe and may need further editing in order to be fully functional.
# (Feel free to remove these comments when editing.)
SUMMARY = "Node.js package to access serial ports. Linux, OSX and Windows. Welcome your robotic JavaScript overlords. Better yet, program them!"
# WARNING: the following LICENSE and LIC_FILES_CHKSUM values are best guesses - it is
# your responsibility to verify that the values are complete and correct.
#
# The following license files were not able to be identified and are
# represented as "Unknown" below, you will need to check them yourself:
# node_modules/node-addon-api/LICENSE.md
#
# NOTE: multiple licenses have been detected; they have been separated with &
# in the LICENSE value for now since it is a reasonable assumption that all
# of the licenses apply. If instead there is a choice between the multiple
# licenses then you should change the value to separate the licenses with |
# instead of &. If there is any doubt, check the accompanying documentation
# to determine which situation is applicable.
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=bb7eae1c2fbb280c72665db9a1efc896"
SRC_URI = " \
npm://registry.npmjs.org/;package=serialport;version=${PV} \
npm://registry.npmjs.org/;package=@serialport/binding-mock;version=10.2.2;subdir=node_modules/@serialport/binding-mock \
npm://registry.npmjs.org/;package=@serialport/bindings-cpp;version=10.8.0;subdir=node_modules/@serialport/bindings-cpp \
npm://registry.npmjs.org/;package=@serialport/bindings-interface;version=1.2.2;subdir=node_modules/@serialport/bindings-interface \
npm://registry.npmjs.org/;package=@serialport/parser-byte-length;version=10.5.0;subdir=node_modules/@serialport/parser-byte-length \
npm://registry.npmjs.org/;package=@serialport/parser-cctalk;version=10.5.0;subdir=node_modules/@serialport/parser-cctalk \
npm://registry.npmjs.org/;package=@serialport/parser-delimiter;version=10.5.0;subdir=node_modules/@serialport/parser-delimiter \
npm://registry.npmjs.org/;package=@serialport/parser-inter-byte-timeout;version=10.5.0;subdir=node_modules/@serialport/parser-inter-byte-timeout \
npm://registry.npmjs.org/;package=@serialport/parser-packet-length;version=10.5.0;subdir=node_modules/@serialport/parser-packet-length \
npm://registry.npmjs.org/;package=@serialport/parser-readline;version=10.5.0;subdir=node_modules/@serialport/parser-readline \
npm://registry.npmjs.org/;package=@serialport/parser-ready;version=10.5.0;subdir=node_modules/@serialport/parser-ready \
npm://registry.npmjs.org/;package=@serialport/parser-regex;version=10.5.0;subdir=node_modules/@serialport/parser-regex \
npm://registry.npmjs.org/;package=@serialport/parser-slip-encoder;version=10.5.0;subdir=node_modules/@serialport/parser-slip-encoder \
npm://registry.npmjs.org/;package=@serialport/parser-spacepacket;version=10.5.0;subdir=node_modules/@serialport/parser-spacepacket \
npm://registry.npmjs.org/;package=@serialport/stream;version=10.5.0;subdir=node_modules/@serialport/stream \
npm://registry.npmjs.org/;package=debug;version=4.3.7;subdir=node_modules/debug \
npm://registry.npmjs.org/;package=ms;version=2.1.3;subdir=node_modules/ms \
npm://registry.npmjs.org/;package=node-addon-api;version=5.1.0;subdir=node_modules/node-addon-api \
npm://registry.npmjs.org/;package=node-gyp-build;version=4.8.4;subdir=node_modules/node-gyp-build \
"
S = "${WORKDIR}/npm"
inherit npm
LICENSE:${PN} = "MIT"
LICENSE:${PN}-serialport-binding-mock = "MIT"
LICENSE:${PN}-serialport-bindings-cpp = "MIT"
LICENSE:${PN}-serialport-bindings-interface = "MIT"
LICENSE:${PN}-serialport-parser-byte-length = "MIT"
LICENSE:${PN}-serialport-parser-cctalk = "MIT"
LICENSE:${PN}-serialport-parser-delimiter = "MIT"
LICENSE:${PN}-serialport-parser-inter-byte-timeout = "MIT"
LICENSE:${PN}-serialport-parser-packet-length = "MIT"
LICENSE:${PN}-serialport-parser-readline = "MIT"
LICENSE:${PN}-serialport-parser-ready = "MIT"
LICENSE:${PN}-serialport-parser-regex = "MIT"
LICENSE:${PN}-serialport-parser-slip-encoder = "MIT"
LICENSE:${PN}-serialport-parser-spacepacket = "MIT"
LICENSE:${PN}-serialport-stream = "MIT"
LICENSE:${PN}-debug = "MIT"
LICENSE:${PN}-ms = "MIT"
LICENSE:${PN}-node-addon-api = "MIT"
LICENSE:${PN}-node-gyp-build = "MIT"
it seems like the issue is in the binding-cpp in the binding.gyp, it's calling the node-addon-api: 'include_dirs': ["<!(node -p \"require('node-addon-api').include_dir\")"],
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm unable to compile an image with bitbake when serialport is added to a recipe. Here's my recipe (generated by devtool and fixed manually):
it seems like the issue is in the binding-cpp in the binding.gyp, it's calling the node-addon-api:
'include_dirs': ["<!(node -p \"require('node-addon-api').include_dir\")"],
And the full log:
I've been trying with latest version of serialport and the same issue occures. Node version: 20.12.2, yocto build scarthgap for ARM64 (imx8.mp).
Thank for advice!
G.
Beta Was this translation helpful? Give feedback.
All reactions