High-tech-digital-modules / iceoryx-nodejs

this is bindning of iceoryx library for nodejs
3 stars 3 forks source link

Is it possible to embed icoryx in the npm package to make the installation easier? #1

Open falcon027 opened 1 year ago

falcon027 commented 1 year ago

I found this project and I like the idea of making iceoryx usable with node-js. The friction I encountered was that it is quite tedious to install iceoryx and set the variables to make it work. The readme mentions an idea for a possible easier way to do this, e.g. by including the library in the npm package.

What do you think, is this possible?

DanielLazarHTDM commented 1 year ago

HI @falcon027. Well yeah it is possible making e.g. git clone of iceoryx and build it. I didn't spent any additional time to make it easier yet. Maybe we can do default values and ged rid of

export ICEORYX_NODEJS_LIB=/usr/local/lib
export ICEORYX_NODEJS_INCLUDE=/usr/local/include/iceoryx/<VERSION>

by replacing values and version of headers will be automatically found. The problem is somehow iox-roundi which needs to be live globaly in your system. So you do need it running and iceoryx installed in your system anyways. But yeah iceoryx plan to do debian package so instalation will be much easier and than also this installation could be handled without exporting env variables. So it will end up by

sudo apt-get install iceoryx
npm install iceoryx-nodejs

Is it more acceptable for you ?