Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Unable to build the sdk
February 10, 2021
16:48, EET
Avatar
UlrichFM
Member
Members
Forum Posts: 15
Member Since:
February 10, 2021
sp_UserOfflineSmall Offline

Hello,
Please i get an error coming from the sdk files and don’t know the cause.
I am using the ansi C client SDK on linux and i make the command ./buildExamples.sh on the sdk repertory but it did not go as planned because an error occured.
I think I have done what is supposed to be done.
Can you explain to me what’s going wrong and how to fix this error?

//———————————————————————————————————————-

No config was set – setting up the config to default build CONFIGURATIONS=Debug Release
Setting up default to static libraries BUILD_SHARED_LIBS=ON
— The C compiler identification is GNU 4.8.5
— Check for working C compiler: /usr/bin/gcc
— Check for working C compiler: /usr/bin/gcc — works
— Detecting C compiler ABI info
— Detecting C compiler ABI info – done
— Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found version “1.0.2k”)
— Detected GCC version: 4.8.5
CMake Error at /cmake/ConfigureCompiler.cmake:285 (cmake_dependent_option):
Syntax error in cmake code at

/sdk/cmake/ConfigureCompiler.cmake:288

when parsing string

CMAKE_BUILD_TYPE STREQUAL Debug AND \
NOT ENABLE_${COMPILER_NAME}_SANITIZER_ADDRESS AND \
NOT ENABLE_${COMPILER_NAME}_SANITIZER_THREAD AND \
NOT ENABLE_${COMPILER_NAME}_SANITIZER_MEMORY AND \
NOT ENABLE_${COMPILER_NAME}_SANITIZER_UB AND \
NOT ENABLE_${COMPILER_NAME}_SANITIZER_INTEGER AND \
NOT ENABLE_${COMPILER_NAME}_SANITIZER_UINT_OVERFLOW AND \
NOT ENABLE_${COMPILER_NAME}_PROFILING AND \
NOT ENABLE_${COMPILER_NAME}_LTO

syntax error, unexpected cal_SYMBOL, expecting $end (82)
Call Stack (most recent call first):
/sdk/cmake/ConfigureCompiler.cmake:439 (configure_warnings)
CMakeLists.txt:16 (include)

— Configuring incomplete, errors occurred!
See also “/opt/magma/main_opc/PrjStandard/SiteStd/convCom/sdk/buildExamplesDebug/oversampling/CMakeFiles/CMakeOutput.log”.
cmake failed.

//———————————————————————————————————————————————————————–

February 11, 2021
16:55, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

It looks like the changes to the default configuration were made in a bit incorrect manner.

Any changes to the default configuration should be made through CMake curses interface as detailed in the documentation available at:
https://documentation.unified-automation.com/uasdkc/1.9.0/html/CompileSdkLinux.html

February 16, 2021
11:47, EET
Avatar
UlrichFM
Member
Members
Forum Posts: 15
Member Since:
February 10, 2021
sp_UserOfflineSmall Offline

Hello, i have know a new error.
I included all the libs needed but i still have this error :

//———————————————————————————————————
undefined reference to `SetupClientPKIInfrastructure’
//———————————————————————————————————

Please do you know which library contains this function ? I think i don’t have it can you forward it to me or send me a link to where i could download it.

Thank’s

February 17, 2021
17:04, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

‘SetupClientPKIInfrastructure’ is part of the example code.
It is defined in sdk\examples\common\common_util.c

February 17, 2021
17:19, EET
Avatar
UlrichFM
Member
Members
Forum Posts: 15
Member Since:
February 10, 2021
sp_UserOfflineSmall Offline

ok I will try to fix it

Also I don’t know why but my subscriptions are sudently not working .
When i create my monitored items, I have an error after some call back of the function.
The error is :

//———————————————————————————————————
Segmentation fault (core dumped)
//———————————————————————————————————

Please do yo know what is the cause ?

February 17, 2021
17:23, EET
Avatar
UlrichFM
Member
Members
Forum Posts: 15
Member Since:
February 10, 2021
sp_UserOfflineSmall Offline

Excuse, I made a mistake the cause was from my nodeID which was not existing.

February 17, 2021
21:01, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Yeah, segmentation fault is usually a result of incorrect memory access, meaning one of your pointers in not initialised or something like that.

March 15, 2021
16:26, EET
Avatar
UlrichFM
Member
Members
Forum Posts: 15
Member Since:
February 10, 2021
sp_UserOfflineSmall Offline

Hello,
I get an error while running my program
I integrate the Ansi C client sdk in my software and build it without error. But when i run it, an error appear :

//————————————————————————————————————————————————————
error while loading shared libraries: libuastack.so : cannot open shared object file: No such file or directory
//————————————————————————————————————————————————————

I don’t know why because libuastack.so is in the same path with the others sdk’s libraries and the error did not specify in which path i have to put it.
Can somebody help me ?

March 15, 2021
16:33, EET
Avatar
UlrichFM
Member
Members
Forum Posts: 15
Member Since:
February 10, 2021
sp_UserOfflineSmall Offline

Hello,
I get an error while running my program
I integrate the Ansi C client sdk in my software and build it without error. But when i run it, an error appear :

//————————————————————————————————————————————————————
error while loading shared libraries: libuastack.so : cannot open shared object file: No such file or directory
//————————————————————————————————————————————————————

I don’t know why because libuastack.so is in the same path with the others sdk’s libraries and the error did not specify in which path i have to put it.
Can somebody help me ?

I copy it to usr/lib as i saw on others case of the same problem but it is not working too.

March 16, 2021
10:09, EET
Avatar
UlrichFM
Member
Members
Forum Posts: 15
Member Since:
February 10, 2021
sp_UserOfflineSmall Offline

Hello,
i fixed my problem, the path was usr/lib64

March 17, 2021
10:08, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Good that you managed to figure it out.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
35 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 726

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuart, caitlynfajardo, jeromechubb7, franciscagrimwad, adult_gallery

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0

Administrators: admin: 1