How to build custom application in C/C++?

  • Hello, there are various methods and environments for linking libraries, and we cannot cover each one. There are many references available online and on the market. If you need to operate GDB, you can refer to viewtopic.php?p=452&hilit=GDB#p452
  • Thank you.
  • In the lvgl demo they have used a CMake based build system, so I have used the same idea to build my applications also.
    I copied their CMakeLists.txt file and made few changes to make a simple template to build application using sources files in the src directory. I created a main.c file in this src directory and tried to compile and run it.
    I copied the compiled executable to /avinash dir of my Luckfox Pico board using scp command discussed below. Then I ran the application and following screenshot shows the output of the program. Simply print a line of text using printf.
    2024-07-31 08_47_58-Window.png
    SFTP: SSH File Transfer Protocol
    Push file to another host using SFTP. Use command scp.

    Code: Select all

    scp -r file_path user@host:target_path
    -r means file can be directory and it is copied recursively.
    example
    2024-07-31 08_34_35-Window.png