Error SDK V1.18. Not able to snap, because the package 'ctrlx-datalayer' was not found.

When I try to build my snap for the example 'samples-cpp/registernode', I get the error: 

Failed to fetch stage packages: Error downloading packages for part 'registernode': The package 'ctrlx-datalayer' was not found..

I created the App Build Environment with V1.16 and downloaded the newest SDK, which is V1.18.

 

Best reply by nickH

Reason:

  • The snapcraft yaml files of all sample projects got simplified. But the ctrlx-datalayer debian package gets published in the SDK. Therefore, the storage folder (ctrlx-automation-sdk/deb) of the ctrlx-datalayer debian package in the SDK needs to be registered in the sources list (/etc/apt/sources.list.d/ctrlx-automation.list).

 

There are three ways to solve this:

  1. The easiest way to solve this issue is to create a App Build Environment with ctrlX WORKS V1.18 and run the script “install-sdk.sh”. After this everything is setup correct and you are able to build the samples in the SDK.

  2. If you still want to use your Build Environment (created with V1.16 or prior) or your own ubuntu machine: You can download the install-ctrlx-datalayer-deb.sh here and bring it to your build environment (drag&drop). Change the execute permissions, go to the folder where our datalayer debian package is stored in the sdk (ctrlx-automation-sdk/deb) and run the install script (~/install-ctrlx-datalayer-deb.sh).



  3. Besides this you can also do the steps, the script (2.) does manually:
    1. Uninstall old ctrlx-datalayer packages
      sudo dpkg -r ctrlx-datalayer
    2. go to ctrlx-automation-sdk/deb
      cd ctrlx-automation-sdk/deb
    3. install the ctrlx-datalayer Debian package (V1.9.1)
      sudo dpkg -i ctrlx-datalayer-1.9.1.deb
    4. Install package containing required component dpkg-scanpackages
      sudo apt-get install dpkg-dev
    5. Install debian package locally so that 'apt-get install' will find it (for building sample project snaps)
      dpkg-scanpackages -m . > Packages
    6. Add package to sources list
      sudo sh -c "echo 'deb [trusted=yes] file:/home/boschrexroth/ctrlx-automation-sdk/deb ./' > /etc/apt/sources.list.d/ctrlx-automation.list" (path = /home/boschrexroth/ctrlx-automation-sdk/deb)
    7. Use the newest sources list

      sudo apt update

    8. Install newest ctrlx-datalayer package
      sudo apt-get install -y ctrlx-datalayer

 

View original
1
4 replies