Open azuntik opened 7 years ago
Hello @azuntik , sorry to hear that you have compilation errors.
Does it however work with th RF24 version ported to rpi as referenced in README?
At the time of writing RF24SN the TMRh20's version of RF24 did not support rpi. So jscrane made rpi port which should work with no problems - please confirm you can get it to work this way to eliminate other possible causes of compilation failure at your setup.
Now looking at TMRh20's version it seems better maintained than jscrane's port and maybe now also supports rpi. However I did not investigate if RF24SN can switch to TMRh20's version. Pull requests welcome thought.
This is what I'm getting when I try to build:
pi@raspberrypi:~/RF24SN_CPP_Server $ make g++ -Wall -Ofast -mfpu=vfp -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s -MMD -c -o RF24SN-MQTT-Wrapper.o RF24SN-MQTT-Wrapper.cpp g++ -lrf24 -lmosquitto -o RF24SN RF24SN-RF24-Wrapper.o RF24SN-MQTT-Wrapper.o RF24SN-Packet.o RF24SN.o RF24SN-RF24-Wrapper.o: In function
_GLOBAL__sub_I_radio': RF24SN-RF24-Wrapper.cpp:(.text.startup+0x34): undefined reference to
RF24::RF24(unsigned char, unsigned char)' collect2: error: ld returned 1 exit status Makefile:27: recipe for target 'all' failed make: *** [all] Error 1I'm using librf24 from TMRh20.
Any help would be greatly appreciated!