Podłączanie urządzeń z systemem HarmonyOS
Qt Creator Wykrywa urządzenia z systemem HarmonyOS za pośrednictwem interfejsu programowania aplikacji ( hdc ) zestawu SDK, więc urządzenie wymienione na stronie hdc nie wymaga osobnej konfiguracji.
- Włącz debugowanie bezprzewodowe na urządzeniu i zanotuj podany adres oraz port. Port zmienia się za każdym razem.
- Połącz się z nim raz z wiersza poleceń, korzystając z funkcji `
hdc` zestawu SDK:hdc tconn <address>:<port> hdc list targets
- Przejdź do Preferences > Devices > Devices. Urządzenie znajduje się tam, a na jego stronie widnieje informacja, że jest gotowe do użycia.
Urządzenie HarmonyOS jest również oferowane jako urządzenie kompilacyjne dla projektu, którego kod źródłowy i zestaw narzędzi znajdują się na samym urządzeniu.
Utwórz zestaw
Zarejestruj Qt dla HarmonyOS w Preferences > Kits > Qt Versions > Add i wybierz opcję „ qmake ”. Polecenie „ Qt Creator ” utworzy zestaw z tym urządzeniem jako urządzeniem uruchomieniowym i kompilatorami z zestawu SDK; nie jest wymagana żadna dalsza edycja.
Zobacz także: Tworzenie oprogramowania dla urządzeń z systemem HarmonyOS, Jak: Tworzyć oprogramowanie dla HarmonyOS, Jak: Zarządzać zestawami oraz Zarządzanie zestawami.
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.