ernstdevreede / lmic_pi

Raspberry Pi port LoRaMAC in C / LoRaWAN in C http://www.research.ibm.com/labs/zurich/ics/lrsc/lmic.html
55 stars 29 forks source link

First Time User #1

Open raymonvdm opened 8 years ago

raymonvdm commented 8 years ago

I`m trying to setup a RaspberryPi Node just to test a gateway setup. But i do not have enough experience to get this project running

I have installed WiringPI

cd /home/beheer/ git clone git://git.drogon.net/wiringPi cd wiringPi ./build

But when i try to setup lmci_pi i get the following output

root@raspberrypi:/home/beheer/lmic_pi-master/lmic# make g++ -c -o radio.o radio.c radio.c:526:19: error: type ‘<lambda>’ with no linkage used to declare function ‘void<lambda>::operator()() const’ with linkage [-fpermissive] radio.c: In lambda function: radio.c:526:21: error: expected ‘{’ before ‘=’ token radio.c: At global scope: radio.c:526:21: warning: lambda expressions only available with -std=c++0x or -std=gnu++0x [enabled by default] radio.c:526:44: error: no match for ‘operator=’ in ‘{(._88)0u} = 192’ radio.c:526:44: note: candidate is: radio.c:526:19: note: <lambda()>&<lambda()>::operator=(const<lambda()>&) radio.c:526:19: note: no known conversion for argument 1 from ‘int’ to ‘const<lambda()>&’ radio.c:527:17: error: type ‘<lambda>’ with no linkage used to declare function ‘void<lambda>::operator()() const’ with linkage [-fpermissive] radio.c: In lambda function: radio.c:527:21: error: expected ‘{’ before ‘=’ token radio.c: At global scope: radio.c:527:21: warning: lambda expressions only available with -std=c++0x or -std=gnu++0x [enabled by default] radio.c:527:23: error: no match for ‘operator=’ in ‘{(._88)1u} = 64’ radio.c:527:23: note: candidate is: radio.c:527:17: note: <lambda()>&<lambda()>::operator=(const<lambda()>&) radio.c:527:17: note: no known conversion for argument 1 from ‘int’ to ‘const<lambda()>&’ radio.c:528:17: error: type ‘<lambda>’ with no linkage used to declare function ‘void<lambda>::operator()() const’ with linkage [-fpermissive] radio.c: In lambda function: radio.c:528:21: error: expected ‘{’ before ‘=’ token radio.c: At global scope: radio.c:528:21: warning: lambda expressions only available with -std=c++0x or -std=gnu++0x [enabled by default] radio.c:528:23: error: no match for ‘operator=’ in ‘{(._88)2u} = 0’ radio.c:528:23: note: candidate is: radio.c:528:17: note: <lambda()>&<lambda()>::operator=(const<lambda()>&) radio.c:528:17: note: no known conversion for argument 1 from ‘int’ to ‘const<lambda()>&’ radio.c:729:9: error: type ‘<lambda>’ with no linkage used to declare function ‘void<lambda>::operator()() const’ with linkage [-fpermissive] radio.c: In lambda function: radio.c:729:12: error: expected ‘{’ before ‘=’ token radio.c: At global scope: radio.c:729:12: warning: lambda expressions only available with -std=c++0x or -std=gnu++0x [enabled by default] radio.c:729:18: error: no match for ‘operator=’ in ‘{(_sf_t)0u} = 0’ radio.c:729:18: note: candidate is: radio.c:729:9: note: <lambda()>&<lambda()>::operator=(const<lambda()>&) radio.c:729:9: note: no known conversion for argument 1 from ‘ostime_t {aka int}’ to ‘const<lambda()>&’ radio.c:730:9: error: type ‘<lambda>’ with no linkage used to declare function ‘void<lambda>::operator()() const’ with linkage [-fpermissive] radio.c: In lambda function: radio.c:730:12: error: expected ‘{’ before ‘=’ token radio.c: At global scope: radio.c:730:12: warning: lambda expressions only available with -std=c++0x or -std=gnu++0x [enabled by default] radio.c:730:18: error: no match for ‘operator=’ in ‘{(_sf_t)1u} = 0’ radio.c:730:18: note: candidate is: radio.c:730:9: note: <lambda()>&<lambda()>::operator=(const<lambda()>&) radio.c:730:9: note: no known conversion for argument 1 from ‘ostime_t {aka int}’ to ‘const<lambda()>&’ radio.c:731:9: error: type ‘<lambda>’ with no linkage used to declare function ‘void<lambda>::operator()() const’ with linkage [-fpermissive] radio.c: In lambda function: radio.c:731:12: error: expected ‘{’ before ‘=’ token radio.c: At global scope: radio.c:731:12: warning: lambda expressions only available with -std=c++0x or -std=gnu++0x [enabled by default] radio.c:731:15: error: no match for ‘operator=’ in ‘{(_sf_t)2u} = 32’ radio.c:731:15: note: candidate is: radio.c:731:9: note: <lambda()>&<lambda()>::operator=(const<lambda()>&) radio.c:731:9: note: no known conversion for argument 1 from ‘ostime_t {aka int}’ to ‘const<lambda()>&’ radio.c:732:9: error: type ‘<lambda>’ with no linkage used to declare function ‘void<lambda>::operator()() const’ with linkage [-fpermissive] radio.c: In lambda function: radio.c:732:12: error: expected ‘{’ before ‘=’ token radio.c: At global scope: radio.c:732:12: warning: lambda expressions only available with -std=c++0x or -std=gnu++0x [enabled by default] radio.c:732:15: error: no match for ‘operator=’ in ‘{(_sf_t)3u} = 65’ radio.c:732:15: note: candidate is: radio.c:732:9: note: <lambda()>&<lambda()>::operator=(const<lambda()>&) radio.c:732:9: note: no known conversion for argument 1 from ‘ostime_t {aka int}’ to ‘const<lambda()>&’ radio.c:733:10: error: type ‘<lambda>’ with no linkage used to declare function ‘void<lambda>::operator()() const’ with linkage [-fpermissive] radio.c: In lambda function: radio.c:733:12: error: expected ‘{’ before ‘=’ token radio.c: At global scope: radio.c:733:12: warning: lambda expressions only available with -std=c++0x or -std=gnu++0x [enabled by default] radio.c:733:15: error: no match for ‘operator=’ in ‘{(_sf_t)4u} = 140’ radio.c:733:15: note: candidate is: radio.c:733:10: note: <lambda()>&<lambda()>::operator=(const<lambda()>&) radio.c:733:10: note: no known conversion for argument 1 from ‘ostime_t {aka int}’ to ‘const<lambda()>&’ radio.c:734:10: error: type ‘<lambda>’ with no linkage used to declare function ‘void<lambda>::operator()() const’ with linkage [-fpermissive] radio.c: In lambda function: radio.c:734:12: error: expected ‘{’ before ‘=’ token radio.c: At global scope: radio.c:734:12: warning: lambda expressions only available with -std=c++0x or -std=gnu++0x [enabled by default] radio.c:734:14: error: no match for ‘operator=’ in ‘{(_sf_t)5u} = 272’ radio.c:734:14: note: candidate is: radio.c:734:10: note: <lambda()>&<lambda()>::operator=(const<lambda()>&) radio.c:734:10: note: no known conversion for argument 1 from ‘ostime_t {aka int}’ to ‘const<lambda()>&’ radio.c:735:10: error: type ‘<lambda>’ with no linkage used to declare function ‘void<lambda>::operator()() const’ with linkage [-fpermissive] radio.c: In lambda function: radio.c:735:12: error: expected ‘{’ before ‘=’ token radio.c: At global scope: radio.c:735:12: warning: lambda expressions only available with -std=c++0x or -std=gnu++0x [enabled by default] radio.c:735:14: error: no match for ‘operator=’ in ‘{(_sf_t)6u} = 623’ radio.c:735:14: note: candidate is: radio.c:735:10: note: <lambda()>&<lambda()>::operator=(const<lambda()>&) radio.c:735:10: note: no known conversion for argument 1 from ‘ostime_t {aka int}’ to ‘const<lambda()>&’ Makefile:7: recipe for target 'radio.o' failed make: *** [radio.o] Error 1 root@raspberrypi:/home/beheer/lmic_pi-master/lmic#

I`m clearly doing something wrong but i cannot figure out what. Could you provide me with a howto ?

hailspuds commented 8 years ago

I'm getting this too. Same error in the same place in the same file. Stuck! :)

raymonvdm commented 8 years ago

I have found out that it is working with a fresh install of Raspbian and the installation of WiringPi using apt-get install wiringpi