Compile from source in Ubuntu 18.04

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

Moderator: leecollings

Post Reply
denkoviaeltd
Posts: 3
Joined: Tuesday 16 January 2018 14:41
Target OS: Windows
Domoticz version:
Contact:

Compile from source in Ubuntu 18.04

Post by denkoviaeltd »

Hello Domoticz Community,
I am having strange problem with making/applying changes of the Domoticz source code. I am able to compile the code. I am able even to change some web server files like hardware.js and hardware.html and i can see the changes are applied after browser refresh. However if i make some changes to lets say DenkoviDevices.cpp or DenkoviDevices.h, these changes are not applied anyway (even if I restart domoticz or even the whole OS).

I am following this link for the setup: https://www.domoticz.com/wiki/Build_Dom ... rom_source
I have the following setup:
OS: Ubuntu 18.04 (clean install on virtual machine vmware)
Cmake: 3.17.0
Folder home/ubuntu/domoitcz is the folder with downloaded official domoitcz
Folder home/ubuntu/dev-domoticz is the folder with compiled source code

I get the source via:

Code: Select all

cd dev-domoticz 
git pull (for first time only)
For editing the source i am using visual studio, as suggested in this link: https://www.domoticz.com/wiki/How_to_se ... n_Domoticz
and save all.

After that, i use the command to compile:

Code: Select all

cd dev-domoticz
cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt -DUSE_OPENSSL_STATIC="NO" 
make
and run via:

Code: Select all

cd domoticz sudo ./domoticz
Am i missing something ?
Do I need to transfer some files/folders from dev-domoticz to domoticz dir and if so which ?

Thank you in advance!
User avatar
kiddigital
Posts: 438
Joined: Thursday 10 August 2017 6:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Compile from source in Ubuntu 18.04

Post by kiddigital »

Look which ‘domoticz’ binary is being build.

The one in the root of your tree or the one in the bin directory below root?

Got me confused once..

Tip: throw away all (both) binaries so you see where the build is done.
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
denkoviaeltd
Posts: 3
Joined: Tuesday 16 January 2018 14:41
Target OS: Windows
Domoticz version:
Contact:

Re: Compile from source in Ubuntu 18.04

Post by denkoviaeltd »

Thanks, that solved the problem!
It was that the domoticz file inside bin folder should be moved to the dev-domoticz folder and then we work/test with this file!
Cheers!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest