$ sudo apt-get install -y build-essential make git gcc cmake
CMakeLists.txt file in the root directory of the SDK and make sure that the following options exist (with a key-authenticated device as example):set(BUILD_TYPE "release")set(COMPILE_TOOLS "gcc")set(PLATFORM "linux")set(FEATURE_MQTT_COMM_ENABLED ON)set(FEATURE_AUTH_MODE "KEY")set(FEATURE_AUTH_WITH_NOTLS OFF)set(FEATURE_DEBUG_DEV_INFO_USED OFF)
./cmake_build.sh
output/release folder.
After the complete compilation, if you only need to compile the demo, then run the following code:./cmake_build.sh samples
device_info.json in the root directory of the SDK. Below is the sample code:"auth_mode":"KEY","productId":"S3EUVBQAZW","deviceName":"test_device","key_deviceinfo":{"deviceSecret":"vX6PQqazsGsMyf5SMfs6OA6y"}
output/release/bin folder. For example, to run the data_template_sample demo, enter ./output/release/bin/data_template_sample.


device_info.json. Below is the sample code:"auth_mode":"KEY","productId":"S3EUVBQAZW","deviceName":"test_device","key_deviceinfo":{"deviceSecret":"vX6PQqazsGsMyf5SMfs6OA6y"}
CMakeLists.txt in the root directory and make sure that the platform is set to Windows and the compilation tool is set to MSVC in the compilation toolchain.

# Compilation toolchain#set(COMPILE_TOOLS "gcc")#set(PLATFORM "linux")set(COMPILE_TOOLS "MSVC")set(PLATFORM "windows")



Feedback