aarossig / nrfnet

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

No file RF24/RF24.h #4

Closed OrkDev1 closed 3 years ago

OrkDev1 commented 3 years ago

Hi, first of all, nerfnet is a great work but I couldn't find a solution to this error. Any Idea? Screenshot_1 This happens when I type "sudo make -j4" Thanks in advance

aarossig commented 3 years ago

You need to install RF24 separately as well. Perhaps I should make that clear in the README. Try this after cloning the RF24 repo:

https://github.com/nRF24/RF24

cd RF24/
make clean
./configure --driver=SPIDEV; make -j4; sudo make install
OrkDev1 commented 3 years ago

Thank you, it successfully built and yes you probably should add that to the README for raspberry pi beginners like me. And I have another problem. Even though it built the sudo nerfnet command does not work. Screenshot_2

aarossig commented 3 years ago

Oh that is simple - you to add a leading ./ to the binary name to let your shell know to execute the binary in the current directory rather than searching on your PATH variable (ie: /usr/bin, etc).

Example: sudo ./nerfnet --primary

OrkDev1 commented 3 years ago

Ok all done, thank you very much. This is a great work and I hope to see more Thanks Again