build error of aditof_sdk for jetson nano

Hello,

I have a problem with  Jetson Nano SD card image for AD-96TOF1-EBZ, can you help me please?

===========================================================

case #1

-------

git pull
mkdir build && cd build
cmake -DJETSON=1 -DCMAKE_PREFIX_PATH="/opt/glog;/opt/protobuf;/opt/websockets" ..
make
------
Result : Build error as below
------


=====================================================================================================

case #2

git clone github.com/.../aditof_sdk
cd aditof_sdk
mkdir build && cd build
cmake -DJETSON=1 -DCMAKE_PREFIX_PATH="/opt/glog;/opt/protobuf;/opt/websockets" ..
make
-----
Result : Built error as below
-----
analog@analog-desktop:~/workspace/github$ git clone github.com/.../aditof_sdk
Cloning into 'aditof_sdk'...
remote: Enumerating objects: 254, done.
remote: Counting objects: 100% (254/254), done.
remote: Compressing objects: 100% (179/179), done.
remote: Total 7193 (delta 113), reused 156 (delta 65), pack-reused 6939
Receiving objects: 100% (7193/7193), 80.19 MiB | 370.00 KiB/s, done.
Resolving deltas: 100% (4419/4419), done.
analog@analog-desktop:~/workspace/github$ cd aditof_sdk
analog@analog-desktop:~/workspace/github/aditof_sdk$ ls build
ls: cannot access 'build': No such file or directory
analog@analog-desktop:~/workspace/github/aditof_sdk$ mkdir build
analog@analog-desktop:~/workspace/github/aditof_sdk$ cd build
analog@analog-desktop:~/workspace/github/aditof_sdk/build$ cmake -DJETSON=1 -DCMAKE_PREFIX_PATH="/opt/glog;/opt/protobuf;/opt/websockets" ..
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found Protobuf: /opt/protobuf/lib/libprotobuf.a;-lpthread (found suitable version "3.9.0", minimum required is "3.9.0") 
-- Found OpenCV: /usr (found version "4.1.1") 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/analog/workspace/github/aditof_sdk/build
analog@analog-desktop:~/workspace/github/aditof_sdk/build$ make
[  2%] Running C++ protocol buffer compiler on src/connections/network/buffer.proto
Scanning dependencies of target aditof
[  4%] Building CXX object sdk/CMakeFiles/aditof.dir/src/camera_factory.cpp.o
[  6%] Building CXX object sdk/CMakeFiles/aditof.dir/src/device_enumerator_factory.cpp.o
[  8%] Building CXX object sdk/CMakeFiles/aditof.dir/src/device_enumerator_impl.cpp.o
[ 10%] Building CXX object sdk/CMakeFiles/aditof.dir/src/device_factory.cpp.o
[ 12%] Building CXX object sdk/CMakeFiles/aditof.dir/src/eeprom_factory.cpp.o
[ 14%] Building CXX object sdk/CMakeFiles/aditof.dir/src/ethernet_device.cpp.o
[ 17%] Building CXX object sdk/CMakeFiles/aditof.dir/src/ethernet_eeprom.cpp.o
[ 19%] Building CXX object sdk/CMakeFiles/aditof.dir/src/filters_factory.cpp.o
[ 21%] Building CXX object sdk/CMakeFiles/aditof.dir/src/frame.cpp.o
[ 23%] Building CXX object sdk/CMakeFiles/aditof.dir/src/frame_impl.cpp.o
[ 25%] Building CXX object sdk/CMakeFiles/aditof.dir/src/frame_operations.cpp.o
[ 27%] Building CXX object sdk/CMakeFiles/aditof.dir/src/system.cpp.o
[ 29%] Building CXX object sdk/CMakeFiles/aditof.dir/src/system_impl.cpp.o
[ 31%] Building CXX object sdk/CMakeFiles/aditof.dir/src/usb_device.cpp.o
[ 34%] Building CXX object sdk/CMakeFiles/aditof.dir/src/utils.cpp.o
[ 36%] Building CXX object sdk/CMakeFiles/aditof.dir/src/variance_filter.cpp.o
[ 38%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/mipi/local_device.cpp.o
In file included from /home/analog/workspace/github/aditof_sdk/sdk/src/connections/mipi/local_device.cpp:33:0:
/home/analog/workspace/github/aditof_sdk/sdk/src/connections/mipi/jetson/target_definitions.h:43:20: warning: TEMP_SENSOR_REPLACEMENT_DEV_PATH’ defined but not used [-Wunused-variable]
 static const char *TEMP_SENSOR_REPLACEMENT_DEV_PATH = "";
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/analog/workspace/github/aditof_sdk/sdk/src/connections/mipi/jetson/target_definitions.h:40:20: warning: EEPROM_REPLACEMENT_PATH’ defined but not used [-Wunused-variable]
 static const char *EEPROM_REPLACEMENT_PATH =
                    ^~~~~~~~~~~~~~~~~~~~~~~
/home/analog/workspace/github/aditof_sdk/sdk/src/connections/mipi/jetson/target_definitions.h:38:20: warning: EEPROM_DEV_PATH’ defined but not used [-Wunused-variable]
 static const char *EEPROM_DEV_PATH = "/sys/bus/i2c/devices/6-0056/eeprom";
                    ^~~~~~~~~~~~~~~
/home/analog/workspace/github/aditof_sdk/sdk/src/connections/mipi/jetson/target_definitions.h:35:20: warning: EEPROM_NAME’ defined but not used [-Wunused-variable]
 static const char *EEPROM_NAME = "24c1024";
                    ^~~~~~~~~~~
[ 40%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/mipi/local_eeprom.cpp.o
[ 42%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/mipi/usb_device.cpp.o
[ 44%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/mipi/usb_eeprom.cpp.o
[ 46%] Building C object sdk/CMakeFiles/aditof.dir/src/connections/mipi/temp_sensor.c.o
[ 48%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/mipi/jetson/device_enumerator_jetson.cpp.o
/home/analog/workspace/github/aditof_sdk/sdk/src/connections/mipi/jetson/device_enumerator_jetson.cpp: In member function ‘virtual aditof::Status DeviceEnumeratorImpl::findDevices(std::vector<aditof::DeviceConstructionData>&)’:
/home/analog/workspace/github/aditof_sdk/sdk/src/connections/mipi/jetson/device_enumerator_jetson.cpp:68:22: warning: unused variable ‘video’ [-Wunused-variable]
     for (const auto &video : videoPaths) {
                      ^~~~~
In file included from /home/analog/workspace/github/aditof_sdk/sdk/src/connections/mipi/jetson/device_enumerator_jetson.cpp:33:0:
/home/analog/workspace/github/aditof_sdk/sdk/src/connections/mipi/jetson/target_definitions.h: At global scope:
/home/analog/workspace/github/aditof_sdk/sdk/src/connections/mipi/jetson/target_definitions.h:45:20: warning: CAPTURE_DEVICE_NAME’ defined but not used [-Wunused-variable]
 static const char *CAPTURE_DEVICE_NAME = "vi-output, addi9036 6-0064";
                    ^~~~~~~~~~~~~~~~~~~
/home/analog/workspace/github/aditof_sdk/sdk/src/connections/mipi/jetson/target_definitions.h:43:20: warning: TEMP_SENSOR_REPLACEMENT_DEV_PATH’ defined but not used [-Wunused-variable]
 static const char *TEMP_SENSOR_REPLACEMENT_DEV_PATH = "";
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/analog/workspace/github/aditof_sdk/sdk/src/connections/mipi/jetson/target_definitions.h:40:20: warning: EEPROM_REPLACEMENT_PATH’ defined but not used [-Wunused-variable]
 static const char *EEPROM_REPLACEMENT_PATH =
                    ^~~~~~~~~~~~~~~~~~~~~~~
/home/analog/workspace/github/aditof_sdk/sdk/src/connections/mipi/jetson/target_definitions.h:37:20: warning: TEMP_SENSOR_DEV_PATH’ defined but not used [-Wunused-variable]
 static const char *TEMP_SENSOR_DEV_PATH = "/dev/i2c-6";
                    ^~~~~~~~~~~~~~~~~~~~
[ 51%] Building CXX object sdk/CMakeFiles/aditof.dir/src/cameras/ad-96tof1-ebz/calibration_96tof1.cpp.o
[ 53%] Building CXX object sdk/CMakeFiles/aditof.dir/src/cameras/ad-96tof1-ebz/camera_96tof1.cpp.o
[ 55%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/usb/usb_utils.cpp.o
[ 57%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/network/device_enumerator_ethernet.cpp.o
[ 59%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/network/network.cpp.o
[ 61%] Building CXX object sdk/CMakeFiles/aditof.dir/buffer.pb.cc.o
[ 63%] Linking CXX shared library libaditof.so
[ 63%] Built target aditof
Scanning dependencies of target eeprom-tool
[ 65%] Building CXX object tools/eeprom-tool/CMakeFiles/eeprom-tool.dir/main.cpp.o
[ 68%] Building CXX object tools/eeprom-tool/CMakeFiles/eeprom-tool.dir/eeprom_tool.cpp.o
[ 70%] Building CXX object tools/eeprom-tool/CMakeFiles/eeprom-tool.dir/cam96tof1_eeprom.cpp.o
[ 72%] Building CXX object tools/eeprom-tool/CMakeFiles/eeprom-tool.dir/cli_helper.cpp.o
[ 74%] Building CXX object tools/eeprom-tool/CMakeFiles/eeprom-tool.dir/camera_eeprom_factory.cpp.o
[ 76%] Linking CXX executable eeprom-tool
../../sdk/libaditof.so.1.6.0: undefined reference to `SSL_get_ex_new_index'
../../sdk/libaditof.so.1.6.0: undefined reference to `SSL_COMP_free_compression_methods'
../../sdk/libaditof.so.1.6.0: undefined reference to `SSL_CTX_get_ex_new_index'
../../sdk/libaditof.so.1.6.0: undefined reference to `ERR_free_strings'
../../sdk/libaditof.so.1.6.0: undefined reference to `SSL_load_error_strings'
../../sdk/libaditof.so.1.6.0: undefined reference to `SSL_library_init'
../../sdk/libaditof.so.1.6.0: undefined reference to `OPENSSL_add_all_algorithms_noconf'
../../sdk/libaditof.so.1.6.0: undefined reference to `EVP_cleanup'
../../sdk/libaditof.so.1.6.0: undefined reference to `SSLv23_server_method'
../../sdk/libaditof.so.1.6.0: undefined reference to `sk_value'
../../sdk/libaditof.so.1.6.0: undefined reference to `CRYPTO_cleanup_all_ex_data'
collect2: error: ld returned 1 exit status
tools/eeprom-tool/CMakeFiles/eeprom-tool.dir/build.make:200: recipe for target 'tools/eeprom-tool/eeprom-tool' failed
make[2]: *** [tools/eeprom-tool/eeprom-tool] Error 1
CMakeFiles/Makefile2:190: recipe for target 'tools/eeprom-tool/CMakeFiles/eeprom-tool.dir/all' failed
make[1]: *** [tools/eeprom-tool/CMakeFiles/eeprom-tool.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
analog@analog-desktop:~/workspace/github/aditof_sdk/build$ 
========================================================================================================

Best regards,

H.Kashima

Parents
  • 0
    •  Analog Employees 
    on Nov 23, 2020 8:23 AM 4 months ago

    Sorry for the delayed reply, we are currently working on fixing the issue.

    In the meanwhile an option would be to use the code from release 1.5.0, which should work fine on the Jetson Nano: https://github.com/analogdevicesinc/aditof_sdk/releases/tag/v1.5.0 

  • Hi 

    Even I used aditof_sdk-1.5.0, I got the the same compile errors.

    analog@analog-desktop:~$ cd workspace/github/aditof_sdk-1.5.0/
    analog@analog-desktop:~/workspace/github/aditof_sdk-1.5.0$ ls
    apps          ci              doc       misc       sdcard-images-utils  utils
    appveyor.yml  cmake           examples  README.md  sdk
    bindings      CMakeLists.txt  LICENSE   scripts    tools
    analog@analog-desktop:~/workspace/github/aditof_sdk-1.5.0$ mkdir build
    analog@analog-desktop:~/workspace/github/aditof_sdk-1.5.0$ cd build/
    analog@analog-desktop:~/workspace/github/aditof_sdk-1.5.0/build$ cmake -DJETSON=1 -DCMAKE_PREFIX_PATH="/opt/glog;/opt/protobuf;/opt/websockets" ..
    -- The C compiler identification is GNU 7.4.0
    -- The CXX compiler identification is GNU 7.4.0
    -- Check for working C compiler: /usr/bin/cc
    -- Check for working C compiler: /usr/bin/cc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Looking for pthread.h
    -- Looking for pthread.h - found
    -- Looking for pthread_create
    -- Looking for pthread_create - not found
    -- Looking for pthread_create in pthreads
    -- Looking for pthread_create in pthreads - not found
    -- Looking for pthread_create in pthread
    -- Looking for pthread_create in pthread - found
    -- Found Threads: TRUE  
    -- Found Protobuf: /opt/protobuf/lib/libprotobuf.a;-lpthread (found suitable version "3.9.0", minimum required is "3.9.0") 
    -- Found OpenCV: /usr (found version "4.1.1") 
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/analog/workspace/github/aditof_sdk-1.5.0/build
    analog@analog-desktop:~/workspace/github/aditof_sdk-1.5.0/build$ make -j4
    [  2%] Running C++ protocol buffer compiler on src/connections/network/buffer.proto
    Scanning dependencies of target aditof
    [  5%] Building CXX object sdk/CMakeFiles/aditof.dir/src/camera_factory.cpp.o
    [  8%] Building CXX object sdk/CMakeFiles/aditof.dir/src/device_enumerator_impl.cpp.o
    [ 11%] Building CXX object sdk/CMakeFiles/aditof.dir/src/device_factory.cpp.o
    [ 13%] Building CXX object sdk/CMakeFiles/aditof.dir/src/device_enumerator_factory.cpp.o
    [ 16%] Building CXX object sdk/CMakeFiles/aditof.dir/src/ethernet_device.cpp.o
    [ 19%] Building CXX object sdk/CMakeFiles/aditof.dir/src/filters_factory.cpp.o
    [ 22%] Building CXX object sdk/CMakeFiles/aditof.dir/src/frame.cpp.o
    [ 25%] Building CXX object sdk/CMakeFiles/aditof.dir/src/frame_impl.cpp.o
    [ 27%] Building CXX object sdk/CMakeFiles/aditof.dir/src/frame_operations.cpp.o
    [ 30%] Building CXX object sdk/CMakeFiles/aditof.dir/src/system.cpp.o
    [ 33%] Building CXX object sdk/CMakeFiles/aditof.dir/src/system_impl.cpp.o
    [ 36%] Building CXX object sdk/CMakeFiles/aditof.dir/src/usb_device.cpp.o
    [ 38%] Building CXX object sdk/CMakeFiles/aditof.dir/src/variance_filter.cpp.o
    [ 41%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/mipi/local_device.cpp.o
    [ 44%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/mipi/usb_device.cpp.o
    [ 47%] Building C object sdk/CMakeFiles/aditof.dir/src/connections/mipi/eeprom.c.o
    [ 50%] Building C object sdk/CMakeFiles/aditof.dir/src/connections/mipi/temp_sensor.c.o
    [ 52%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/network/device_enumerator_ethernet.cpp.o
    [ 55%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/network/network.cpp.o
    [ 58%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/mipi/jetson/device_enumerator_jetson.cpp.o
    In file included from /home/analog/workspace/github/aditof_sdk-1.5.0/sdk/src/connections/mipi/local_device.cpp:33:0:
    /home/analog/workspace/github/aditof_sdk-1.5.0/sdk/src/connections/mipi/jetson/target_definitions.h:41:20: warning: TEMP_SENSOR_REPLACEMENT_DEV_PATH’ defined but not used [-Wunused-variable]
     static const char *TEMP_SENSOR_REPLACEMENT_DEV_PATH = "";
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/analog/workspace/github/aditof_sdk-1.5.0/sdk/src/connections/mipi/jetson/target_definitions.h:38:20: warning: EEPROM_REPLACEMENT_PATH’ defined but not used [-Wunused-variable]
     static const char *EEPROM_REPLACEMENT_PATH =
                        ^~~~~~~~~~~~~~~~~~~~~~~
    /home/analog/workspace/github/aditof_sdk-1.5.0/sdk/src/connections/mipi/jetson/device_enumerator_jetson.cpp: In member function ‘virtual aditof::Status DeviceEnumeratorImpl::findDevices(std::vector<aditof::DeviceConstructionData>&)’:
    /home/analog/workspace/github/aditof_sdk-1.5.0/sdk/src/connections/mipi/jetson/device_enumerator_jetson.cpp:66:22: warning: unused variable ‘video’ [-Wunused-variable]
         for (const auto &video : videoPaths) {
                          ^~~~~
    [ 61%] Building CXX object sdk/CMakeFiles/aditof.dir/src/cameras/ad-96tof1-ebz/calibration_96tof1.cpp.o
    [ 63%] Building CXX object sdk/CMakeFiles/aditof.dir/src/cameras/ad-96tof1-ebz/camera_96tof1.cpp.o
    [ 66%] Building CXX object sdk/CMakeFiles/aditof.dir/buffer.pb.cc.o
    [ 69%] Linking CXX shared library libaditof.so
    [ 69%] Built target aditof
    Scanning dependencies of target imshow-jetson
    Scanning dependencies of target aditof-demo
    Scanning dependencies of target first-frame
    Scanning dependencies of target first-frame-ethernet
    [ 72%] Building CXX object examples/first-frame/CMakeFiles/first-frame.dir/main.cpp.o
    [ 75%] Building CXX object examples/first-frame-ethernet/CMakeFiles/first-frame-ethernet.dir/main.cpp.o
    [ 77%] Building CXX object examples/imshow-jetson/CMakeFiles/imshow-jetson.dir/main.cpp.o
    [ 80%] Building CXX object examples/aditof-demo/CMakeFiles/aditof-demo.dir/aditofdemorecorder.cpp.o
    [ 83%] Linking CXX executable first-frame
    [ 86%] Linking CXX executable first-frame-ethernet
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_get_ex_new_index'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_COMP_free_compression_methods'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_CTX_get_ex_new_index'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `ERR_free_strings'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_load_error_strings'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_library_init'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `OPENSSL_add_all_algorithms_noconf'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `EVP_cleanup'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSLv23_server_method'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `sk_value'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `CRYPTO_cleanup_all_ex_data'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_get_ex_new_index'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_COMP_free_compression_methods'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_CTX_get_ex_new_index'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `ERR_free_strings'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_load_error_strings'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_library_init'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `OPENSSL_add_all_algorithms_noconf'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `EVP_cleanup'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSLv23_server_method'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `sk_value'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `CRYPTO_cleanup_all_ex_data'
    collect2: error: ld returned 1 exit status
    examples/first-frame-ethernet/CMakeFiles/first-frame-ethernet.dir/build.make:96: recipe for target 'examples/first-frame-ethernet/first-frame-ethernet' failed
    make[2]: *** [examples/first-frame-ethernet/first-frame-ethernet] Error 1
    CMakeFiles/Makefile2:327: recipe for target 'examples/first-frame-ethernet/CMakeFiles/first-frame-ethernet.dir/all' failed
    make[1]: *** [examples/first-frame-ethernet/CMakeFiles/first-frame-ethernet.dir/all] Error 2
    make[1]: *** Waiting for unfinished jobs....
    collect2: error: ld returned 1 exit status
    examples/first-frame/CMakeFiles/first-frame.dir/build.make:96: recipe for target 'examples/first-frame/first-frame' failed
    make[2]: *** [examples/first-frame/first-frame] Error 1
    CMakeFiles/Makefile2:272: recipe for target 'examples/first-frame/CMakeFiles/first-frame.dir/all' failed
    make[1]: *** [examples/first-frame/CMakeFiles/first-frame.dir/all] Error 2
    [ 88%] Building CXX object examples/aditof-demo/CMakeFiles/aditof-demo.dir/aditofdemoview.cpp.o
    [ 91%] Building CXX object examples/aditof-demo/CMakeFiles/aditof-demo.dir/aditofdemocontroller.cpp.o
    [ 94%] Building CXX object examples/aditof-demo/CMakeFiles/aditof-demo.dir/main.cpp.o
    [ 97%] Linking CXX executable imshow-jetson
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_get_ex_new_index'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_COMP_free_compression_methods'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_CTX_get_ex_new_index'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `ERR_free_strings'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_load_error_strings'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_library_init'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `OPENSSL_add_all_algorithms_noconf'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `EVP_cleanup'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSLv23_server_method'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `sk_value'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `CRYPTO_cleanup_all_ex_data'
    collect2: error: ld returned 1 exit status
    examples/imshow-jetson/CMakeFiles/imshow-jetson.dir/build.make:111: recipe for target 'examples/imshow-jetson/imshow-jetson' failed
    make[2]: *** [examples/imshow-jetson/imshow-jetson] Error 1
    CMakeFiles/Makefile2:382: recipe for target 'examples/imshow-jetson/CMakeFiles/imshow-jetson.dir/all' failed
    make[1]: *** [examples/imshow-jetson/CMakeFiles/imshow-jetson.dir/all] Error 2
    [100%] Linking CXX executable aditof-demo
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_get_ex_new_index'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_COMP_free_compression_methods'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_CTX_get_ex_new_index'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `ERR_free_strings'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_load_error_strings'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_library_init'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `OPENSSL_add_all_algorithms_noconf'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `EVP_cleanup'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSLv23_server_method'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `sk_value'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `CRYPTO_cleanup_all_ex_data'
    collect2: error: ld returned 1 exit status
    examples/aditof-demo/CMakeFiles/aditof-demo.dir/build.make:190: recipe for target 'examples/aditof-demo/aditof-demo' failed
    make[2]: *** [examples/aditof-demo/aditof-demo] Error 1
    CMakeFiles/Makefile2:217: recipe for target 'examples/aditof-demo/CMakeFiles/aditof-demo.dir/all' failed
    make[1]: *** [examples/aditof-demo/CMakeFiles/aditof-demo.dir/all] Error 2
    Makefile:129: recipe for target 'all' failed
    make: *** [all] Error 2
    analog@analog-desktop:~/workspace/github/aditof_sdk-1.5.0/build$ 


    Best regards,

    H.Kashima

Reply
  • Hi 

    Even I used aditof_sdk-1.5.0, I got the the same compile errors.

    analog@analog-desktop:~$ cd workspace/github/aditof_sdk-1.5.0/
    analog@analog-desktop:~/workspace/github/aditof_sdk-1.5.0$ ls
    apps          ci              doc       misc       sdcard-images-utils  utils
    appveyor.yml  cmake           examples  README.md  sdk
    bindings      CMakeLists.txt  LICENSE   scripts    tools
    analog@analog-desktop:~/workspace/github/aditof_sdk-1.5.0$ mkdir build
    analog@analog-desktop:~/workspace/github/aditof_sdk-1.5.0$ cd build/
    analog@analog-desktop:~/workspace/github/aditof_sdk-1.5.0/build$ cmake -DJETSON=1 -DCMAKE_PREFIX_PATH="/opt/glog;/opt/protobuf;/opt/websockets" ..
    -- The C compiler identification is GNU 7.4.0
    -- The CXX compiler identification is GNU 7.4.0
    -- Check for working C compiler: /usr/bin/cc
    -- Check for working C compiler: /usr/bin/cc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Looking for pthread.h
    -- Looking for pthread.h - found
    -- Looking for pthread_create
    -- Looking for pthread_create - not found
    -- Looking for pthread_create in pthreads
    -- Looking for pthread_create in pthreads - not found
    -- Looking for pthread_create in pthread
    -- Looking for pthread_create in pthread - found
    -- Found Threads: TRUE  
    -- Found Protobuf: /opt/protobuf/lib/libprotobuf.a;-lpthread (found suitable version "3.9.0", minimum required is "3.9.0") 
    -- Found OpenCV: /usr (found version "4.1.1") 
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/analog/workspace/github/aditof_sdk-1.5.0/build
    analog@analog-desktop:~/workspace/github/aditof_sdk-1.5.0/build$ make -j4
    [  2%] Running C++ protocol buffer compiler on src/connections/network/buffer.proto
    Scanning dependencies of target aditof
    [  5%] Building CXX object sdk/CMakeFiles/aditof.dir/src/camera_factory.cpp.o
    [  8%] Building CXX object sdk/CMakeFiles/aditof.dir/src/device_enumerator_impl.cpp.o
    [ 11%] Building CXX object sdk/CMakeFiles/aditof.dir/src/device_factory.cpp.o
    [ 13%] Building CXX object sdk/CMakeFiles/aditof.dir/src/device_enumerator_factory.cpp.o
    [ 16%] Building CXX object sdk/CMakeFiles/aditof.dir/src/ethernet_device.cpp.o
    [ 19%] Building CXX object sdk/CMakeFiles/aditof.dir/src/filters_factory.cpp.o
    [ 22%] Building CXX object sdk/CMakeFiles/aditof.dir/src/frame.cpp.o
    [ 25%] Building CXX object sdk/CMakeFiles/aditof.dir/src/frame_impl.cpp.o
    [ 27%] Building CXX object sdk/CMakeFiles/aditof.dir/src/frame_operations.cpp.o
    [ 30%] Building CXX object sdk/CMakeFiles/aditof.dir/src/system.cpp.o
    [ 33%] Building CXX object sdk/CMakeFiles/aditof.dir/src/system_impl.cpp.o
    [ 36%] Building CXX object sdk/CMakeFiles/aditof.dir/src/usb_device.cpp.o
    [ 38%] Building CXX object sdk/CMakeFiles/aditof.dir/src/variance_filter.cpp.o
    [ 41%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/mipi/local_device.cpp.o
    [ 44%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/mipi/usb_device.cpp.o
    [ 47%] Building C object sdk/CMakeFiles/aditof.dir/src/connections/mipi/eeprom.c.o
    [ 50%] Building C object sdk/CMakeFiles/aditof.dir/src/connections/mipi/temp_sensor.c.o
    [ 52%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/network/device_enumerator_ethernet.cpp.o
    [ 55%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/network/network.cpp.o
    [ 58%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/mipi/jetson/device_enumerator_jetson.cpp.o
    In file included from /home/analog/workspace/github/aditof_sdk-1.5.0/sdk/src/connections/mipi/local_device.cpp:33:0:
    /home/analog/workspace/github/aditof_sdk-1.5.0/sdk/src/connections/mipi/jetson/target_definitions.h:41:20: warning: TEMP_SENSOR_REPLACEMENT_DEV_PATH’ defined but not used [-Wunused-variable]
     static const char *TEMP_SENSOR_REPLACEMENT_DEV_PATH = "";
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/analog/workspace/github/aditof_sdk-1.5.0/sdk/src/connections/mipi/jetson/target_definitions.h:38:20: warning: EEPROM_REPLACEMENT_PATH’ defined but not used [-Wunused-variable]
     static const char *EEPROM_REPLACEMENT_PATH =
                        ^~~~~~~~~~~~~~~~~~~~~~~
    /home/analog/workspace/github/aditof_sdk-1.5.0/sdk/src/connections/mipi/jetson/device_enumerator_jetson.cpp: In member function ‘virtual aditof::Status DeviceEnumeratorImpl::findDevices(std::vector<aditof::DeviceConstructionData>&)’:
    /home/analog/workspace/github/aditof_sdk-1.5.0/sdk/src/connections/mipi/jetson/device_enumerator_jetson.cpp:66:22: warning: unused variable ‘video’ [-Wunused-variable]
         for (const auto &video : videoPaths) {
                          ^~~~~
    [ 61%] Building CXX object sdk/CMakeFiles/aditof.dir/src/cameras/ad-96tof1-ebz/calibration_96tof1.cpp.o
    [ 63%] Building CXX object sdk/CMakeFiles/aditof.dir/src/cameras/ad-96tof1-ebz/camera_96tof1.cpp.o
    [ 66%] Building CXX object sdk/CMakeFiles/aditof.dir/buffer.pb.cc.o
    [ 69%] Linking CXX shared library libaditof.so
    [ 69%] Built target aditof
    Scanning dependencies of target imshow-jetson
    Scanning dependencies of target aditof-demo
    Scanning dependencies of target first-frame
    Scanning dependencies of target first-frame-ethernet
    [ 72%] Building CXX object examples/first-frame/CMakeFiles/first-frame.dir/main.cpp.o
    [ 75%] Building CXX object examples/first-frame-ethernet/CMakeFiles/first-frame-ethernet.dir/main.cpp.o
    [ 77%] Building CXX object examples/imshow-jetson/CMakeFiles/imshow-jetson.dir/main.cpp.o
    [ 80%] Building CXX object examples/aditof-demo/CMakeFiles/aditof-demo.dir/aditofdemorecorder.cpp.o
    [ 83%] Linking CXX executable first-frame
    [ 86%] Linking CXX executable first-frame-ethernet
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_get_ex_new_index'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_COMP_free_compression_methods'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_CTX_get_ex_new_index'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `ERR_free_strings'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_load_error_strings'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_library_init'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `OPENSSL_add_all_algorithms_noconf'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `EVP_cleanup'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSLv23_server_method'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `sk_value'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `CRYPTO_cleanup_all_ex_data'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_get_ex_new_index'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_COMP_free_compression_methods'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_CTX_get_ex_new_index'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `ERR_free_strings'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_load_error_strings'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_library_init'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `OPENSSL_add_all_algorithms_noconf'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `EVP_cleanup'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSLv23_server_method'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `sk_value'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `CRYPTO_cleanup_all_ex_data'
    collect2: error: ld returned 1 exit status
    examples/first-frame-ethernet/CMakeFiles/first-frame-ethernet.dir/build.make:96: recipe for target 'examples/first-frame-ethernet/first-frame-ethernet' failed
    make[2]: *** [examples/first-frame-ethernet/first-frame-ethernet] Error 1
    CMakeFiles/Makefile2:327: recipe for target 'examples/first-frame-ethernet/CMakeFiles/first-frame-ethernet.dir/all' failed
    make[1]: *** [examples/first-frame-ethernet/CMakeFiles/first-frame-ethernet.dir/all] Error 2
    make[1]: *** Waiting for unfinished jobs....
    collect2: error: ld returned 1 exit status
    examples/first-frame/CMakeFiles/first-frame.dir/build.make:96: recipe for target 'examples/first-frame/first-frame' failed
    make[2]: *** [examples/first-frame/first-frame] Error 1
    CMakeFiles/Makefile2:272: recipe for target 'examples/first-frame/CMakeFiles/first-frame.dir/all' failed
    make[1]: *** [examples/first-frame/CMakeFiles/first-frame.dir/all] Error 2
    [ 88%] Building CXX object examples/aditof-demo/CMakeFiles/aditof-demo.dir/aditofdemoview.cpp.o
    [ 91%] Building CXX object examples/aditof-demo/CMakeFiles/aditof-demo.dir/aditofdemocontroller.cpp.o
    [ 94%] Building CXX object examples/aditof-demo/CMakeFiles/aditof-demo.dir/main.cpp.o
    [ 97%] Linking CXX executable imshow-jetson
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_get_ex_new_index'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_COMP_free_compression_methods'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_CTX_get_ex_new_index'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `ERR_free_strings'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_load_error_strings'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_library_init'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `OPENSSL_add_all_algorithms_noconf'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `EVP_cleanup'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSLv23_server_method'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `sk_value'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `CRYPTO_cleanup_all_ex_data'
    collect2: error: ld returned 1 exit status
    examples/imshow-jetson/CMakeFiles/imshow-jetson.dir/build.make:111: recipe for target 'examples/imshow-jetson/imshow-jetson' failed
    make[2]: *** [examples/imshow-jetson/imshow-jetson] Error 1
    CMakeFiles/Makefile2:382: recipe for target 'examples/imshow-jetson/CMakeFiles/imshow-jetson.dir/all' failed
    make[1]: *** [examples/imshow-jetson/CMakeFiles/imshow-jetson.dir/all] Error 2
    [100%] Linking CXX executable aditof-demo
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_get_ex_new_index'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_COMP_free_compression_methods'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_CTX_get_ex_new_index'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `ERR_free_strings'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_load_error_strings'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSL_library_init'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `OPENSSL_add_all_algorithms_noconf'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `EVP_cleanup'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `SSLv23_server_method'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `sk_value'
    ../../sdk/libaditof.so.1.5.0: undefined reference to `CRYPTO_cleanup_all_ex_data'
    collect2: error: ld returned 1 exit status
    examples/aditof-demo/CMakeFiles/aditof-demo.dir/build.make:190: recipe for target 'examples/aditof-demo/aditof-demo' failed
    make[2]: *** [examples/aditof-demo/aditof-demo] Error 1
    CMakeFiles/Makefile2:217: recipe for target 'examples/aditof-demo/CMakeFiles/aditof-demo.dir/all' failed
    make[1]: *** [examples/aditof-demo/CMakeFiles/aditof-demo.dir/all] Error 2
    Makefile:129: recipe for target 'all' failed
    make: *** [all] Error 2
    analog@analog-desktop:~/workspace/github/aditof_sdk-1.5.0/build$ 


    Best regards,

    H.Kashima

Children
No Data