Build and run C++


How can i compile and run one of the examples in C++ from the Ubuntu terminal?

  • 0
    •  Analog Employees 
    on Sep 15, 2020 10:56 AM

    The build instruction can be found here:

  • I thought I was wrong to take some steps but it isn't.

    At this point the problem is of a completely different nature.

    Using the command "dmesg" the camera is correctly identified.

    Since I try to run the "first-frame" example script I get this series of errors:

    After starting the example, if I reuse the "dmesg" command I get this:

    I tried to start my script in python (it worked before these problems) and I get this:

    I have the latest SD image for the Dragonboard downloaded, I am using Ubuntu 18.04 LTS.

    Anyone have any suggestions?

    P.s. I don't know if it is correct to continue on this topic or should I open a new one, in case I can do it without problems.

  • I noticed that the images are not visibile. The gallery can be found here:

  • 0
    •  Analog Employees 
    on Sep 21, 2020 9:16 PM in reply to YoubiquoTeam

    Sorry for the delayed reply. This looks like and extension unit issue on this Ubuntu version. We'll try to reproduce the issue on our end.

  • 0
    •  Analog Employees 
    on Sep 22, 2020 7:25 AM in reply to YoubiquoTeam


    You're using the latest SD card image which has Aditof SDK 1.5.0 installed. But at the same time you are using the latest master on your Ubuntu 18.04 LTS. On master we have added new code which requires changes to the SDK on the Dragonboard as well.

    So, try to use the latest release instead (tag v1.5.0), on the Ubuntu.


  • , sorry for the delay but we are still with the same problem. we have tried to reinstall everything from 0 and the error persists, we have tried on different devices and different versions of Ubuntu (18.04 - 20.04) and nothing has changed so I don't think it depends on the Ubuntu version. We tried it on Windows and it seems to work there, but we need to run it on Linux devices. What could we do? 

  • 0
    •  Analog Employees 
    on Sep 29, 2020 6:14 AM in reply to YoubiquoTeam

    The problem seems to be related to the uvc driver that gets installed on your Ubuntu. Other people have been having similar issues with webcams - 

    The solution seems to be installing the uvcdynctrl package. Can you please try that?

  • We tried installing the packages but we still have the same problems...

    I don't know if it can be useful, but we noticed a difference in the devices between linaro and ubuntu (this both before and after installing the packages you suggested).
    When we activate the cam in linaro (where the system works) both media0 and media1 are present while in ubuntu only media0.

    linaro@linaro-alip:/dev$ ls
    825000.etf        mmcblk0p14          ptyp5        tty35    ttyp6
    826000.etr        mmcblk0p15          ptyp6        tty36    ttyp7
    autofs            mmcblk0p16          ptyp7        tty37    ttyp8
    block             mmcblk0p17          ptyp8        tty38    ttyp9
    btrfs-control     mmcblk0p18          ptyp9        tty39    ttypa
    char              mmcblk0p19          ptypa        tty4     ttypb
    console           mmcblk0p2           ptypb        tty40    ttypc
    cpu_dma_latency   mmcblk0p20          ptypc        tty41    ttypd
    cuse              mmcblk0p21          ptypd        tty42    ttype
    disk              mmcblk0p22          ptype        tty43    ttypf
    dri               mmcblk0p23          ptypf        tty44    urandom
    fb0               mmcblk0p24          random       tty45    v4l
    fd                mmcblk0p25          rfkill       tty46    v4l-subdev0
    full              mmcblk0p26          rpmsg_ctrl0  tty47    v4l-subdev1
    fuse              mmcblk0p27          rpmsg_ctrl1  tty48    v4l-subdev10
    gpiochip0         mmcblk0p28          shm          tty49    v4l-subdev2
    gpiochip1         mmcblk0p29          snd          tty5     v4l-subdev3
    gpiochip2         mmcblk0p3           stderr       tty50    v4l-subdev4
    gps_proxy_ch      mmcblk0p4           stdin        tty51    v4l-subdev5
    hugepages         mmcblk0p5           stdout       tty52    v4l-subdev6
    hwrng             mmcblk0p6           tty          tty53    v4l-subdev7
    i2c-0             mmcblk0p7           tty0         tty54    v4l-subdev8
    i2c-1             mmcblk0p8           tty1         tty55    v4l-subdev9
    i2c-3             mmcblk0p9           tty10        tty56    vcs
    initctl           mmcblk0rpmb         tty11        tty57    vcs1
    input             mmcblk1             tty12        tty58    vcs2
    kmem              mmcblk1p1           tty13        tty59    vcs3
    kmsg              mmcblk1p2           tty14        tty6     vcs4
    log               mmcblk1p3           tty15        tty60    vcs5
    loop-control      mmcblk1p4           tty16        tty61    vcs6
    loop0             mmcblk1p5           tty17        tty62    vcs7
    loop1             mmcblk1p6           tty18        tty63    vcsa
    loop2             mmcblk1p7           tty19        tty7     vcsa1
    loop3             mmcblk1p8           tty2         tty8     vcsa2
    loop4             mmcblk1p9           tty20        tty9     vcsa3
    loop5             mqueue              tty21        tty96B0  vcsa4
    loop6             net                 tty22        tty96B1  vcsa5
    loop7             network_latency     tty23        ttyGPS0  vcsa6
    media0            network_throughput  tty24        ttyMSM0  vcsa7
    media1            null                tty25        ttyMSM1  vfio
    mem               port                tty26        ttyS0    vga_arbiter
    memory_bandwidth  ppp                 tty27        ttyS1    video0
    mmcblk0           psaux               tty28        ttyS2    video1
    mmcblk0boot0      ptmx                tty29        ttyS3    video2
    mmcblk0boot1      pts                 tty3         ttyp0    video3
    mmcblk0p1         ptyp0               tty30        ttyp1    video4
    mmcblk0p10        ptyp1               tty31        ttyp2    video5
    mmcblk0p11        ptyp2               tty32        ttyp3    video6
    mmcblk0p12        ptyp3               tty33        ttyp4    zero
    mmcblk0p13        ptyp4               tty34        ttyp5

    We have media0 and media1 in raspberry as well (and on raspberry, in local, it workes fine too).

  • 0
    •  Analog Employees 
    on Sep 30, 2020 1:24 PM in reply to YoubiquoTeam

    Have you tried to build the  Aditof SDK versio 1.5.0 on both target (camera board) and remote (PC with Ubuntu)? if so, can you post here the error messages that you receive on remote?

  • Sorry for delay answer. I have the SDK version 1.5.0 on the board, and i have installed the last version on my remote from this link:

    You can see the error that i receive here Look at the pictures DMESG2, FirstFrame and PyScript.