Yes, that is what I wanted to see, but my idea was wrong. It is not the symbols of the library but adding the symbols to the library.
Sorry.
-
[Solved] pimatic-dht-sensor installation fails on OSMC Release 10.2016
-
What’s new @mwittig ? Could you find somewhat?
-
@Dodo88 I have tried to rebuld everything with the symlink in place, as I suspected the symlink might cause build problems. However, everything works fine on my system. If you have spare SD-card maybe you can try a new setup with OSMC Release 10.2016 like I did?
For the current system setup you have, please make sure you gcc v4.9.x and node v4.6.2 installed.
osmc@osmc:~$ cat /etc/os-release; echo "---"; gcc -v; echo "---"; node --version; npm --version PRETTY_NAME="Open Source Media Center" NAME="OSMC" VERSION="October 2016" VERSION_ID="2016.10-1" ID=osmc ID_LIKE=debian ANSI_COLOR="1;31" HOME_URL="http://www.osmc.tv" SUPPORT_URL="http://www.osmc.tv" BUG_REPORT_URL="http://www.osmc.tv" --- Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper Target: arm-linux-gnueabihf Configured with: ../src/configure -v --with-pkgversion='Raspbian 4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf Thread model: posix gcc version 4.9.2 (Raspbian 4.9.2-10) --- v4.6.2 2.15.11
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@mwittig Okay thx! i will try it with a new sd.
For info:
osmc@DodOsmc:~$ cat /etc/os-release; echo "---"; gcc -v; echo "---"; node --version; npm --version PRETTY_NAME="Open Source Media Center" NAME="OSMC" VERSION="October 2016" VERSION_ID="2016.10-2" ID=osmc ID_LIKE=debian ANSI_COLOR="1;31" HOME_URL="http://www.osmc.tv" SUPPORT_URL="http://www.osmc.tv" BUG_REPORT_URL="http://www.osmc.tv" --- Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper Target: arm-linux-gnueabihf Configured with: ../src/configure -v --with-pkgversion='Debian 4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf Thread model: posix gcc version 4.9.2 (Debian 4.9.2-10) --- v4.6.2 2.15.11 osmc@DodOsmc:~$
-
I decided to do the
readelf -a -W /usr/local/lib/libbcm2835.a
again on my system.
I got:File Attributes Tag_CPU_name: "6" Tag_CPU_arch: v6 Tag_ARM_ISA_use: Yes Tag_THUMB_ISA_use: Thumb-1 Tag_FP_arch: VFPv2 Tag_ABI_PCS_wchar_t: 4 Tag_ABI_FP_denormal: Needed Tag_ABI_FP_exceptions: Needed Tag_ABI_FP_number_model: IEEE 754 Tag_ABI_align_needed: 8-byte Tag_ABI_align_preserved: 8-byte, except leaf SP Tag_ABI_enum_size: int Tag_ABI_HardFP_use: SP and DP Tag_ABI_VFP_args: VFP registers Tag_ABI_optimization_goals: Aggressive Speed Tag_CPU_unaligned_access: v6
My system is an RPi3 giving
Linux rpi3 4.4.32-v7+ #924 SMP Tue Nov 15 18:11:28 GMT 2016 armv7l GNU/Linux
when usinguname -a
. It is not so strange that my library is built differently although I do think it is weird that on my system I get a “v6” architecture while I’m running a “V7” debian armhf system. Something not entirely correct in the make files of the library?
The question now at @mwittig: Do you get the same symbols for that library as @Dodo88? -
@Harry-van-der-Wolf said in pimatic-dht-sensor installation fails on OSMC Release 10.2016:
Do you get the same symbols for that library as @Dodo88?
No, I am also getting v6 on my OSMC test setup (Raspberry B+) and my Jessie setup on Raspi 3. Raspbian only provide a v6 build, while OSMC appears to provide v7 build for Raspi 2 & 3. This is not to be confused with a 64-bit build which would be v8 (Raspi 3, only).
If node has been installed for v7 I think node-gyp should be able to handle this.
@Dodo88 How did you install node?Attribute Section: aeabi File Attributes Tag_CPU_name: "6" Tag_CPU_arch: v6 Tag_ARM_ISA_use: Yes Tag_THUMB_ISA_use: Thumb-1 Tag_FP_arch: VFPv2 Tag_ABI_PCS_wchar_t: 4 Tag_ABI_FP_denormal: Needed Tag_ABI_FP_exceptions: Needed Tag_ABI_FP_number_model: IEEE 754 Tag_ABI_align_needed: 8-byte Tag_ABI_align_preserved: 8-byte, except leaf SP Tag_ABI_enum_size: int Tag_ABI_HardFP_use: SP and DP Tag_ABI_VFP_args: VFP registers Tag_ABI_optimization_goals: Aggressive Speed Tag_CPU_unaligned_access: v6
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@mwittig
I installed it like in my last Thread:
https://forum.pimatic.org/topic/2460/solved-installing-pimatic-0-9-osmc/20I Think i will test a new fresh install on sd card, or?
-
@Dodo88 said in pimatic-dht-sensor installation fails on OSMC Release 10.2016:
I Think i will test a new fresh install on sd card, or?
Yes, please
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@Harry-van-der-Wolf
I think you mean this post from @mwittig ?"@Dodo88 Just to be sure check if the file exists: sudo ls -l /home/osmc/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/bin/vhduino and check the version grep version /home/osmc/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/package.json Can you please also post the plugin configuration you have for homeduino? "
Okay @mwittig i will re-install it asap. Can I copy the current config.json code in the new config.json @ new sd-installation? or better configure from beginning?
Thx so long guys
-
@mwittig @Harry-van-der-Wolf Guys…I Give Up…
I made a new Install on a fresh SD-Card with the newest OSMC (2016-10-31).
I post my Approach:sudo apt-get update sudo apt-get dist-upgrade wget https://nodejs.org/dist/v4.6.2/node-v4.6.2-linux-armv7l.tar.gz -P /tmp cd /usr/local sudo tar xzvf /tmp/node-v4.6.2-linux-armv7l.tar.gz --strip=1 sudo apt-get install build-essential git sudo apt-get install npm cd /home/pi mkdir pimatic-app npm install pimatic --prefix pimatic-app --production cd pimatic-app cp ./node_modules/pimatic/config_default.json ./config.json
Now Cofiguring the config.json file for my start (User,Password etc.pp), then
sudo node_modules/pimatic/pimatic.js sudo node_modules/pimatic/pimatic.js start sudo node_modules/pimatic/pimatic.js stop cd ./node_modules/pimatic sudo npm link wget https://raw.githubusercontent.com/pimatic/pimatic/v0.9.x/install/pimatic-init-d sudo cp pimatic-init-d /etc/init.d/pimatic sudo chmod +x /etc/init.d/pimatic sudo chown root:root /etc/init.d/pimatic sudo update-rc.d pimatic defaults sudo service pimatic start sudo ls -l /home/osmc/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/bin/vhduino grep version /home/osmc/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/package.json Now installing BCM235: mkdir bcm2835 cd bcm2835/ wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.50.tar.gz tar xvfz bcm2835-1.50.tar.gz cd bcm2835-1.50 ./configure make sudo make check sudo make install
when I make
sudo ./node_modules/pimatic/ppm.js install pimatic-dht-sensors@0.9.2 --unsafe-perm
I get this again
osmc@DodOsmc:~$ sudo ./node_modules/pimatic/ppm.js install pimatic-dht-sensors@0.9.2 --unsafe-perm sudo: ./node_modules/pimatic/ppm.js: command not found osmc@DodOsmc:~$ cd pimatic-app osmc@DodOsmc:~/pimatic-app$ sudo ./node_modules/pimatic/ppm.js install pimatic-dht-sensors@0.9.2 --unsafe-perm \ > node-dht-sensor@0.0.31 preinstall /home/osmc/pimatic-app/node_modules/pimatic-dht-sensors/node_modules/node-dht-sensor > ./check-lib.sh Library bcm2835 found. | > node-dht-sensor@0.0.31 install /home/osmc/pimatic-app/node_modules/pimatic-dht-sensors/node_modules/node-dht-sensor > node-gyp configure > node-dht-sensor@0.0.31 postinstall /home/osmc/pimatic-app/node_modules/pimatic-dht-sensors/node_modules/node-dht-sensor > node-gyp build make: Entering directory '/home/osmc/pimatic-app/node_modules/pimatic-dht-sensors/node_modules/node-dht-sensor/build' CXX(target) Release/obj.target/node_dht_sensor/node-dht-sensor.o CXX(target) Release/obj.target/node_dht_sensor/dht-sensor.o SOLINK_MODULE(target) Release/obj.target/node_dht_sensor.node /usr/bin/ld: //usr/local/lib/libbcm2835.a(bcm2835.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC //usr/local/lib/libbcm2835.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status node_dht_sensor.target.mk:124: recipe for target 'Release/obj.target/node_dht_sensor.node' failed make: *** [Release/obj.target/node_dht_sensor.node] Error 1 make: Leaving directory '/home/osmc/pimatic-app/node_modules/pimatic-dht-sensors/node_modules/node-dht-sensor/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/osmc/pimatic-app/node_modules/pimatic/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12) gyp ERR! System Linux 4.4.27-5-osmc gyp ERR! command "/usr/local/bin/node" "/home/osmc/pimatic-app/node_modules/pimatic/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" gyp ERR! cwd /home/osmc/pimatic-app/node_modules/pimatic-dht-sensors/node_modules/node-dht-sensor gyp ERR! node -v v4.6.2 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok npm ERR! Linux 4.4.27-5-osmc npm ERR! argv "/usr/local/bin/node" "/home/osmc/pimatic-app/node_modules/pimatic/ppm.js" "install" "pimatic-dht-sensors@0.9.2" "--unsafe-perm" npm ERR! node v4.6.2 npm ERR! npm v2.15.11 npm ERR! code ELIFECYCLE npm ERR! node-dht-sensor@0.0.31 postinstall: `node-gyp build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-dht-sensor@0.0.31 postinstall script 'node-gyp build'. npm ERR! This is most likely a problem with the node-dht-sensor package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp build npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs node-dht-sensor npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm ERR! npm owner ls node-dht-sensor npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /home/osmc/pimatic-app/npm-debug.log osmc@DodOsmc:~/pimatic-app$
I don’t know what to do
Greets Dodo
-
@Dodo88 said in pimatic-dht-sensor installation fails on OSMC Release 10.2016:
I Give Up
Please, don’t give up! I have one more
Please try to rebuild the BCM2835 library as follows:
$ wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.46.tar.gz $ tar zxvf bcm2835-1.50.tar.gz $ cd bcm2835-1.50 $ ./configure $ make clear $ make CFLAGS='-g -O2 -fPIC' $ sudo make check $ sudo make install
Following this, remove the
pimatic-dht-sensors
directory and restart pimatic"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@Dodo88 said in pimatic-dht-sensor installation fails on OSMC Release 10.2016:
wow…it works, I’m speechless ^^
Hey, that’s great! I am pleases to see the stuff is working now.
can I pin the dht22 on my arduino nano?
Note, pimatic-dht-sensors only supports Raspi GPIO!!! If you wish to connect a DHT sensor to the Arduino you can use pimatic-homeduino for this … https://github.com/pimatic/pimatic-homeduino#local-sensors
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law