Moes

L'intégration des autres protocoles dans Domoticz
Thorgal
Messages : 596
Enregistré le : 16 août 2018, 20:02
Contact :

Re: Moes

Message par Thorgal »

Ca depend de comment tu as installé deconz ?
Tu l'as installé a partir de l'archive ou du repo ? https://phoscon.de/en/conbee2/install#raspbian

samourai47
Messages : 255
Enregistré le : 04 déc. 2018, 19:44

Re: Moes

Message par samourai47 »

bon j'ai refait l'install comme dit dans le msg precedent
relance la compilation, sans succés

Code : Tout sélectionner

qmake && make
Project MESSAGE: Warning: unknown QT: qml
Project MESSAGE: Warning: unknown QT: qml
Project MESSAGE: Warning: unknown QT: qml
make -f Makefile.Release
make[1] : on entre dans le répertoire « /home/pi/deconz-rest-plugin »
/usr/lib/arm-linux-gnueabihf/qt4/bin/uic de_web_widget.ui -o ui_de_web_widget.h
/usr/lib/arm-linux-gnueabihf/qt4/bin/uic ui/ddf_editor.ui -o ui_ddf_editor.h
/usr/lib/arm-linux-gnueabihf/qt4/bin/uic ui/device_widget.ui -o ui_device_widget.h
g++ -c -pipe -Wno-attributes -Wno-psabi -Wall -O2 -Wall -W -D_REENTRANT -fPIC -DDECONZ_DLLSPEC=Q_DECL_IMPORT -DSKIP_EMPTY_PARTS=Qt::SkipEmptyParts -DGW_SW_VERSION=\"2.13.04\" -DGW_SW_DATE=1641677289 -DGW_API_VERSION=\"1.16.0\" -DGIT_COMMMIT=\"e0070c0dd631980fb37c40d511f756e3535fd1b9\" -DGW_AUTO_UPDATE_AVR_FW_VERSION=0x260b0500 -DGW_AUTO_UPDATE_R21_FW_VERSION=0x26420700 -DGW_MIN_AVR_FW_VERSION=0x26390500 -DGW_MIN_R21_FW_VERSION=0x26660700 -DGW_MIN_DERFUSB23E0X_FW_VERSION=0x22030300 -DGW_DEFAULT_NAME=\"Phoscon-GW\" -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I../.. -I../../common -Irelease -I. -o release/air_quality.o air_quality.cpp
In file included from resource.h:9,
                 from device.h:16,
                 from de_web_plugin_private.h:26,
                 from air_quality.cpp:2:
utils/bufstring.h: In member function ‘bool BufString<Size>::startsWith(const QLatin1String&) const’:
utils/bufstring.h:155:17: error: ‘const class QLatin1String’ has no member named ‘size’
         if (str.size() <= int(size()))
                 ^~~~
utils/bufstring.h: In function ‘bool operator==(const BufString<T>&, const QLatin1String&)’:
utils/bufstring.h:194:16: error: ‘const class QLatin1String’ has no member named ‘size’
     return rhs.size() != 0 && strcmp(lhs.c_str(), rhs.data()) == 0;
                ^~~~
utils/bufstring.h:194:55: error: ‘const class QLatin1String’ has no member named ‘data’
     return rhs.size() != 0 && strcmp(lhs.c_str(), rhs.data()) == 0;
                                                       ^~~~
In file included from de_web_plugin_private.h:45,
                 from air_quality.cpp:2:
websocket_server.h: At global scope:
websocket_server.h:34:24: error: ‘QAbstractSocket’ has not been declared
     void onSocketError(QAbstractSocket::SocketError err);
                        ^~~~~~~~~~~~~~~
websocket_server.h:34:53: error: expected ‘,’ or ‘...’ before ‘err’
     void onSocketError(QAbstractSocket::SocketError err);
                                                     ^~~
In file included from air_quality.cpp:2:
de_web_plugin_private.h:1424:29: error: ‘QHostAddress’ does not name a type
     void foundGateway(const QHostAddress &host, quint16 port, const QString &uuid, const QString &name);
                             ^~~~~~~~~~~~
In file included from air_quality.h:4,
                 from air_quality.cpp:3:
utils/utils.h: In function ‘bool isValid(const KeyMap&)’:
utils/utils.h:72:61: error: ‘const class QLatin1String’ has no member named ‘size’
 inline bool isValid(const KeyMap &entry) { return entry.key.size() != 0; }
                                                             ^~~~
utils/utils.h: In function ‘bool isValid(const KeyValMap&)’:
utils/utils.h:73:64: error: ‘const class QLatin1String’ has no member named ‘size’
 inline bool isValid(const KeyValMap &entry) { return entry.key.size() != 0; }
                                                                ^~~~
utils/utils.h: In function ‘bool isValid(const KeyValMapTuyaSingle&)’:
utils/utils.h:74:74: error: ‘const class QLatin1String’ has no member named ‘size’
 e bool isValid(const KeyValMapTuyaSingle &entry) { return entry.key.size() != 0; }
                                                                     ^~~~

utils/utils.h: In function ‘constexpr KeyMap invalidValue(KeyMap)’:
utils/utils.h:76:18: error: invalid type for parameter 1 of ‘constexpr’ function ‘constexpr KeyMap invalidValue(KeyMap)’
 constexpr KeyMap invalidValue(KeyMap) { return KeyMap{QLatin1String("")}; }
                  ^~~~~~~~~~~~
utils/utils.h:25:8: note: ‘KeyMap’ is not literal because:
 struct KeyMap
        ^~~~~~
utils/utils.h:27:19: note:   non-static data member ‘KeyMap::key’ has non-literal type
     QLatin1String key;
                   ^~~
In file included from /usr/include/qt4/QtCore/qobject.h:48,
                 from /usr/include/qt4/QtCore/QObject:1,
                 from de_web_plugin.h:15,
                 from air_quality.cpp:1:
/usr/include/qt4/QtCore/qstring.h:654:21: note: ‘QLatin1String’ is not literal because:
 class Q_CORE_EXPORT QLatin1String
                     ^~~~~~~~~~~~~
/usr/include/qt4/QtCore/qstring.h:654:21: note:   ‘QLatin1String’ is not an aggregate, does not have a trivial default constructor, and has no ‘constexpr’ constructor that is not a copy or move constructor
In file included from air_quality.h:4,
                 from air_quality.cpp:3:
utils/utils.h:76:18: error: invalid return type ‘KeyMap’ of ‘constexpr’ function ‘constexpr KeyMap invalidValue(KeyMap)’
 constexpr KeyMap invalidValue(KeyMap) { return KeyMap{QLatin1String("")}; }
                  ^~~~~~~~~~~~
utils/utils.h: In function ‘constexpr KeyValMap invalidValue(KeyValMap)’:
utils/utils.h:77:21: error: invalid type for parameter 1 of ‘constexpr’ function ‘constexpr KeyValMap invalidValue(KeyValMap)’
 constexpr KeyValMap invalidValue(KeyValMap) { return KeyValMap{QLatin1String(""), 0 }; }
                     ^~~~~~~~~~~~
utils/utils.h:30:8: note: ‘KeyValMap’ is not literal because:
 struct KeyValMap
        ^~~~~~~~~
utils/utils.h:32:19: note:   non-static data member ‘KeyValMap::key’ has non-literal type
     QLatin1String key;
                   ^~~
utils/utils.h:77:21: error: invalid return type ‘KeyValMap’ of ‘constexpr’ function ‘constexpr KeyValMap invalidValue(KeyValMap)’
 constexpr KeyValMap invalidValue(KeyValMap) { return KeyValMap{QLatin1String(""), 0 }; }
                     ^~~~~~~~~~~~
utils/utils.h: In function ‘constexpr KeyValMapTuyaSingle invalidValue(KeyValMapTuyaSingle)’:
utils/utils.h:79:31: error: invalid type for parameter 1 of ‘constexpr’ function ‘constexpr KeyValMapTuyaSingle invalidValue(KeyValMapTuyaSingle)’
 constexpr KeyValMapTuyaSingle invalidValue(KeyValMapTuyaSingle) { return KeyValMapTuyaSingle{QLatin1String(""), {0} }; }
                               ^~~~~~~~~~~~
utils/utils.h:42:8: note: ‘KeyValMapTuyaSingle’ is not literal because:
 struct KeyValMapTuyaSingle
        ^~~~~~~~~~~~~~~~~~~
utils/utils.h:44:19: note:   non-static data member ‘KeyValMapTuyaSingle::key’ has non-literal type
     QLatin1String key;
                   ^~~
utils/utils.h:79:31: error: invalid return type ‘KeyValMapTuyaSingle’ of ‘constexpr’ function ‘constexpr KeyValMapTuyaSingle invalidValue(KeyValMapTuyaSingle)’
 constexpr KeyValMapTuyaSingle invalidValue(KeyValMapTuyaSingle) { return KeyValMapTuyaSingle{QLatin1String(""), {0} }; }
                               ^~~~~~~~~~~~
utils/utils.h: In function ‘constexpr KeyValMapAirQuality invalidValue(KeyValMapAirQuality)’:
utils/utils.h:80:31: error: invalid type for parameter 1 of ‘constexpr’ function ‘constexpr KeyValMapAirQuality invalidValue(KeyValMapAirQuality)’
 constexpr KeyValMapAirQuality invalidValue(KeyValMapAirQuality) { return KeyValMapAirQuality{ 0, QLatin1String("") }; }
                               ^~~~~~~~~~~~
utils/utils.h:48:8: note: ‘KeyValMapAirQuality’ is not literal because:
 struct KeyValMapAirQuality
        ^~~~~~~~~~~~~~~~~~~
utils/utils.h:51:19: note:   non-static data member ‘KeyValMapAirQuality::value’ has non-literal type
     QLatin1String value;
                   ^~~~~
utils/utils.h:80:31: error: invalid return type ‘KeyValMapAirQuality’ of ‘constexpr’ function ‘constexpr KeyValMapAirQuality invalidValue(KeyValMapAirQuality)’
 constexpr KeyValMapAirQuality invalidValue(KeyValMapAirQuality) { return KeyValMapAirQuality{ 0, QLatin1String("") }; }
                               ^~~~~~~~~~~~
make[1]: *** [Makefile.Release:619: release/air_quality.o] Error 1
make[1] : on quitte le répertoire « /home/pi/deconz-rest-plugin »
make: *** [Makefile:34: release] Error 2
je demissione... Lol

Thorgal
Messages : 596
Enregistré le : 16 août 2018, 20:02
Contact :

Re: Moes

Message par Thorgal »

Code : Tout sélectionner

sudo apt-get update
sudo apt upgrade
?

Répondre