Exact Compile parameters

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
darrepac
Posts: 133
Joined: Tuesday 04 February 2014 21:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Isère, France
Contact:

Exact Compile parameters

Post by darrepac »

Hi

In the wiki, it is written

Code: Select all

cd dev-domoticz
git pull
cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt -DUSE_OPENSSL_STATIC="NO"
make
But once I compile with those parameters on my raspberry Pi, the executable is making 11Mo instead of 14Mo for the current one (I just change 1 line in 1 source file). I am compiling it on a Raspberry Pi with Buster and trying to execute it on a Raspberry Pi with Stretch
When I tried to execute, it crashed due to version of GLIBC that was not recent enough. So I think I need to compile with GLIBC statically linked but probably some other library too.
As Domoticz new version is always working in any Raspbian version, I guess Domoticz is using more compiler switch than the one in the Wiki.
Any idea?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Exact Compile parameters

Post by waaren »

darrepac wrote: Friday 20 September 2019 9:57 It crashed due to version of GLIBC that was not recent enough.
Not sure if it helps to understand the issue but I encounter the same when I compile on Buster and execute on Stretch but the other way around is just working.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest