Building examples shared libs

Questions regarding the use of the ANSI C SDK for Server or Client development or integration into customer products ...

Moderator: uasdkc

Post Reply
rittal-beck
Full Member
Full Member
Posts: 8
Joined: 15 Jan 2018, 07:16

Building examples shared libs

Post by rittal-beck »

Hello,

another problem what i found is that i can't build any examples as shared libs. It built all providers as libs but later in the application it doesn't run through it. Is this normal behavior?

When it built without -sON option it link it static and in the application I can see how the provider is loaded. So when I set the option -sON it just won't load the provider.

Kind regards

User avatar
Support Team
Hero Member
Hero Member
Posts: 3068
Joined: 18 Mar 2011, 15:09

Re: Building examples shared libs

Post by Support Team »

Hello rittal-beck,

we cannot reproduce this issue. After building the SDK with

Code: Select all

./buildSdk.sh -c Debug -s ON -j 8
and then building the examples with

Code: Select all

./buildExamples.sh -c Debug -s ON -j 8
you will find the server binary in the <SDK-ROOT>/bin folder. When starting it, the dynamic library libdemoproviderd.so is being loaded from the <SDK-ROOT>/lib folder as expected.
Best regards
Unified Automation Support Team

Post Reply