temporaerhaus / ttn-ulm-doku

Hier entsteht eine einsteigerfreundliche Dokumentation für TTN in Ulm
GNU Affero General Public License v3.0
10 stars 4 forks source link

Compile Error #1

Open qvs5010 opened 6 years ago

qvs5010 commented 6 years ago

Hi

When i run a make i keep getting the following error.

pi@iot:~/ttn-ulm-node-dragino-master/ttnsender/main $ make
g++ -std=c++11 -DRASPBERRY_PI -DBCM2835_NO_DELAY_COMPATIBILITY -D__BASEFILE__=\"raspi\" -c ../library/raspi/raspi.cpp -I../library 
../library/raspi/raspi.cpp: In static member function ‘static void SPIClass::begin()’:
../library/raspi/raspi.cpp:20:26: error: could not convert ‘bcm2835_spi_begin()’ from ‘void’ to ‘bool’
   if (!bcm2835_spi_begin()) {
                          ^
../library/raspi/raspi.cpp:20:26: error: in argument to unary !
Makefile:15: recipe for target 'raspi.o' failed
make: *** [raspi.o] Error 1

Is there something exstra i need to install?

Thanks!! Q

dermatthias commented 6 years ago

Looks like you are using a different version of the BCM2835 library or it is missing at all.

From the Makefile:

# Caution: requires bcm2835 library to be already installed
# http://www.airspayce.com/mikem/bcm2835/