HarmonyOS SDK 설정

  1. Preferences > SDKs > HarmonyOS 로 이동합니다.
  2. HarmonyOS SDK location 에서 sdk 및 bin 디렉터리가 포함된 디렉터리를 입력하거나, Auto-detect 를 선택하여 일반적인 위치에서 해당 디렉터리를 검색하십시오. 필드 아래의 레이블에는 검색된 결과가 표시됩니다.
  3. Additional packages 에서 HarmonyOS용으로 빌드된 타사 라이브러리의 설치 접두사를 입력하십시오. 이는 해당 라이브러리의 lib 파일이 위치한 디렉터리입니다. Qt Creator 는 이를 QT_ADDITIONAL_PACKAGES_PREFIX_PATH 로 빌드에 전달하며, 이를 통해 라이브러리가 패키지에 추가됩니다. 이 설정이 없으면 애플리케이션은 설치 및 실행은 되지만 플랫폼 플러그인을 로드할 수 없습니다.
  4. ‘ Create kits automatically ’를 계속 선택해 두면, ‘ Qt Creator ’가 인식하는 모든 Qt for HarmonyOS에 대한 키트를 제공합니다.

SDK 위치가 설정되면, 해당 SDK에 포함된 컴파일러가 Preferences > Kits > Compilers 에 표시되며, hdc 에서 감지한 기기는 별도의 추가 설정 없이 Preferences > Devices > Devices 에 나타납니다.

‘HarmonyOS 기기용 개발’, ‘방법: HarmonyOS용 개발’, ‘HarmonyOS 패키지 서명’문서도 참조하십시오 .

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.