Post Go back to editing

When I ran ./ADIToFGUI and Clicked "Play", I got "Error : Getting platforms -1001!".

Category: Software
Product Number: EVAL-ADTF3175D-NXZ
Software Version: Rel3.2.0 / Rel4.1.1 on Ubuntu 22.04.2

Hello, 

My PC processor is AMD Ryzen 5 and OS is ubuntu 22.04.2.

I referred to https://github.com/analogdevicesinc/ToF/releases

After I ran ./ADIToFGUI and Clicked "Play",  I got  "Error : Getting platforms -1001!".

Could you please kindly let know how to solve the issue ?

I tested Rel3.2.0 and Rel4.1.1 and I got the same error message.

I found that there are some "intel" install items in https://github.com/analogdevicesinc/ToF/releases

Are the release files in just for intel processor ?

If yes, could you kindly teach me how to rebuild for AMD Ryzen processor ? 

Best regards,

H.Kashima

Parents Reply Children
  • I'm sorry. I do not know 'clinfo' very well.

    Could you kindly please let me know what should I check in details ?

    I attached the screen shot which includes the information I can provide now.

    After I clicked [Play] button, the GUI window disappeared from the display.

    Best regards,

    H.Kashima

  • Try the following:

    * sudo apt install clinfo

    * clinfo

  • Hello,

    I got  the result as below.

    -------

    kashima@kashima-HP-ProBook-635-Aero-G8-Notebook-PC:~/Analog Devices$ clinfo
    Number of platforms 0
    kashima@kashima-HP-ProBook-635-Aero-G8-Notebook-PC:~/Analog Devices$

    ------



    Best regards,

    H.Kashima

  • It looks like the OpenCL run-times are not installed.

    Just to confirm, did you run the instructions from "Install OpenCL run-times" located here https://github.com/analogdevicesinc/ToF/releases/tag/v4.1.1 ?

  • Thanks for your reply.

    I have installed the items already.

    And I tried to reinstall them. 

    kashima@kashima-HP-ProBook-635-Aero-G8-Notebook-PC:~$ sudo apt install clinfo
    [sudo] password for kashima: 
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    clinfo is already the newest version (3.0.21.02.21-1).
    The following packages were automatically installed and are no longer required:
      docker-scan-plugin libllvm13
    Use 'sudo apt autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
    kashima@kashima-HP-ProBook-635-Aero-G8-Notebook-PC:~$ sudo apt install mesa-utils
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    mesa-utils is already the newest version (8.4.0-1ubuntu1).
    The following packages were automatically installed and are no longer required:
      docker-scan-plugin libllvm13
    Use 'sudo apt autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
    kashima@kashima-HP-ProBook-635-Aero-G8-Notebook-PC:~$ sudo apt install -y gpg-agent wget
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    wget is already the newest version (1.21.2-2ubuntu1).
    gpg-agent is already the newest version (2.2.27-3ubuntu2.1).
    The following packages were automatically installed and are no longer required:
      docker-scan-plugin libllvm13
    Use 'sudo apt autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
    kashima@kashima-HP-ProBook-635-Aero-G8-Notebook-PC:~$ wget -qO - https://repositories.intel.com/graphics/intel-graphics.key | sudo apt-key add -
    Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
    OK
    kashima@kashima-HP-ProBook-635-Aero-G8-Notebook-PC:~$ sudo apt-add-repository 'deb [arch=amd64] https://repositories.intel.com/graphics/ubuntu focal main'
    Repository: 'deb [arch=amd64] https://repositories.intel.com/graphics/ubuntu focal main'
    Description:
    Archive for codename: focal components: main
    More info: https://repositories.intel.com/graphics/ubuntu
    Adding repository.
    Press [ENTER] to continue or Ctrl-c to cancel.
    Found existing deb entry in /etc/apt/sources.list.d/archive_uri-https_repositories_intel_com_graphics_ubuntu-jammy.list
    Adding deb entry to /etc/apt/sources.list.d/archive_uri-https_repositories_intel_com_graphics_ubuntu-jammy.list
    Found existing deb-src entry in /etc/apt/sources.list.d/archive_uri-https_repositories_intel_com_graphics_ubuntu-jammy.list
    Adding disabled deb-src entry to /etc/apt/sources.list.d/archive_uri-https_repositories_intel_com_graphics_ubuntu-jammy.list
    Hit:1 https://dl.google.com/linux/chrome/deb stable InRelease
    Hit:2 https://download.docker.com/linux/ubuntu jammy InRelease                 
    Hit:3 http://packages.microsoft.com/repos/code stable InRelease                
    Hit:4 https://linux.teamviewer.com/deb stable InRelease                        
    Hit:5 https://repositories.intel.com/graphics/ubuntu focal InRelease           
    Hit:6 http://jp.archive.ubuntu.com/ubuntu jammy InRelease                      
    Hit:7 http://security.ubuntu.com/ubuntu jammy-security InRelease
    Hit:8 http://jp.archive.ubuntu.com/ubuntu jammy-updates InRelease
    Hit:9 http://jp.archive.ubuntu.com/ubuntu jammy-backports InRelease
    Reading package lists... Done
    W: https://repositories.intel.com/graphics/ubuntu/dists/focal/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
    kashima@kashima-HP-ProBook-635-Aero-G8-Notebook-PC:~$ sudo apt update
    Hit:1 https://linux.teamviewer.com/deb stable InRelease
    Hit:2 https://download.docker.com/linux/ubuntu jammy InRelease                 
    Hit:3 http://packages.microsoft.com/repos/code stable InRelease                
    Hit:4 https://dl.google.com/linux/chrome/deb stable InRelease                  
    Hit:5 http://jp.archive.ubuntu.com/ubuntu jammy InRelease                      
    Hit:6 http://jp.archive.ubuntu.com/ubuntu jammy-updates InRelease              
    Hit:7 http://security.ubuntu.com/ubuntu jammy-security InRelease    
    Hit:8 https://repositories.intel.com/graphics/ubuntu focal InRelease
    Hit:9 http://jp.archive.ubuntu.com/ubuntu jammy-backports InRelease
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    1 package can be upgraded. Run 'apt list --upgradable' to see it.
    W: https://repositories.intel.com/graphics/ubuntu/dists/focal/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
    kashima@kashima-HP-ProBook-635-Aero-G8-Notebook-PC:~$ sudo apt upgrade
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    Calculating upgrade... Done
    The following packages were automatically installed and are no longer required:
      docker-scan-plugin libllvm13
    Use 'sudo apt autoremove' to remove them.
    The following packages have been kept back:
      gnome-remote-desktop
    0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
    kashima@kashima-HP-ProBook-635-Aero-G8-Notebook-PC:~$

    Unfortunately, when I ran ADITOFGUI, I got the same result as before.

    kashima@kashima-HP-ProBook-635-Aero-G8-Notebook-PC:~/Analog Devices/TOF_Evaluation_ADTF3175D-Ubuntu22.04-Rel4.1.1/bin$ ./ADIToFGUI 
    Conn established
    Connection Closed
    Conn established
    Error: Getting platforms -1001!
    Failed to initialize OpenCL config
    Failed to initialize TOFI Processor Config
    Segmentation fault (core dumped)
    kashima@kashima-HP-ProBook-635-Aero-G8-Notebook-PC:~/Analog Devices/TOF_Evaluation_ADTF3175D-Ubuntu22.04-Rel4.1.1/bin$ clinfo
    Number of platforms                               0
    kashima@kashima-HP-ProBook-635-Aero-G8-Notebook-PC:~/Analog Devices/TOF_Evaluation_ADTF3175D-Ubuntu22.04-Rel4.1.1/bin$ 

    Best regards,

    H.Kashima