Skip to content

bailian_sdk: remove bundled cJSON, use system library instead#2

Closed
yanxingyu17 wants to merge 1 commit intoopen-vela:devfrom
yanxingyu17:dev
Closed

bailian_sdk: remove bundled cJSON, use system library instead#2
yanxingyu17 wants to merge 1 commit intoopen-vela:devfrom
yanxingyu17:dev

Conversation

@yanxingyu17
Copy link
Copy Markdown
Collaborator

Summary

  • Remove third_party/cJSON/ directory (header + static library)
  • The bailian demo application now uses the system cJSON library (apps/netutils/cjson) instead

Note: third_party/tinycrypt/ is retained because the SDK's pre-built static libraries were compiled against its bundled tinycrypt version. Replacing it with the system tinycrypt causes silent encryption failures, resulting in audio data not being sent to the server (server returns ClientAudioTimeout). Since the SDK is closed-source pre-built, we cannot modify its internal dependencies.

Impact

  • No functional impact. The bundled cJSON was only used for JSON parsing in the demo application, which now links against the system library.

Testing

  • Build verified with ./build.sh vendor/openvela/boards/vela/configs/goldfish-armeabi-v7a-ap --cmake
  • Runtime verified on goldfish-armeabi-v7a-ap emulator: full ASR → LLM → TTS pipeline working correctly

Signed-off-by: v-yanxingyu v-yanxingyu@xiaomi.com

Remove third_party/cJSON/ directory as the bailian demo application
now uses the system cJSON library (apps/netutils/cjson) instead.

Note: third_party/tinycrypt is retained because the SDK's pre-built
static libraries were compiled against its bundled tinycrypt version.
Replacing it with the system tinycrypt causes silent encryption
failures, resulting in audio data not being sent to the server.

Signed-off-by: v-yanxingyu <v-yanxingyu@xiaomi.com>
@yanxingyu17
Copy link
Copy Markdown
Collaborator Author

Closing: SDK should remain unchanged as released by Alibaba.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant