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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

How to resolve build error compiling SCM-Extension-1-0-0-872  with C-SDK-2-2-12-1052

TojoThomas
5-Regular Member

How to resolve build error compiling SCM-Extension-1-0-0-872  with C-SDK-2-2-12-1052

 

When I try to build SCM-Extension-1-0-0-872  with C-SDK-2-2-12-1052 , its giving some compile error like below.

Does anyone experienced it, any idea how to resolve it?

 

In Documentation it says SCM-Extension-1.0.1 is compatible with C SDK 2.2.8 and 2.2.9 but I couldnt find this 1.01. version in the PTC Software download page, only available one is an older date coded version 1-0-0-872.

 

https://support.ptc.com/help/thingworx/edge_sdk_c/en/index.html#page/c_sdk/c_csdk_edge_ext_scm_setup.html

 

libthingworxscm-1.0/src/main/c/twSwValidate.c:406:61: error: too few arguments to function 'TWSHA256_sha256_file'
if(FALSE == twDirectory_FileExists(fullFilePath)||TW_OK != TWSHA256_sha256_file(fullFilePath,calculatedDigest)){
^~~~~~~~~~~~~~~~~~~~
In file included from //libthingworxscm-1.0/src/main/c/twSwValidate.c:21:0:
/\i/usr/include/thingworx/twSig.h:19:5: note: declared here
int TWSHA256_sha256_file(
^~~~~~~~~~~~~~~~~~~~

 

I see in twSig.h, TWSHA256_sha256_file is declared like below with 3 arguments.

 

int TWSHA256_sha256_file(
char *path,
char * outputBuffer,
int32_t outputBufferSize
);
2 REPLIES 2

I faced this issue 5-6 months back when I was doing the same and even was not able to find SCM-extension-1.0.1. As you said CSDK v 2.2.8 and above are compatible with 1.0.1. This was one of the reasons even I was not able to build it. At that time I raised this internally to make 1.0.1 available on the portal. I think that time we uploaded it and somehow it got removed again. I will check internally if that's the case. Will update you.

TojoThomas
5-Regular Member
(To:mnarang)

Thanks for your reply Narang, any updates on availability of TWX SCM 1.0.1 ?

Announcements


Top Tags