Page 1 of 1

Ubuntu 14.04 installation failed

Posted: Saturday 12 November 2016 1:01
by Richgam
Hello everyone.


Just today I have started to install, this is my first time, domotic and it is very difficult to me.

I have configured the steps from installation guide "https://www.domoticz.com/wiki/Linux" and the make commands fail :o :

Code: Select all

domoticz@domoticz:~/domoticz$
domoticz@domoticz:~/domoticz$ make
[  1%] Built target domoticz_gch
[ 14%] Built target lua
[ 15%] Built target sqlite
-- Found Git: /usr/bin/git (found version "1.9.1")
[ 15%] Built target revisiontag
[ 23%] Built target mqtt
[ 24%] Building CXX object CMakeFiles/domoticz.dir/main/EventSystem.cpp.o
/home/domoticz/domoticz/main/EventSystem.cpp: In member function ‘void http::server::CWebServer::RType_Events(http::server::WebEmSession&, const http::server::request&, Json::Value&)’:
/home/domoticz/domoticz/main/EventSystem.cpp:4089:31: error: conversion from ‘long long unsigned int’ to ‘Json::Value’ is ambiguous
      root["result"][ii]["id"] = itt->ID;
                               ^
/home/domoticz/domoticz/main/EventSystem.cpp:4089:31: note: candidates are:
In file included from /home/domoticz/domoticz/main/../hardware/../json/json.h:10:0,
                 from /home/domoticz/domoticz/main/../hardware/Kodi.h:8,
                 from /home/domoticz/domoticz/main/EventSystem.cpp:9:
/home/domoticz/domoticz/main/../hardware/../json/value.h:312:3: note: Json::Value::Value(bool)
   Value(bool value);
   ^
/home/domoticz/domoticz/main/../hardware/../json/value.h:290:3: note: Json::Value::Value(const char*) <near match>
   Value(const char* value); ///< Copy til first 0. (NULL causes to seg-fault.)
   ^
/home/domoticz/domoticz/main/../hardware/../json/value.h:290:3: note:   no known conversion for argument 1 from ‘long long unsigned int’ to ‘const char*’
/home/domoticz/domoticz/main/../hardware/../json/value.h:289:3: note: Json::Value::Value(double)
   Value(double value);
   ^
/home/domoticz/domoticz/main/../hardware/../json/value.h:287:3: note: Json::Value::Value(Json::Value::UInt64)
   Value(UInt64 value);
   ^
/home/domoticz/domoticz/main/../hardware/../json/value.h:286:3: note: Json::Value::Value(Json::Value::Int64)
   Value(Int64 value);
   ^
/home/domoticz/domoticz/main/../hardware/../json/value.h:284:3: note: Json::Value::Value(Json::Value::UInt)
   Value(UInt value);
   ^
/home/domoticz/domoticz/main/../hardware/../json/value.h:283:3: note: Json::Value::Value(Json::Value::Int)
   Value(Int value);
   ^
/home/domoticz/domoticz/main/../hardware/../json/value.h:282:3: note: Json::Value::Value(Json::ValueType) <near match>
   Value(ValueType type = nullValue);
   ^
/home/domoticz/domoticz/main/../hardware/../json/value.h:282:3: note:   no known conversion for argument 1 from ‘long long unsigned int’ to ‘Json::ValueType’
/home/domoticz/domoticz/main/../hardware/../json/value.h:323:10: error:   initializing argument 1 of ‘Json::Value& Json::Value::operator=(Json::Value)’
   Value& operator=(Value other);
          ^
make[2]: *** [CMakeFiles/domoticz.dir/main/EventSystem.cpp.o] Error 1
make[1]: *** [CMakeFiles/domoticz.dir/all] Error 2
make: *** [all] Error 2
domoticz@domoticz:~/domoticz$
I have installed simple-json (python library) and the problem is persistent, How i can solve it? I'm desperate :cry: any help will be welcome.

Re: Ubuntu 14.04 installation failed

Posted: Saturday 12 November 2016 10:01
by sj3fk3
Richgam wrote:Hello everyone.

I have installed simple-json (python library) and the problem is persistent, How i can solve it? I'm desperate :cry: any help will be welcome.
You are compiling a C++ program installing a python library won't help in this case. Did you install development tools and libraries needed for compiling Domoticz?

Code: Select all

sudo apt-get install build-essential nano cmake git libboost-dev libboost-thread-dev libboost-system-dev libsqlite3-dev curl libcurl4-openssl-dev libssl-dev libusb-dev zlib1g-dev

Re: Ubuntu 14.04 installation failed

Posted: Saturday 12 November 2016 10:11
by SweetPants
This is a know issue and is being worked on.

Re: Ubuntu 14.04 installation failed

Posted: Saturday 12 November 2016 10:48
by Richgam
Thank you for your answers,but... then what is the best way to install domiticz for testing prouposes?

Are there older versions? Maybe in rasberrypi? What is the alternative?

Thanks in advance

Re: Ubuntu 14.04 installation failed

Posted: Saturday 12 November 2016 12:57
by SweetPants
Richgam wrote:Are there older versions? Maybe in rasberrypi? What is the alternative?
Start with the stable version https://sourceforge.net/projects/domoticz/files/

Re: Ubuntu 14.04 installation failed

Posted: Saturday 12 November 2016 13:13
by gizmocuz
Compilation should work again

Re: Ubuntu 14.04 installation failed

Posted: Saturday 12 November 2016 13:49
by SweetPants
gizmocuz wrote:Compilation should work again
yep, it does

Ubuntu 14.04 installation failed

Posted: Sunday 13 November 2016 1:03
by Richgam
Hi guys!

Thanks a lot! Now it works fine