A tutorial of building pros development environment with vscode.(win10 64-bit 1909)

ccls+llvm+msvc+cmake+ninja

There are also some Chinese characters in the content. I have asked the students to help me to change them.
If you know Chinese, you can translate it into English. Tell me your GitHub account, I will give you permission.
My other project also needs translation

By the way, just like pros, make these things into an. Exe installation file. What technology is needed?
How do I search for tutorials?

8 Likes

Thanks

arm-none-eabi-gcc –version should be arm-none-eabi-gcc --version. You miss one of the two dashs

1 Like

thank you. I fixed it.

1 Like

can you create detail (step by step) tutorial for lvgl-sim. Thanks.

I try and get error

[build] In file included from ..\include\lv_examples\lv_tests\lv_test_objx\lv_test_cont\lv_test_cont.c:9:
[build] ..\include\lv_examples\lv_tests\lv_test_objx\lv_test_cont/lv_test_cont.h(20,10): fatal error: '../../../../lvgl/lvgl.h' file not found
[build] #include "../../../../lvgl/lvgl.h"
[build]          ^~~~~~~~~~~~~~~~~~~~~~~~~
[build] 1 error generated.
[build] [10/91   2% :: 0.112] Building C object CMakeFiles\main.dir\include\lv_examples\lv_tests\lv_test_objx\lv_test_img\img_flower_icon.c.obj
[build] FAILED: CMakeFiles/main.dir/include/lv_examples/lv_tests/lv_test_objx/lv_test_img/img_flower_icon.c.obj 
[build] c:\llvm\Release\bin\clang-cl.exe  /nologo -D_CRT_SECURE_NO_WARNINGS -I..\.\include /DWIN32 /D_WINDOWS /W3 /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\main.dir\include\lv_examples\lv_tests\lv_test_objx\lv_test_img\img_flower_icon.c.obj /FdCMakeFiles\main.dir\ -c ..\include\lv_examples\lv_tests\lv_test_objx\lv_test_img\img_flower_icon.c
[build] ..\include\lv_examples\lv_tests\lv_test_objx\lv_test_img\img_flower_icon.c(1,10): fatal error: 'lvgl/lvgl.h' file not found
[build] #include "lvgl/lvgl.h"
[build]          ^~~~~~~~~~~~~
[build] 1 error generated.
[build] [10/91   3% :: 0.122] Building C object CMakeFiles\main.dir\include\lv_examples\lv_apps\demo\demo.c.obj
[build] FAILED: CMakeFiles/main.dir/include/lv_examples/lv_apps/demo/demo.c.obj 
[build] c:\llvm\Release\bin\clang-cl.exe  /nologo -D_CRT_SECURE_NO_WARNINGS -I..\.\include /DWIN32 /D_WINDOWS /W3 /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\main.dir\include\lv_examples\lv_apps\demo\demo.c.obj /FdCMakeFiles\main.dir\ -c ..\include\lv_examples\lv_apps\demo\demo.c
[build] In file included from ..\include\lv_examples\lv_apps\demo\demo.c:9:
[build] ..\include\lv_examples\lv_apps\demo/demo.h(21,10): fatal error: '../../../lvgl/lvgl.h' file not found
[build] #include "../../../lvgl/lvgl.h"
[build]          ^~~~~~~~~~~~~~~~~~~~~~
[build] 1 error generated.
[build] [10/91   4% :: 0.129] Building C object CMakeFiles\main.dir\include\lv_examples\lv_tests\lv_test_objx\lv_test_btn\lv_test_btn.c.obj
[build] FAILED: CMakeFiles/main.dir/include/lv_examples/lv_tests/lv_test_objx/lv_test_btn/lv_test_btn.c.obj 
[build] c:\llvm\Release\bin\clang-cl.exe  /nologo -D_CRT_SECURE_NO_WARNINGS -I..\.\include /DWIN32 /D_WINDOWS /W3 /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\main.dir\include\lv_examples\lv_tests\lv_test_objx\lv_test_btn\lv_test_btn.c.obj /FdCMakeFiles\main.dir\ -c ..\include\lv_examples\lv_tests\lv_test_objx\lv_test_btn\lv_test_btn.c
[build] In file included from ..\include\lv_examples\lv_tests\lv_test_objx\lv_test_btn\lv_test_btn.c:9:
[build] ..\include\lv_examples\lv_tests\lv_test_objx\lv_test_btn/lv_test_btn.h(20,10): fatal error: '../../../../lvgl/lvgl.h' file not found
[build] #include "../../../../lvgl/lvgl.h"
[build]          ^~~~~~~~~~~~~~~~~~~~~~~~~
[build] 1 error generated.
[build] [10/91   5% :: 0.129] Building C object CMakeFiles\main.dir\include\lv_examples\lv_tests\lv_test_objx\lv_test_gauge\lv_test_gauge.c.obj
[build] FAILED: CMakeFiles/main.dir/include/lv_examples/lv_tests/lv_test_objx/lv_test_gauge/lv_test_gauge.c.obj 
[build] c:\llvm\Release\bin\clang-cl.exe  /nologo -D_CRT_SECURE_NO_WARNINGS -I..\.\include /DWIN32 /D_WINDOWS /W3 /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\main.dir\include\lv_examples\lv_tests\lv_test_objx\lv_test_gauge\lv_test_gauge.c.obj /FdCMakeFiles\main.dir\ -c ..\include\lv_examples\lv_tests\lv_test_objx\lv_test_gauge\lv_test_gauge.c
[build] In file included from ..\include\lv_examples\lv_tests\lv_test_objx\lv_test_gauge\lv_test_gauge.c:9:
[build] ..\include\lv_examples\lv_tests\lv_test_objx\lv_test_gauge/lv_test_gauge.h(20,10): fatal error: '../../../../lvgl/lvgl.h' file not found
[build] #include "../../../../lvgl/lvgl.h"
[build]          ^~~~~~~~~~~~~~~~~~~~~~~~~
[build] 1 error generated.
[build] [10/91   6% :: 0.142] Building C object CMakeFiles\main.dir\include\lv_examples\lv_apps\tpcal\tpcal.c.obj
[build] FAILED: CMakeFiles/main.dir/include/lv_examples/lv_apps/tpcal/tpcal.c.obj 
[build] c:\llvm\Release\bin\clang-cl.exe  /nologo -D_CRT_SECURE_NO_WARNINGS -I..\.\include /DWIN32 /D_WINDOWS /W3 /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\main.dir\include\lv_examples\lv_apps\tpcal\tpcal.c.obj /FdCMakeFiles\main.dir\ -c ..\include\lv_examples\lv_apps\tpcal\tpcal.c
[build] In file included from ..\include\lv_examples\lv_apps\tpcal\tpcal.c:26:
[build] ..\include\lv_examples\lv_apps\tpcal/tpcal.h(20,10): fatal error: '../../../lvgl/lvgl.h' file not found
[build] #include "../../../lvgl/lvgl.h"
[build]          ^~~~~~~~~~~~~~~~~~~~~~
[build] 1 error generated.
[build] [10/91   7% :: 0.143] Building C object CMakeFiles\main.dir\include\lv_examples\lv_tests\lv_test_objx\lv_test_img\lv_test_img.c.obj
[build] FAILED: CMakeFiles/main.dir/include/lv_examples/lv_tests/lv_test_objx/lv_test_img/lv_test_img.c.obj 
[build] c:\llvm\Release\bin\clang-cl.exe  /nologo -D_CRT_SECURE_NO_WARNINGS -I..\.\include /DWIN32 /D_WINDOWS /W3 /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\main.dir\include\lv_examples\lv_tests\lv_test_objx\lv_test_img\lv_test_img.c.obj /FdCMakeFiles\main.dir\ -c ..\include\lv_examples\lv_tests\lv_test_objx\lv_test_img\lv_test_img.c
[build] In file included from ..\include\lv_examples\lv_tests\lv_test_objx\lv_test_img\lv_test_img.c:9:
[build] ..\include\lv_examples\lv_tests\lv_test_objx\lv_test_img/lv_test_img.h(20,10): fatal error: '../../../../lvgl/lvgl.h' file not found
[build] #include "../../../../lvgl/lvgl.h"
[build]          ^~~~~~~~~~~~~~~~~~~~~~~~~
[build] 1 error generated.
[build] [10/91   8% :: 0.144] Building C object CMakeFiles\main.dir\include\lv_examples\lv_apps\sysmon\sysmon.c.obj
[build] FAILED: CMakeFiles/main.dir/include/lv_examples/lv_apps/sysmon/sysmon.c.obj 
[build] c:\llvm\Release\bin\clang-cl.exe  /nologo -D_CRT_SECURE_NO_WARNINGS -I..\.\include /DWIN32 /D_WINDOWS /W3 /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\main.dir\include\lv_examples\lv_apps\sysmon\sysmon.c.obj /FdCMakeFiles\main.dir\ -c ..\include\lv_examples\lv_apps\sysmon\sysmon.c
[build] In file included from ..\include\lv_examples\lv_apps\sysmon\sysmon.c:9:
[build] ..\include\lv_examples\lv_apps\sysmon/sysmon.h(20,10): fatal error: '../../../lvgl/lvgl.h' file not found
[build] #include "../../../lvgl/lvgl.h"
[build]          ^~~~~~~~~~~~~~~~~~~~~~
[build] 1 error generated.
[build] [10/91   9% :: 0.144] Building C object CMakeFiles\main.dir\include\lv_examples\lv_tests\lv_test_misc\lv_test_task.c.obj
[build] FAILED: CMakeFiles/main.dir/include/lv_examples/lv_tests/lv_test_misc/lv_test_task.c.obj 
[build] c:\llvm\Release\bin\clang-cl.exe  /nologo -D_CRT_SECURE_NO_WARNINGS -I..\.\include /DWIN32 /D_WINDOWS /W3 /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\main.dir\include\lv_examples\lv_tests\lv_test_misc\lv_test_task.c.obj /FdCMakeFiles\main.dir\ -c ..\include\lv_examples\lv_tests\lv_test_misc\lv_test_task.c
[build] In file included from ..\include\lv_examples\lv_tests\lv_test_misc\lv_test_task.c:9:
[build] ..\include\lv_examples\lv_tests\lv_test_misc/lv_test_task.h(20,10): fatal error: '../../../lvgl/lvgl.h' file not found
[build] #include "../../../lvgl/lvgl.h"
[build]          ^~~~~~~~~~~~~~~~~~~~~~
[build] 1 error generated.
[build] [10/91  10% :: 0.144] Building C object CMakeFiles\main.dir\include\lv_examples\lv_apps\benchmark\benchmark.c.obj
[build] FAILED: CMakeFiles/main.dir/include/lv_examples/lv_apps/benchmark/benchmark.c.obj 
[build] c:\llvm\Release\bin\clang-cl.exe  /nologo -D_CRT_SECURE_NO_WARNINGS -I..\.\include /DWIN32 /D_WINDOWS /W3 /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\main.dir\include\lv_examples\lv_apps\benchmark\benchmark.c.obj /FdCMakeFiles\main.dir\ -c ..\include\lv_examples\lv_apps\benchmark\benchmark.c
[build] In file included from ..\include\lv_examples\lv_apps\benchmark\benchmark.c:9:
[build] ..\include\lv_examples\lv_apps\benchmark/benchmark.h(21,10): fatal error: '../../../lvgl/lvgl.h' file not found
[build] #include "../../../lvgl/lvgl.h"
[build]          ^~~~~~~~~~~~~~~~~~~~~~
[build] 1 error generated.
[build] ninja: build stopped: subcommand failed.
[build] Build finished with exit code 1

Delete pros-lvgl-sim folder.
Re download git clone --recursive https://github.com/3038922/pros-lvgl-sim.git.
I have linked multiple projects directly. I have made sure that the library I use is up to date.

1 Like

still some errors.

[main] Building folder: pros-lvgl-sim 
[main] Configuring folder: pros-lvgl-sim 
[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=c:\llvm\Release\bin\clang-cl.exe -DCMAKE_CXX_COMPILER:FILEPATH=c:\llvm\Release\bin\clang-cl.exe -Hc:/Users/chenl/Documents/VEX/pros-lvgl-sim -Bc:/Users/chenl/Documents/VEX/pros-lvgl-sim/build -G Ninja
[cmake] Not searching for unused variables given on the command line.
[cmake] -- The C compiler identification is Clang 9.0.0 with MSVC-like command-line
[cmake] -- The CXX compiler identification is Clang 9.0.0 with MSVC-like command-line
[cmake] -- Check for working C compiler: c:/llvm/Release/bin/clang-cl.exe
[cmake] -- Check for working C compiler: c:/llvm/Release/bin/clang-cl.exe -- works
[cmake] -- Detecting C compiler ABI info
[cmake] -- Detecting C compiler ABI info - done
[cmake] -- Detecting C compile features
[cmake] -- Detecting C compile features - done
[cmake] -- Check for working CXX compiler: c:/llvm/Release/bin/clang-cl.exe
[cmake] -- Check for working CXX compiler: c:/llvm/Release/bin/clang-cl.exe -- works
[cmake] -- Detecting CXX compiler ABI info
[cmake] -- Detecting CXX compiler ABI info - done
[cmake] -- Detecting CXX compile features
[cmake] -- Detecting CXX compile features - done
[cmake] -- windows
[cmake] -- Configuring done
[cmake] -- Generating done
[cmake] -- Build files have been written to: C:/Users/chenl/Documents/VEX/pros-lvgl-sim/build
[build] Starting build
[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --build c:/Users/chenl/Documents/VEX/pros-lvgl-sim/build --config Debug --target all -- -j 14
[build] [14/91   1% :: 0.943] Building C object CMakeFiles\main.dir\include\lv_examples\lv_tests\lv_test_objx\lv_test_cb\lv_test_cb.c.obj
[build] [15/91   2% :: 0.952] Building C object CMakeFiles\main.dir\include\lv_examples\lv_tests\lv_test_objx\lv_test_cpicker\lv_test_cpicker.c.obj
[build] [16/91   3% :: 0.960] Building C object CMakeFiles\main.dir\include\lv_examples\lv_tests\lv_test_objx\lv_test_bar\lv_test_bar.c.obj
[build] [17/91   4% :: 0.967] Building C object CMakeFiles\main.dir\include\lv_examples\lv_tests\lv_test_objx\lv_test_canvas\lv_test_canvas.c.obj
[build] [18/91   5% :: 0.975] Building C object CMakeFiles\main.dir\include\lv_examples\lv_tests\lv_test_objx\lv_test_cont\lv_test_cont.c.obj
[build] [19/91   6% :: 0.982] Building C object CMakeFiles\main.dir\include\lv_examples\lv_tests\lv_test_objx\lv_test_btn\lv_test_btn.c.obj
[build] [20/91   7% :: 0.990] Building C object CMakeFiles\main.dir\include\lv_examples\lv_tests\lv_test_group\lv_test_group.c.obj
[build] FAILED: CMakeFiles/main.dir/include/lv_examples/lv_tests/lv_test_group/lv_test_group.c.obj 
[build] c:\llvm\Release\bin\clang-cl.exe  /nologo -D_CRT_SECURE_NO_WARNINGS -I..\.\include /DWIN32 /D_WINDOWS /W3 /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\main.dir\include\lv_examples\lv_tests\lv_test_group\lv_test_group.c.obj /FdCMakeFiles\main.dir\ -c ..\include\lv_examples\lv_tests\lv_test_group\lv_test_group.c
[build] In file included from ..\include\lv_examples\lv_tests\lv_test_group\lv_test_group.c:18:
[build] ..\.\include\lv_drivers/indev/keyboard.h(36,10): fatal error: 'SDL2/SDL.h' file not found
[build] #include MONITOR_SDL_INCLUDE_PATH
[build]          ^~~~~~~~~~~~~~~~~~~~~~~~
[build] ..\.\include\lv_drivers/indev/../../lv_drv_conf.h(100,34): note: expanded from macro 'MONITOR_SDL_INCLUDE_PATH'
[build] #define MONITOR_SDL_INCLUDE_PATH <SDL2/SDL.h>
[build]                                  ^~~~~~~~~~~~
[build] <scratch space>(151,1): note: expanded from here
[build] <SDL2/SDL.h>
[build] ^~~~~~~~~~~~
[build] 1 error generated.
[build] [20/91   8% :: 0.991] Building C object CMakeFiles\main.dir\include\lv_examples\lv_apps\demo\demo.c.obj
[build] [20/91   9% :: 1.016] Building C object CMakeFiles\main.dir\include\lv_examples\lv_apps\benchmark\benchmark_bg.c.obj
[build] [20/91  10% :: 1.022] Building C object CMakeFiles\main.dir\include\lv_examples\lv_apps\sysmon\sysmon.c.obj
[build] [20/91  12% :: 1.029] Building C object CMakeFiles\main.dir\include\lv_examples\lv_tests\lv_test_misc\lv_test_task.c.obj
[build] [20/91  13% :: 1.031] Building C object CMakeFiles\main.dir\include\lv_examples\lv_apps\benchmark\benchmark.c.obj
[build] [20/91  14% :: 1.050] Building C object CMakeFiles\main.dir\include\lv_examples\lv_tests\lv_test_objx\lv_test_chart\lv_test_chart.c.obj
[build] [20/91  15% :: 1.197] Building C object CMakeFiles\main.dir\include\lv_examples\lv_tests\lv_test_objx\lv_test_arc\lv_test_arc.c.obj
[build] [20/91  16% :: 1.205] Building C object CMakeFiles\main.dir\include\lv_examples\lv_apps\terminal\terminal.c.obj
[build] [20/91  17% :: 1.221] Building C object CMakeFiles\main.dir\include\lv_examples\lv_tests\lv_test_objx\lv_test_gauge\lv_test_gauge.c.obj
[build] [20/91  18% :: 1.226] Building C object CMakeFiles\main.dir\include\lv_examples\lv_tests\lv_test_obj\lv_test_obj.c.obj
[build] [20/91  19% :: 1.253] Building C object CMakeFiles\main.dir\include\lv_examples\lv_tests\lv_test_objx\lv_test_ddlist\lv_test_ddlist.c.obj
[build] [20/91  20% :: 1.282] Building C object CMakeFiles\main.dir\include\lv_examples\lv_tests\lv_test_objx\lv_test_btnm\lv_test_btnm.c.obj
[build] [20/91  21% :: 1.944] Building C object CMakeFiles\main.dir\include\lv_examples\lv_apps\demo\img_bubble_pattern.c.obj
[build] ninja: build stopped: subcommand failed.
[build] Build finished with exit code 1

update project.
i 'm added SDL2 project .

1 Like

Thanks. I got it compiled with warning. But at least it runs

msvc, It’s a little strange

1 Like