Page 1 of 1

Exact Compile parameters

Posted: Friday 20 September 2019 9:57
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?

Re: Exact Compile parameters

Posted: Friday 20 September 2019 11:11
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.