Compiling results on Nvidia Jetson Nano

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

Moderator: leecollings

Post Reply
IceBlackz
Posts: 12
Joined: Friday 29 March 2019 19:22
Target OS: Linux
Domoticz version:
Location: Wadenoijen
Contact:

Compiling results on Nvidia Jetson Nano

Post by IceBlackz »

Hello all,

I've just received my Jetson Nano and finished building/compiling Domoticz per instructions on the wiki.

Now I did see some warnings/errors during compilation, see also attached file. I know, I know, I should've read the wiki better and removed libboost before continuing, but I was unsure whether any of the pre installed nvidia software would also require it.

Code: Select all

[ 14%] Building C object MQTT/CMakeFiles/mqtt.dir/net_mosq.c.o
/home/rootuser/Domoticz/dev-domoticz/MQTT/net_mosq.c: In function ‘_mosquitto_net_cleanup’:
/home/rootuser/Domoticz/dev-domoticz/MQTT/net_mosq.c:114:2: warning: ‘ERR_remove_state’ is deprecated [-Wdeprecated-declarations]
  ERR_remove_state(0);
  ^~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/ui.h:13:0,
                 from /usr/include/openssl/engine.h:29,
                 from /home/rootuser/Domoticz/dev-domoticz/MQTT/net_mosq.c:55:
/usr/include/openssl/err.h:248:1: note: declared here
 DEPRECATEDIN_1_0_0(void ERR_remove_state(unsigned long pid))
 ^
/home/rootuser/Domoticz/dev-domoticz/MQTT/net_mosq.c: In function ‘_mosquitto_socket_connect’:
/home/rootuser/Domoticz/dev-domoticz/MQTT/net_mosq.c:428:4: warning: ‘TLSv1_2_client_method’ is deprecated [-Wdeprecated-declarations]
    mosq->ssl_ctx = SSL_CTX_new(TLSv1_2_client_method());
    ^~~~
In file included from /usr/include/openssl/ct.h:13:0,
                 from /usr/include/openssl/ssl.h:61,
                 from /home/rootuser/Domoticz/dev-domoticz/MQTT/tls_mosq.h:28,
                 from /home/rootuser/Domoticz/dev-domoticz/MQTT/net_mosq.c:57:
/usr/include/openssl/ssl.h:1638:1: note: declared here
 DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_client_method(void)) /* TLSv1.2 */
 ^
/home/rootuser/Domoticz/dev-domoticz/MQTT/net_mosq.c:430:4: warning: ‘TLSv1_1_client_method’ is deprecated [-Wdeprecated-declarations]
    mosq->ssl_ctx = SSL_CTX_new(TLSv1_1_client_method());
    ^~~~
In file included from /usr/include/openssl/ct.h:13:0,
                 from /usr/include/openssl/ssl.h:61,
                 from /home/rootuser/Domoticz/dev-domoticz/MQTT/tls_mosq.h:28,
                 from /home/rootuser/Domoticz/dev-domoticz/MQTT/net_mosq.c:57:
/usr/include/openssl/ssl.h:1632:1: note: declared here
 DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_client_method(void)) /* TLSv1.1 */
 ^
/home/rootuser/Domoticz/dev-domoticz/MQTT/net_mosq.c:432:4: warning: ‘TLSv1_client_method’ is deprecated [-Wdeprecated-declarations]
    mosq->ssl_ctx = SSL_CTX_new(TLSv1_client_method());
    ^~~~
In file included from /usr/include/openssl/ct.h:13:0,
                 from /usr/include/openssl/ssl.h:61,
                 from /home/rootuser/Domoticz/dev-domoticz/MQTT/tls_mosq.h:28,
                 from /home/rootuser/Domoticz/dev-domoticz/MQTT/net_mosq.c:57:
/usr/include/openssl/ssl.h:1626:1: note: declared here
 DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void)) /* TLSv1.0 */
 ^
[ 15%] Building C object MQTT/CMakeFiles/mqtt.dir/read_handle.c.o

Code: Select all

[ 18%] Building C object MQTT/CMakeFiles/mqtt.dir/tls_mosq.c.o
/home/rootuser/Domoticz/dev-domoticz/MQTT/tls_mosq.c: In function ‘_mosquitto_verify_certificate_hostname’:
/home/rootuser/Domoticz/dev-domoticz/MQTT/tls_mosq.c:130:5: warning: ‘ASN1_STRING_data’ is deprecated [-Wdeprecated-declarations]
     data = ASN1_STRING_data(nval->d.dNSName);
     ^~~~
In file included from /usr/include/openssl/bn.h:31:0,
                 from /usr/include/openssl/asn1.h:24,
                 from /usr/include/openssl/objects.h:916,
                 from /usr/include/openssl/evp.h:27,
                 from /usr/include/openssl/x509.h:23,
                 from /usr/include/openssl/x509v3.h:14,
                 from /home/rootuser/Domoticz/dev-domoticz/MQTT/tls_mosq.c:29:
/usr/include/openssl/asn1.h:553:1: note: declared here
 DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x))
 ^
/home/rootuser/Domoticz/dev-domoticz/MQTT/tls_mosq.c:136:5: warning: ‘ASN1_STRING_data’ is deprecated [-Wdeprecated-declarations]
     data = ASN1_STRING_data(nval->d.iPAddress);
     ^~~~
In file included from /usr/include/openssl/bn.h:31:0,
                 from /usr/include/openssl/asn1.h:24,
                 from /usr/include/openssl/objects.h:916,
                 from /usr/include/openssl/evp.h:27,
                 from /usr/include/openssl/x509.h:23,
                 from /usr/include/openssl/x509v3.h:14,
                 from /home/rootuser/Domoticz/dev-domoticz/MQTT/tls_mosq.c:29:
/usr/include/openssl/asn1.h:553:1: note: declared here
 DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x))
 ^
[ 18%] Building C object MQTT/CMakeFiles/mqtt.dir/util_mosq.c.o
And some more errors. I'm just wondering, can any of these do any real harm? I've already fired it up and it seems to be working just fine..

Thanks in advance,

IceBlackz

edit: after running sudo apt update and upgrade on the default supplied firmware by Nvidia, the installed version of libboost is 1.65.1
Attachments
makelog_domoticz_safe.txt
(33.81 KiB) Downloaded 39 times
Justino
Posts: 19
Joined: Thursday 14 January 2016 19:56
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10548
Location: The Netherlands
Contact:

Re: Compiling results on Nvidia Jetson Nano

Post by Justino »

IceBlackz wrote: Friday 29 March 2019 19:29 Hello all,

I've just received my Jetson Nano and finished building/compiling Domoticz per instructions on the wiki.
This look promising!
Do you have it working without error already? Planning on ordering one to sometime soon.

Mosquitto is primarily used for the Zigbee2MQTT function if i'm correct, i'm using it to, so maybe that part will not function?
Maybe you could test it with "-Wdeprecated-declarations" like the errors is telling?

Kind regards
IceBlackz
Posts: 12
Joined: Friday 29 March 2019 19:22
Target OS: Linux
Domoticz version:
Location: Wadenoijen
Contact:

Re: Compiling results on Nvidia Jetson Nano

Post by IceBlackz »

I haven't tried recompiling it yet, it seems to be working just fine for now. But I'm only using it with MQTT controlled Sonoff S20 switches which run Tasmota, not something very heavy or anything Zigbee related. I might try it again when I have time, but for now its running just fine!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest