Closed ElmadiSkygreen closed 4 years ago
@ElmadiSkygreen There is no error here, just warning. The package is correctly installed
@robertsLando Thank you for you fast response. Unfortunately I don't get openzwave-shared running. I was trying for 15 days now and I have no clue why.
When I run node test2.js
I get the following error:
node: symbol lookup error: /home/pi/node_modules/openzwave-shared/build/Release/openzwave_shared.node: undefined symbol: _ZN9OpenZWave7Options6CreateERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_
Furter up it says Initialising OpenZWave 1.6.1044 binary addon for Node.JS.
This is exactly the version I have installed and built.
ldd -r /home/pi/node_modules/openzwave-shared/build/Release/openzwave_shared.node
gives out
linux-vdso.so.1 (0xbef64000)
libopenzwave.so.1.6 => /usr/local/lib/libopenzwave.so.1.6 (0xb6d90000)
libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0xb6c49000)
libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6bc7000)
libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb6b9a000)
libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6b70000)
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6a22000)
libresolv.so.2 => /lib/arm-linux-gnueabihf/libresolv.so.2 (0xb69fe000)
/lib/ld-linux-armhf.so.3 (0xb6f79000)
And /usr/local/lib is exactly location where the library belongs to. There is just one library on the system.
I checked with sudo find / -name 'libopenzwave.so'
I did two major tries:
1. I installed the openzwave library 1.6 manually according to
https://github.com/mozilla-iot/wiki/wiki/Installing-OpenZWave
And did npm install openzwave-shared
afterwards
2. I installed the precompiled Raspbian/ARMv6 packages 1.4 according to
https://github.com/OpenZWave/node-openzwave-shared/blob/master/README-raspbian.md
And did npm install openzwave-shared
afterwards
--> both ways ended in the same error message with test2.js.
Between all my tries I set up the raspberry from the image. Clean base.
I also found this issue #203. Tried everithing. Nothing helped. Only thing: The link from ptskyin commented on 7 Jan 2019 is not valid anymore. This could be a lead.
Anybody any clue.
Did you try to run the command sudo ldconfig
?
Yes, I did (with V1.4 and V1.6). This didn't help.
My exact procedure (for V1.6)
Install Node-Red
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
node-red-start
Install OpenZWave-library
sudo apt-get install pkg-config
--> was allready installed
cd
git clone https://github.com/OpenZWave/open-zwave.git
cd open-zwave
CFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 make && sudo CFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 make install
--> Building OpenZWave Version 1.6-1044-g2e18ba84 - 1.6.1044
The Library was installed to /usr/local/lib --> Therefore I skipped ln -s
with lib64
sudo ldconfig
MinOZW /dev/ttyACM0
--> Starting MinOZW with OpenZWave Version 1.6-1044-g2e18ba84
Install node-openzwave-shared
npm install openzwave-shared
cd /home/pi/node_modules/openzwave-shared/
node test2.js
--> ERROR
hi do ho Today I tryed again with a Dell computer and Ubuntu Server 18.04.3 LTS
I exactly followed the procedure decribed above "My exact procedure (for V1.6)"
Exept, this time the library was installed to /usr/local/lib64. Therefore I had to execute
sudo ln -s /usr/local/lib64/libopenzwave.so /usr/local/lib/libopenzwave.so
sudo ln -s /usr/local/lib64/libopenzwave.so.1.6 /usr/local/lib/libopenzwave.so.1.6
before the sudo ldconfig
And I got the exact same error as with the Raspberry PI ???
MinOZW /dev/ttyACM0
worked
node test2.js
resultes in:
node: symbol lookup error: /home/pi/node_modules/openzwave-shared/build/Release/openzwave_shared.node: undefined symbol: _ZN9OpenZWave7Options6CreateERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_
And like before
ldd -r /home/pi/node_modules/openzwave-shared/build/Release/openzwave_shared.node
gives out:
linux-vdso.so.1 (0x00007fff3a761000) libopenzwave.so.1.6 => /usr/local/lib/libopenzwave.so.1.6 (0x00007fafd3a0b000) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fafd3682000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fafd346a000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fafd324b000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fafd2e5a000) libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007fafd2c3f000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fafd28a1000) /lib64/ld-linux-x86-64.so.2 (0x00007fafd401d000)
Everything looks fine to me.
Why the hack isn't this working? Any ideas?
Did you try export LD_LIBRARY_PATH=/usr/local/lib64
?
I just tried. It does not change anything.
export LD_LIBRARY_PATH=/usr/local/lib64
sudo ldconfig
againnpm install openzwave-shared
--> Always the same result:
"symbol lookup error: /home/pi/node_modules/openzwave-shared/build/Release/openzwave_shared.node: undefined symbol: _ZN9OpenZWave7Options6CreateERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8S8"I have no idea, it works on all my instances
Dear comunity, dear @robertsLando After one and a halve month and hours in front of the computer it finaly works!
First I followed the installation manual on https://github.com/mozilla-iot with no success. The instructions on https://github.com/OpenZWave/node-openzwave-shared/blob/master/README-ubuntu.md brought light into the darkness. The key was the different download location for the Open-Zwave library as well as the other make and build command.
This here works:
wget http://old.openzwave.com/downloads/openzwave-<version>.tar.gz
make && sudo make install
Have fun with OpenZWave and stay healthy! Elmadi Skygreen
Glad you fixed it and sorry if I couldn’t give you more help with that.
Stay healty! Cheers
Daniel
On 30 Mar 2020, at 21:11, ElmadiSkygreen notifications@github.com wrote:
Dear comunity, dear @robertsLando After one and a halve month and hours in front of the computer it finaly works!
First I followed the installation manual on https://github.com/mozilla-iot with no success. The instructions on https://github.com/OpenZWave/node-openzwave-shared/blob/master/README-ubuntu.md brought light into the darkness. The key was the different download location for the Open-Zwave library as well as the other make and build command. This here works: wget http://old.openzwave.com/downloads/openzwave-
.tar.gz make && sudo make install Have fun with OpenZWave and stay healthy! Elmadi Skygreen
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
Hello I'm facing the same problems as described in the closed issue #356 even though I use node-openzwave-shared Release 1.5.12
Details:
Thanks for your help, Elmadi