Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important information on the platform change.

cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Issues buildin cpp sample from sdk

Issues buildin cpp sample from sdk

schwebo
Established Member

Good morning Community,

i just tried to build some cpp sample projects which are included in the SDK.

The "hello.world" app builds  ARM and AMD working fine.

Than i tried to buld the "datalayer.client" app... but the include folder in the SDK is missingI (include/comm_datalayer)

schwebo_0-1651642605136.png

the SDK cloned repo:

schwebo_1-1651642671174.png

here should located the include folder?

here the SDK git link :https://github.com/boschrexroth/ctrlx-automation-sdk

 

So , what iam doing wrong?

 

thank in adavned

 

 

2 REPLIES 2

nickH
Community Moderator
Community Moderator

Good morning, 

Please always download the SDK from releases (for example with: wget https://github.com/boschrexroth/ctrlx-automation-sdk/releases/download/1.14.0/ctrlx-automation-sdk-1...).

Then unpack the zip archive (unzip ctrlx-automation-sdk-*.zip). Install the Data Layer debian package (sudo dpkg -i ctrlx-automation-sdk/deb/ctrlx-datalayer-*.deb). And change the mode for the flatc compilers in the SDK (chmod a+x ctrlx-automation-sdk/bin/oss.flatbuffers*/ubuntu20-gcc-*/release/flatc). 

If you setup your App Build Environment with version 1.14 you don't need to do this steps manually. You can just run the script (./install-sdk.sh) and it automatically downloads the newest release and does the steps I mentioned. image.png

install-sdk.sh:

 

#!/usr/bin/env bash
sudo snap install snapcraft --classic

sudo apt-get install jq -y

rm ctrlx-automation-sdk-*.zip*
rm ctrlx-datalayer-*.deb*

LATEST=$(curl -s https://api.github.com/repos/boschrexroth/ctrlx-automation-sdk/releases/latest)
      
for i in {0..1}
do
  FILTER=.assets[$i].browser_download_url
  DOWNLOAD_URL=$(echo $LATEST | jq -r $FILTER)
  wget $DOWNLOAD_URL
done

unzip -XK $(ls ctrlx-automation-sdk-*.zip)
chmod a+x ctrlx-automation-sdk/bin/oss.flatbuffers*/ubuntu20-gcc-*/release/flatc 
chmod a+x ctrlx-automation-sdk/bin/framework/ubuntu20-gcc-*/rexroth-automation-frame
find ctrlx-automation-sdk/ -name '*.sh' -exec chmod +x {} \;

sudo dpkg -r ctrlx-datalayer
sudo dpkg -i ctrlx-datalayer-*.deb

 

schwebo
Established Member

Thank you for replying...  unfortunatly when i use the new sdk like u mentiond, an i just want to build the samples-cpp/hello.world app, i got the folling error:

 

schwebo_0-1651742602566.png

No such file or directory... 

what im doing wrong now?

 

FIXED: build a snap is only possible on the local drive, over mounted folders.. my fault.. thank you

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist