Build and run C++

Hello,

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

Parents Reply Children
  • 0
    •  Analog Employees 
    on Sep 29, 2020 6:14 AM 3 months ago 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 - https://bugzilla.kernel.org/show_bug.cgi?id=111291 

    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 3 months ago 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: https://github.com/analogdevicesinc/aditof_sdk/tree/v1.5.0.

    You can see the error that i receive here https://postimg.cc/gallery/GtDLGVG. Look at the pictures DMESG2, FirstFrame and PyScript.

  • 0
    •  Analog Employees 
    on Oct 12, 2020 3:03 PM 3 months ago in reply to YoubiquoTeam

    I'm looking at picture DMESG2 and I can see that UVC control 4 (from extension unit 3) is being queried. This has been added after release v.1.5.0. Somehow you are using a newer version than 1.5.0.

  • when we bought the kit the version that was installed on the sd was v1.2.0 and everything worked fine, then I updated to the latest version and from that moment the issues appeared. If you please can send me a direct link to download the image with version 1.2.0 i think i can solve these problems and it could be a good occasion to catch the bug.I'm waiting for your answer.
  • 0
    •  Analog Employees 
    on Oct 15, 2020 10:29 AM 3 months ago in reply to YoubiquoTeam

    We will provide a new image in a few days. This should solve the issues you are having.

  • 0
    •  Analog Employees 
    on Oct 21, 2020 9:18 AM 3 months ago in reply to YoubiquoTeam

    We have added a new image. Could you please check it out?

    https://github.com/analogdevicesinc/aditof_sdk#96-tof1-ebz