Hi,
I've received an error:
"Failed to open /dev/mem, try checking permissions.
Failed to map the physical GPIO registers into the virtual memory space.
bcm2835_init: mmap failed (SPI0): Bad file descriptor"
- It happens when I made a "MAKEFILE" using the Geany.
Blink: arduPi.o
g++ -lrt -lpthread blink_test.cpp arduPi.o -o blink_test
- Compilation was successful but when I ran it usig
./blink_test
-I received the above error
-But when using the terminal running
sudo ./blink_test
-It ran flawlessly, might be in the Geany?
Please help, thanks