nRF24 / RF24

OSI Layer 2 driver for nRF24L01 on Arduino & Raspberry Pi/Linux Devices
https://nrf24.github.io/RF24
GNU General Public License v2.0
2.21k stars 1.02k forks source link

Problem to compile RF24Gateway sample #717

Closed arnold-b closed 3 years ago

arnold-b commented 3 years ago

root@Rasp-VPN:~/rf24libs/RF24Gateway/examples# make install all g++ -std=c++0x -Wall -I../ -lrf24-bcm -lrf24network -lrf24mesh -lrf24gateway RF24GatewayNode.cpp -o RF24GatewayNode /usr/bin/ld: //usr/local/lib/librf24-bcm.so: undefined reference to symbol 'delay' /usr/bin/ld: //usr/lib/libwiringPi.so: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make: *** [Makefile:37: RF24GatewayNode] Fehler 1

Hardware Rasp 3 , 5.4.83-v7+

Thanks for helping

2bndy5 commented 3 years ago

/usr/bin/ld: //usr/lib/libwiringPi.so: error adding symbols: DSO missing from command line

I'm not sure if the wiringPi driver still works. I raised a similar issue about this #669

Can you use SPIDEV for your project?

TMRh20 commented 3 years ago

WiringPi isn't specifically supported with RF24Gateway, so you need to add -lwiringPi in the ${PROGRAMS}: ${SOURCES} section of the makefile for it to compile correctly.

Also not sure if wiringPi driver works/still works especially with the newer RPis.

arnold-b commented 3 years ago

Thank you. I change to SPIDEV

After that it get compiled

Von: TMRh20 notifications@github.com Gesendet: Samstag, 9. Januar 2021 04:24 An: nRF24/RF24 RF24@noreply.github.com Cc: arnold-b arnold.braun@gmx.de; Author author@noreply.github.com Betreff: Re: [nRF24/RF24] Problem to compile RF24Gateway sample (#717)

WiringPi isn't specifically supported with RF24Gateway, so you need to add -lwiringPi in the ${PROGRAMS}: ${SOURCES} section of the makefile for it to compile correctly.

Also not sure if wiringPi driver works/still works especially with the newer RPis.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nRF24/RF24/issues/717#issuecomment-757087124 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AH2N3WJPJMY22OKYSDU2GOLSY7D63ANCNFSM4V3F2R6A . https://github.com/notifications/beacon/AH2N3WKJ2D2MHKI4OUJZDRDSY7D63A5CNFSM4V3F2R6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFUQDXFA.gif

arnold-b commented 3 years ago

Thanks, yes i changed. Now I get it compiled

Von: Brendan notifications@github.com Gesendet: Samstag, 9. Januar 2021 03:14 An: nRF24/RF24 RF24@noreply.github.com Cc: arnold-b arnold.braun@gmx.de; Author author@noreply.github.com Betreff: Re: [nRF24/RF24] Problem to compile RF24Gateway sample (#717)

/usr/bin/ld: //usr/lib/libwiringPi.so: error adding symbols: DSO missing from command line

I'm not sure if the wiringPi driver still works. I raised a similar issue about this #669 https://github.com/nRF24/RF24/issues/669

Can you use SPIDEV for your project?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nRF24/RF24/issues/717#issuecomment-757079010 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AH2N3WM5U5FQVPOPRHAU4KTSY63XTANCNFSM4V3F2R6A . https://github.com/notifications/beacon/AH2N3WJEGPTOVZGMQ5VT3FDSY63XTA5CNFSM4V3F2R6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFUQBXYQ.gif