Compiling old version from source

On various Hardware and OS systems: pi / windows / routers / nas, etc
Post Reply
superczar
Posts: 90
Joined: Wednesday 14 January 2015 13:08
Target OS: Raspberry Pi
Domoticz version:
Location: India
Contact:

Compiling old version from source

Post by superczar » Wednesday 07 June 2017 12:22

Sorry if this is a really silly question but how do I compile an older version of domoticz?
Using BUILD_TYPE=release still builds the current beta version
I am trying to revert to a build version prior to 3.6

Code: Select all

cd dev-domoticz
git pull
cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt
make -j 3
I suppose I am missing something fundamental

gordonb3
Posts: 560
Joined: Friday 22 January 2016 11:15
Target OS: Linux
Domoticz version: custom
Location: The Netherlands
Contact:

Re: Compiling old version from source

Post by gordonb3 » Wednesday 07 June 2017 12:54

You need to know the commit ID of the build version you're after.

There are two different routes you can follow from that point:
    • do a git clone from the current tree
    • run `git checkout <commit ID>
    • build as usual
An example of how to build version 3.5949 using (a variation on) method #2 can be found here.
Excito B3 running Gentoo Linux, P1, Rfxtrx433 to read and control TFA, KaKu, EvoHome RFG100
Custom patched Domoticz v3.8000

superczar
Posts: 90
Joined: Wednesday 14 January 2015 13:08
Target OS: Raspberry Pi
Domoticz version:
Location: India
Contact:

Re: Compiling old version from source

Post by superczar » Wednesday 07 June 2017 20:51

Thanks a ton!
Method 2 worked perfect and reverting to the old beta solved my issue as expected

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest