Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling and Running the Project

  1. Open the CMakeLists.txt file and replace set(KML_PATH /opt/kml/2.2.0/bisheng3.1.0) in the file with set(KML_PATH workspace). workspace indicates the actual installation path of the math library.
    Figure 1 Modifying the installation path of the math library
  2. Access the Kunpeng DevKit, click the Development tab and then the Compile button in the Compiler and Debugger area.
    Figure 2 Compilation page
  3. Select the remote server to be compiled and click Start to start compilation.
    Figure 3 Compilation

    To compile and run the project demo, add an environment command in the working directory text box, for example, source /opt/gcc_for_openeuler_profile.

  4. After the compilation is complete, click in the upper right corner of the page. On the displayed page, choose General Settings > Target Server Management. Then click Log In in the Operation column of the target server to log in. See Figure 4.
    Figure 4 Logging in to the target server
  5. Go to the build directory to view the compilation result.
    cd workspace/KML_MATH_Project1/build
    ll

    math_demo is an executable file generated after compilation.

    • workspace indicates the workspace specified during target server configuration.
    • KML_MATH_Project1 indicates the project name specified during project creation.
  6. Run the demo.
    1
    ./math_demo
    
    Figure 5 Running the demo
  7. Click in the upper right corner of the page, choose Project Settings, and click the Compile tab. On the displayed page shown in Figure 6, modify the compilation configuration parameters, click Save, and then click Compile to compile the project again.
    Figure 6 Modifying compilation parameters