aarossig / nrfnet

Using NRF24L01 as a virtual network device under Linux.
Apache License 2.0
70 stars 19 forks source link

Pi Zero WH 32 Bit (2017) undefined reference to 'gpioSetISRFunc' and 'gpioInitialise' #13

Open IliaGrigoriev opened 5 months ago

IliaGrigoriev commented 5 months ago

Hi,

thank you for providing the code. I am trying to get the project running between two Pi Zeros WH 2017 32 bit.

I have installed https://github.com/nRF24/RF24 library and after running "make -j4" of nrfnet I get:

[ 37%] Built target util [ 50%] Building CXX object nerfnet/net/CMakeFiles/nerfnet.dir/nerfnet_main.cc.o [ 62%] Building CXX object nerfnet/net/CMakeFiles/nerfnet.dir/primary_radio_interface.cc.o [ 75%] Building CXX object nerfnet/net/CMakeFiles/nerfnet.dir/radio_interface.cc.o [ 87%] Building CXX object nerfnet/net/CMakeFiles/nerfnet.dir/secondary_radio_interface.cc.o [100%] Linking CXX executable nerfnet /usr/bin/ld: /usr/local/lib/librf24.so: undefined reference togpioSetISRFunc' /usr/bin/ld: /usr/local/lib/librf24.so: undefined reference to gpioInitialise' collect2: error: ld returned 1 exit status make[2]: *** [nerfnet/net/CMakeFiles/nerfnet.dir/build.make:146: nerfnet/net/nerfnet] Error 1 make[1]: *** [CMakeFiles/Makefile2:131: nerfnet/net/CMakeFiles/nerfnet.dir/all] Error 2 make: *** [Makefile:91: all] Error 2

According to the discussion a person added some constants to make their code work to make it work. Would this work with your code? If so, where could I carry out the modification?

If it is smth else I'll be grateful for your advice!

Many thanks for your attention in advance.

Best, Ilia