Long-Term Supported Versions

    Innovation Versions

      FangTian Installation and Deployment

      This chapter describes how to install FangTian in openEuler.

      Software and Hardware Requirements

      Hardware Requirements

      Currently, only the x86 and AArch64 architectures are supported.

      Software Requirements

      OS: openEuler 22.03 LTS SP3

      Environment Setup

      Install the openEuler OS. For details, see the openEuler Installation Guide.

      Installing the FangTian Software Package

      On the x86 platform:

      sudo dnf install ft_multimedia ft_mmi ft_flutter ft_engine arkui-linux ft_utils
      sudo dnf install ft_multimedia-devel ft_mmi-devel ft_flutter-devel ft_engine-devel
      

      On the AArch64 platform:

      sudo dnf install ft_multimedia ft_mmi ft_flutter ft_engine ft_utils
      sudo dnf install ft_multimedia-devel ft_mmi-devel ft_flutter-devel ft_engine-devel
      

      Starting FangTian

      • Start the SAMGR system service.

        Assume that binder and ashmem have been installed.

        sudo /usr/share/sa/pre_oneshot_samgr 
        

        Directly start SAMGR.

        mkdir -p ~/tmp
        sudo samgr > ~/tmp/samgr.log 2>&1 &
        

        Alternatively, set SAMGR as a service and start the service.

        sudo systemctl restart samgr
        
      • Start the SA engine.

        sa_main /system/profile/ft/ft.xml > ~/tmp/ftsa.log 2>&1 &
        

        Description

        • SA stands for system ability. A process can have multiple SAs. The ft.xml file specifies multiple SAs for the ft process. For details about SAMGR and SAs, see the OpenHarmony documentation.
        • The SA configuration XML file, sa_main, and SAMGR are automatically deployed during software package installation.

      Developing and Running a Simple GUI Application Using FangTian

      Example of a simple C++ GUI application.

      Run the application:

      desktop &
      

      The following window is displayed:

      Description

      For details about FangTian application development, see FT interfaces.

      Bug Catching

      Buggy Content

      Bug Description

      Submit As Issue

      It's a little complicated....

      I'd like to ask someone.

      PR

      Just a small problem.

      I can fix it online!

      Bug Type
      Specifications and Common Mistakes

      ● Misspellings or punctuation mistakes;

      ● Incorrect links, empty cells, or wrong formats;

      ● Chinese characters in English context;

      ● Minor inconsistencies between the UI and descriptions;

      ● Low writing fluency that does not affect understanding;

      ● Incorrect version numbers, including software package names and version numbers on the UI.

      Usability

      ● Incorrect or missing key steps;

      ● Missing prerequisites or precautions;

      ● Ambiguous figures, tables, or texts;

      ● Unclear logic, such as missing classifications, items, and steps.

      Correctness

      ● Technical principles, function descriptions, or specifications inconsistent with those of the software;

      ● Incorrect schematic or architecture diagrams;

      ● Incorrect commands or command parameters;

      ● Incorrect code;

      ● Commands inconsistent with the functions;

      ● Wrong screenshots.

      Risk Warnings

      ● Lack of risk warnings for operations that may damage the system or important data.

      Content Compliance

      ● Contents that may violate applicable laws and regulations or geo-cultural context-sensitive words and expressions;

      ● Copyright infringement.

      How satisfied are you with this document

      Not satisfied at all
      Very satisfied
      Submit
      Click to create an issue. An issue template will be automatically generated based on your feedback.
      Bug Catching
      编组 3备份