Ubuntu 14.04 installation failed

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

Moderator: leecollings

Post Reply
User avatar
Richgam
Posts: 4
Joined: Saturday 12 November 2016 0:43
Target OS: Linux
Domoticz version:
Contact:

Ubuntu 14.04 installation failed

Post 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.
sj3fk3
Posts: 23
Joined: Sunday 22 March 2015 6:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Ubuntu 14.04 installation failed

Post 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
SweetPants

Re: Ubuntu 14.04 installation failed

Post by SweetPants »

This is a know issue and is being worked on.
User avatar
Richgam
Posts: 4
Joined: Saturday 12 November 2016 0:43
Target OS: Linux
Domoticz version:
Contact:

Re: Ubuntu 14.04 installation failed

Post 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
SweetPants

Re: Ubuntu 14.04 installation failed

Post 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/
User avatar
gizmocuz
Posts: 2352
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Ubuntu 14.04 installation failed

Post by gizmocuz »

Compilation should work again
Quality outlives Quantity!
SweetPants

Re: Ubuntu 14.04 installation failed

Post by SweetPants »

gizmocuz wrote:Compilation should work again
yep, it does
User avatar
Richgam
Posts: 4
Joined: Saturday 12 November 2016 0:43
Target OS: Linux
Domoticz version:
Contact:

Ubuntu 14.04 installation failed

Post by Richgam »

Hi guys!

Thanks a lot! Now it works fine
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests