diff --git a/en/application-dev/faqs/Readme-EN.md b/en/application-dev/faqs/Readme-EN.md index 760af4a45a98b31c5f8bfed8745c3f100c6e1f60..038869298ca254238293357a0c31b84c817cc9c4 100644 --- a/en/application-dev/faqs/Readme-EN.md +++ b/en/application-dev/faqs/Readme-EN.md @@ -2,7 +2,7 @@ - [Full SDK Compilation](full-sdk-compile-guide.md) - [Switching to Full SDK](full-sdk-switch-guide.md) -- [Using Native APIs (NDK) of the OpenHarmony SDK in a CMake Project](cmake-with-ndk.md) +- [Using NDK in a CMake Project](cmake-with-ndk.md) - [Application Model Development](faqs-ability.md) - ArkUI Development (ArkTS) - [ArkTS Syntax Usage](faqs-arkui-arkts.md) diff --git a/en/application-dev/faqs/cmake-with-ndk.md b/en/application-dev/faqs/cmake-with-ndk.md index 36f339529c78327f2698f90ce199e758ba06485f..60a68a9ecf05aa95680096d67a18dd37bdda74c1 100644 --- a/en/application-dev/faqs/cmake-with-ndk.md +++ b/en/application-dev/faqs/cmake-with-ndk.md @@ -1,4 +1,4 @@ -# Using Native APIs (NDK) of the OpenHarmony SDK in a CMake Project +# Using NDK in a CMake Project ## What Is Native API @@ -10,34 +10,34 @@ You download the Native API Development Kit (NDK) by downloading the OHOS SDK, w - (Recommended) Acquire source code from mirrors for an officially released version. For details, see [release notes](../../release-notes/OpenHarmony-v3.2-release.md). - Download the SDK from the SDK Manager in DevEco Studio. -- Download the SDK from the [daily build](http://ci.openharmony.cn/dailys/dailybuilds), by clicking the download link to the **ohos-sdk-full** component. +- Download the SDK from the [daily build](http://ci.openharmony.cn/workbench/cicd/dailybuild/dailylist), by clicking the download link to the **ohos-sdk-full** component. -![Download from Daily Build](figures/ci_download.png) +![](figures/ci_download.png) ## Decompressing the NDK Place the downloaded NDK in a folder you prefer and decompress it. Below shows the directory structure after decompression. -![SDK Directory Structure](figures/sdk-structure.png) +![](figures/sdk-structure.png) Configure the Linux environment as follows: (Skip them if the NDK is downloaded from DevEco Studio.) -1. Add the CMake tool that comes with the NDK to the environment variables. +Add the CMake tool that comes with the NDK to the environment variables. ``` # Open the .bashrc file. vim ~/.bashrc - # Append the custom CMake path to the file. Save the file and exit. + # Append the custom CMake path to the file. export PATH=~/ohos-sdk/ohos-sdk/linux/native/build-tools/cmake/bin:$PATH # Run the source ~/.bashrc command to make the environment variables take effect. source ~/.bashrc ``` -2. Check the default CMake path. +Check the default CMake path. ``` # Run the which cmake command. which cmake - # The result should be the same as the custom path previously appended to the file. + # The result should be the same as the custom path previously appended to the .bashrc file. ~/ohos-sdk/ohos-sdk/linux/native/build-tools/cmake/bin/cmake ``` diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-formcomponent.md b/en/application-dev/reference/arkui-ts/ts-basic-components-formcomponent.md index 85870111712e90def229a040901f9ba0d41bbcf2..d75762999a60eebdcb3dc87de0aeca332cd6e6ab 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-formcomponent.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-formcomponent.md @@ -42,7 +42,7 @@ Creates a **FormComponent** instance to display the provided widget. | Name | Type | Mandatory| Description | | --------- | ------------------------------- | ---- | ----------------------------------------------------------------------- | -| id | number | Yes | Widget ID. Set this parameter to **0** for a new widget. | +| id | number | Yes | Widget ID. Set this parameter to **0** for a new widget.
**NOTE**
Different widget hosts cannot use the same ID.
If a widget host uses the same ID for two widgets, the one added later is displayed. | | name | string | Yes | Widget name. | | bundle | string | Yes | Bundle name of the widget. | | ability | string | Yes | Ability name of the widget. |