Release Notes for ThingWorx C SDK > ThingWorx C SDK 3.1.0 > Known Issues in ThingWorx C SDK 3.1.0
Known Issues in ThingWorx C SDK 3.1.0
The following known issue is present in the ThingWorx C SDK 3.1.0 release:
Known Issue
Solution
Unable to build C SCM 1.0.2.783 on Windows with C SDK 3.1.0.
Workaround: In the twCSdk.cmake file, replace
if("${CMAKE_GENERATOR}" MATCHES "Win64" OR "${CMAKE_GENERATOR_PLATFORM}" STREQUAL "x64")
set(twcsdk_runtime_libs_windows
"${thingworxLibsDir}/twCSdk. dll"
"${thingworxLibsDir}/libcrypto-l_l-x64.dll"
"${thingworxLibsDir}/libssl-l_l-x64.dll")
else()
set(twcsdk_runtime_libs_windows
"${thingworxLibsDir}/twCSdk.dll"
"${thingworxLibsDir}/libcrypto-l_l.dll"
"${thingworxLibsDir}/libssl-l_l.dll" )
endif()
with
if("${CMAKE_GENERATOR}" MATCHES "Win64" OR "${CMAKE_GENERATOR_PLATFORM}" STREQUAL "x64")
if(EXISTS "${thingworxLibsDir}/libcrypto-1_1-x64.dll")
set(twcsdk_runtime_libs_windows
"${thingworxLibsDir}/twCSdk.dll"
"${thingworxLibsDir}/libcrypto-1_1-x64.dll"
"${thingworxLibsDir}/libssl-1_1-x64.dll")
else()
set(twcsdk_runtime_libs_windows
"${thingworxLibsDir}/twCSdk.dll"
"${thingworxLibsDir}/libcrypto-3-x64.dll"
"${thingworxLibsDir}/libssl-3-x64.dll")
endif()
else()
if(EXISTS "${thingworxLibsDir}/libcrypto-1_1.dll")
set(twcsdk_runtime_libs_windows
"${thingworxLibsDir}/twCSdk.dll"
"${thingworxLibsDir}/libcrypto-1_1.dll"
"${thingworxLibsDir}/libssl-1_1.dll")
else()
set(twcsdk_runtime_libs_windows
"${thingworxLibsDir}/twCSdk.dll"
"${thingworxLibsDir}/libcrypto-3.dll"
"${thingworxLibsDir}/libssl-3.dll")
endif()
endif()
The SCM Extension builds fail on Windows due to the missing openssl directory.
Workaround—A code change has to be made in SCM because the name of the OpenSSL, libcrypto, and libssl libraries have changed. This change involves copying these files from where they are installed into the SCM example directory.
In the twCSdk.cmake file, replace
set(twcsdk_runtime_libs_windows
"${thingworxLibsDir}/twCSdk.dll"
"${thingworxLibsDir}/libcrypto-1_1-x64.dll"
"${thingworxLibsDir}/libssl-1_1-x64.dll")
else()
set(twcsdk_runtime_libs_windows
"${thingworxLibsDir}/twCSdk.dll"
"${thingworxLibsDir}/libcrypto-1_1.dll"
"${thingworxLibsDir}/libssl-1_1.dll")
with
if(EXISTS "${thingworxLibsDir}/libcrypto-1_1-x64.dll")
set(twcsdk_runtime_libs_windows
"${thingworxLibsDir}/twCSdk.dll"
"${thingworxLibsDir}/libcrypto-1_1-x64.dll"
"${thingworxLibsDir}/libssl-1_1-x64.dll")
else()
set(twcsdk_runtime_libs_windows
"${thingworxLibsDir}/twCSdk.dll"
"${thingworxLibsDir}/libcrypto-3-x64.dll"
"${thingworxLibsDir}/libssl-3-x64.dll")
endif()
else()
if(EXISTS "${thingworxLibsDir}/libcrypto-1_1.dll")
set(twcsdk_runtime_libs_windows
"${thingworxLibsDir}/twCSdk.dll"
"${thingworxLibsDir}/libcrypto-1_1.dll"
"${thingworxLibsDir}/libssl-1_1.dll")
else()
set(twcsdk_runtime_libs_windows
"${thingworxLibsDir}/twCSdk.dll"
"${thingworxLibsDir}/libcrypto-3.dll"
"${thingworxLibsDir}/libssl-3.dll")
endif()
Was this helpful?