I followed the steps provided in document and
I get "fatal error: google/protobuf/port_def.inc: no such file or directory
I checked and the file port_def.inc is there.
Thanks in advance
I followed the steps provided in document and
I get "fatal error: google/protobuf/port_def.inc: no such file or directory
I checked and the file port_def.inc is there.
Thanks in advance
Hi,
Can you please open up a terminal and run:
protoc --version
And show me what the output is?
Thanks!
upgraded the system to Ubuntu 18 but still not able to build the SDK running the scripts
with errors
[ 1%] Building C object CMakeFiles/websockets.dir/lib/plat/unix/unix-caps.c.o
[ 1%] Building C object CMakeFiles/websockets.dir/lib/tls/openssl/openssl-client.c.o
[ 1%] Building C object CMakeFiles/websockets.dir/lib/roles/h2/ops-h2.c.o
[ 1%] Building C object CMakeFiles/websockets_shared.dir/lib/tls/openssl/openssl-client.c.o
/home/fai/aditof_sdk/scripts/linux/deps/libwebsockets/lib/tls/openssl/openssl-client.c: In function ‘lws_tls_client_create_vhost_context’:
/home/fai/aditof_sdk/scripts/linux/deps/libwebsockets/lib/tls/openssl/openssl-client.c:387:2: error: ‘TLSv1_2_client_method’ is deprecated [-Werror=deprecated-declarations]
method = (SSL_METHOD *)TLSv1_2_client_method();
^~~~~~
In file included from /usr/include/openssl/e_os2.h:13:0,
from /usr/include/openssl/ssl.h:15,
from /home/fai/aditof_sdk/scripts/linux/deps/libwebsockets/include/libwebsockets.h:227,
from /home/fai/aditof_sdk/scripts/linux/deps/libwebsockets/lib/core/private.h:135,
from /home/fai/aditof_sdk/scripts/linux/deps/libwebsockets/lib/tls/openssl/openssl-client.c:22:
/usr/include/openssl/ssl.h:1866:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_client_method(void))
^
/home/fai/aditof_sdk/scripts/linux/deps/libwebsockets/lib/tls/openssl/openssl-client.c: In function ‘lws_tls_client_create_vhost_context’:
/home/fai/aditof_sdk/scripts/linux/deps/libwebsockets/lib/tls/openssl/openssl-client.c:387:2: error: ‘TLSv1_2_client_method’ is deprecated [-Werror=deprecated-declarations]
method = (SSL_METHOD *)TLSv1_2_client_method();
^~~~~~
Which script did you run? With what arguments did you run it?
I've cloned the aditof_sdk repo, then I ran this script: https://github.com/analogdevicesinc/aditof_sdk/blob/v2.0.0/scripts/linux/setup.sh on a fresh installed Ubuntu 18.04.05.
I've installed the openCV dependencies:
sudo apt install libopencv-contrib-dev sudo apt install libopencv-dev
I ran the script like this (from the directory where the script exists):
./setup.sh -b build -d deps
Things worked out of the box.
-Dan
Now get the following messages when running the aditof-demo, now using Ubuntu 18 and software is install by running the script for linux
Could not create TargetSensorEnumerator because SDK is not running on target.
I0202 15:22:54.635776 2789 usb_sensor_enumerator.cpp:85] Looking for USB connected sensors
I0202 15:22:54.704504 2789 usb_sensor_enumerator.cpp:164] Found USB capture device at: /dev/video1
I0202 15:22:54.706863 2789 usb_sensor_enumerator.cpp:168] Received the following buffer with available sensors from target: EEPROM_NAME=24c1024;EEPROM_PATH=/sys/bus/i2c/devices/0-0056/eeprom;
W0202 15:22:54.780752 2789 camera_96tof1.cpp:91] Could not find 24c1024 while looking for storage for camera AD-96TOF1-EBZ
I0202 15:22:54.781282 2789 camera_96tof1.cpp:144] Initializing camera
W0202 15:22:54.781322 2789 camera_96tof1.cpp:147] Failed to initialize! Not all sensors are available
E0202 15:22:54.781378 2789 main.cpp:238] Could not initialize camera!
Please help!
Hi,
You need to update the aditof_sdk on the embedded target.