wertyzp / WiringNP

This is a GPIO access library for NanoPI. It is based on the WiringOP for Orange PI which is based on original WiringPi for Raspberry Pi.
GNU Lesser General Public License v3.0
25 stars 107 forks source link

undefined symbol: wiringPiSetup #1

Closed jdrucey closed 7 years ago

jdrucey commented 8 years ago

My apologies if I am asking this in the wrong place, but i have reached a complete dead end!

I am using a library called node-rcswitch which is reliant on WiringPi.

I am running my project off of a NanoPi NEO so have installed WiringNP as a replacement for WiringPi. node-rcswitch uses the -lwiringPi flag when compiling and does so without error.

However, when i come to use it at run time i get the following error: undefined symbol: wiringPiSetup

Am i missing something with regards to WiringNP? As far as i understand it, WiringNP can be used in exactly the same way as WiringPi. I just can't figure out why its not working at runtime. =(

wertyzp commented 8 years ago

You can check examples/gpio makefiles to see how to add libraries / define compiler options for proper compilation. Please let me know if it helps

jdrucey commented 8 years ago

Unfortunately that doesn't help. Like i said, the program is compiled with the -lwiringPi flag, and i have even tried with all the flags listed in the examples here. The script calls the wiringPiSetup function at the beginning. Yet i still get that error =(

wertyzp commented 7 years ago

can't reproduce