How to compile on Raspberry Pi?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
irongarment
New user
Posts: 3
Joined: 08 Feb 2018, 02:49

How to compile on Raspberry Pi?

#1 Post by irongarment » 11 Feb 2018, 23:08

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.

TD-er
Core team member
Posts: 8746
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: How to compile on Raspberry Pi?

#2 Post by TD-er » 11 Feb 2018, 23:29

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.

irongarment
New user
Posts: 3
Joined: 08 Feb 2018, 02:49

Re: How to compile on Raspberry Pi?

#3 Post by irongarment » 14 Feb 2018, 21:11

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 49 guests