MySensors error upon Make

Moderator: leecollings

Post Reply
ricorico94
Posts: 110
Joined: Monday 26 October 2015 10:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

MySensors error upon Make

Post by ricorico94 »

Hi, I'm trying to install MySensors on my domoticz on a fresh domoticz installation on Trixie (Raspberry Pi 3B+), but I face an error on the sudo make step.

I first followed the steps:
git clone https://github.com/mysensors/MySensors.git --branch master
cd MySensors
./configure --my-transport=rf24 --my-rf24-irq-pin=15
sudo make

but this gives an error on stropts.h, so I deleted the MySensors folder and restarted with the development branch as advised by some forum posts:
git clone https://github.com/mysensors/MySensors.git --branch development
cd MySensors
./configure --my-transport=rf24 --my-rf24-irq-pin=15
sudo make

but now I get another eror:
./drivers/CircularBuffer/CircularBuffer.h: At global scope:
./hal/architecture/Linux/MyHwLinuxGeneric.h:106:50: error: ambiguating new declaration of ‘uint8_t __hwLock()’
106 | #define ATOMIC_BLOCK for ( ATOMIC_BLOCK_CLEANUP, __hwLock(); \
and
make: *** [Makefile:99: build/examples_linux/mysgw.o] Error 1
I couldn't find any help on that error... Any idea ?
ricorico94
Posts: 110
Joined: Monday 26 October 2015 10:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: MySensors error upon Make

Post by ricorico94 »

Hi,
I might have progressed, but still blocked..
For problem described above, I found a commit on MySensors github : https://github.com/mysensors/MySensors/issues/1557 which helped solving the ATOMIC problem, but then I facd GPIO error..
Then I found another commit: https://github.com/mysensors/MySensors/pull/1562, but compiling was not working anymore..
Then I found another one https://github.com/mysensors/MySensors/ ... 10/commits which solved the compiling after changing some files manually (I don't know well Github, so hopefully I did things correctly).
But now, the mysgw returns error when run:

Code: Select all

:~/MySensors $ sudo ./bin/mysgw
Oct 25 12:56:48 INFO  Starting gateway...
Oct 25 12:56:48 INFO  Protocol version - 2.4.0-rc.1
Oct 25 12:56:48 DEBUG MCO:BGN:INIT GW,CP=RNNGL-Q-,FQ=NA,REL=2,VER=2.4.0-rc.1
Oct 25 12:56:48 DEBUG TSF:LRT:OK
Oct 25 12:56:48 DEBUG TSM:INIT
Oct 25 12:56:48 DEBUG TSF:WUR:MS=0
Oct 25 12:56:48 ERROR Failed to request GPIO line
At this stage, I don't know what to do. (I opened a post on https://forum.mysensors.org/topic/12356 ... ry-pi-3b/2
However, I wonder if it's linked to MySensors or to my setup, because I have some other problems when trying to install python plugins.
Post Reply