Page 1 of 1

How to compile on Raspberry Pi?

Posted: 11 Feb 2018, 23:08
by irongarment
Hello,

I already posted a message here:
viewtopic.php?f=2&t=1915&p=24335#p24335

...but I didn't get a response. Basically I want to compile my own image on a Pi to get the P115 aircon plug-in. I installed platformio and it seems to work, but I get errors in the source. The errors are due to `__ieee754_pow' and `__ieee754_sqrt'.

I'd rather not duplicate my message here, but what is the best way to compile ESPeasy on a Pi?

Thanks.

Re: How to compile on Raspberry Pi?

Posted: 11 Feb 2018, 23:29
by TD-er
Hmmm very strange you'll get those errors on a Pi.
It looks like some library is not checking CPU architecture.

But it looks like it is caused by using the pow function.
I know it is used at least in the _P028_BME280.ino file.
Perhaps even somewhere else.

You could find those spots and replace the code by something else just to see if it then will compile.
So search on "pow" in the code.

Re: How to compile on Raspberry Pi?

Posted: 14 Feb 2018, 21:11
by irongarment
Hi,

Thanks for the suggestions. I could certainly put a band-aid over the problem, but I'd like to know the root cause and fix that instead.

I'm using a Pi as it is the most up-to-date Linux box I have. My laptop requires too much work to install Platformio so I can't do that right now.

Of course, a precompiled image including the P115 plug-in would be even better, although I expect I will want to customise the plug-in for my environment, so I'd still need the facility to recompile.

Thanks anyway.