[!warning] Important
This is an out-dated content

将原电脑的开发环境迁移到新电脑,记录一下过程。

1. 安装 VSCode

Adminstartor 组内的用户默认具有管理员权限,所以必须用 System Installer 进行安装,而非网站默认提供的 User Installer

2. 安装 MSYS2 与工具链

启动 MSYS2 UCRT64,安装工具链。

2.1 Clangd

1
2
NEO@i4N-H4CKD3CK UCRT64 ~
pacman -S mingw-w64-ucrt-x86_64-clang-tools-extra

安装完成后,键入

1
2
3
NEO@i4N-H4CKD3CK UCRT64 ~
$ where clangd
D:\Dev.i4N\MSYS2\ucrt64\bin\clangd.exe

2.2 CMake & Ninja

1
$ pacman -S mingw-w64-ucrt-x86_64-cmake
1
2
3
NEO@i4N-H4CKD3CK UCRT64 ~
$ where cmake
D:\Dev.i4N\MSYS2\ucrt64\bin\cmake.exe

NinjaCMake 的依赖项,所以包会自动安装。

1
2
3
NEO@i4N-H4CKD3CK UCRT64 ~
$ where ninja
D:\Dev.i4N\MSYS2\ucrt64\bin\ninja.exe

2.3 ARM 交叉编译链

1
2
NEO@i4N-H4CKD3CK UCRT64 ~
$ pacman -S mingw-w64-ucrt-x86_64-arm-none-eabi-gcc
1
2
3
4
5
6
7
8
9
10
NEO@i4N-H4CKD3CK UCRT64 ~
$ where arm-none-eabi-gcc
D:\Dev.i4N\MSYS2\ucrt64\bin\arm-none-eabi-gcc.exe

NEO@i4N-H4CKD3CK UCRT64 ~
$ arm-none-eabi-gcc --version
arm-none-eabi-gcc.exe (GCC) 13.3.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

MSYS2 的包支持最多到 13.3.0 ,对于 v14GCC, 需要从 arm-none-eabi-gcc 官网下载 。

2.4 Openocd

1
2
NEO@i4N-H4CKD3CK UCRT64 ~
$ pacman -S mingw-w64-ucrt-x86_64-openocd
1
2
3
4
5
6
7
8
9
10
NEO@i4N-H4CKD3CK UCRT64 ~
$ where openocd
D:\Dev.i4N\MSYS2\ucrt64\bin\openocd.exe

NEO@i4N-H4CKD3CK UCRT64 ~
$ openocd -v
Open On-Chip Debugger 0.12.0
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html

2.5 添加 MSYS 环境变量

高级系统设置 - 环境变量 - 系统变量 - PATH

添加 ucrt64/bin 的路径,在系统的 cmd 中检查:

1
2
3
4
5
Microsoft Windows [版本 10.0.22631.6199]
(c) Microsoft Corporation。保留所有权利。

C:\Users\NEO>where cmake
D:\Dev.i4N\MSYS2\ucrt64\bin\cmake.exe

可以检查到安装在 MSYS 目录下的工具。

3. 安装 Git

打开 Git Bash 进行一些测试:

1
2
3
NEO@i4N-H4CKD3CK MINGW64 ~
$ git -v
git version 2.52.0.windows.1
1
2
3
NEO@i4N-H4CKD3CK MINGW64 ~
$ where cmake
D:\Dev.i4N\MSYS2\ucrt64\bin\cmake.exe

4. 配置 STM32 工程

4.1 固件

CubeMX 创建空白工程,提示缺少固件,自动会下载。更新失败的话,梯子解之。

4.2 工程模板

1
2
3
4
NEO@i4N-H4CKD3CK MINGW64 /d/Project.i4N/STM32
$ git clone https://github.com/Jav1ki4N/Tlaloc.git
Cloning into 'Tlaloc'...
fatal: unable to access 'https://github.com/Jav1ki4N/Tlaloc.git/': Failed to connect to github.com port 443 after 21062 ms: Could not connect to server

本来打算将我原来的工程直接 clone 下来,但是似乎代理出了一点问题。

Git代理设置成本地代理就可以解决了,本地代理与端口可以在 网络和Internet - 代理 - 使用代理服务器 找到。

1
2
3
4
5
NEO@i4N-H4CKD3CK MINGW64 /d/Project.i4N/STM32
$ git config --global http.proxy http://127.0.0.1:7897

NEO@i4N-H4CKD3CK MINGW64 /d/Project.i4N/STM32
$ git config --global https.proxy http://127.0.0.1:7897
1
2
3
4
5
6
7
8
9
10
NEO@i4N-H4CKD3CK MINGW64 /d/Project.i4N/STM32
$ git clone https://github.com/Jav1ki4N/Tlaloc.git
Cloning into 'Tlaloc'...
remote: Enumerating objects: 5325, done.
remote: Counting objects: 100% (68/68), done.
remote: Compressing objects: 100% (57/57), done.
remote: Total 5325 (delta 8), reused 36 (delta 3), pack-reused 5257 (from 1)
Receiving objects: 100% (5325/5325), 32.01 MiB | 6.36 MiB/s, done.
Resolving deltas: 100% (1338/1338), done.
Updating files: 100% (2779/2779), done.

4.3 VSCode 配置

4.3.1 CMake

安装拓展 CMake Tools, 在选择 CMake 调试配置为 debug 后,CMake 尝试生成构建文件,但是报错:

1
2
3
...
[cmake] CMake Error: The current CMakeCache.txt directory D:/Project.i4N/STM32/Tlaloc/build/Debug/CMakeCache.txt is different than the directory d:/Project.i4N/STM32_Project/Tlaloc/build/Debug where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
...

根据 GPT 的说法,是:

CMake 报告了一个源目录和缓存目录不匹配的问题,这通常是在源代码路径或构建目录发生更改时发生的。具体来说,它指出当前的 CMakeCache.txt 文件位于 D:/Project.i4N/STM32/Tlaloc/build/Debug/,而之前创建缓存时使用的路径是 d:/Project.i4N/STM32_Project/Tlaloc/build/Debug,这导致了路径不一致。

清空构建目录下的所有文件,然后 reload window

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[proc] 正在执行命令: D:\Dev.i4N\MSYS2\ucrt64\bin\cmake.EXE --version

[proc] 正在执行命令: D:\Dev.i4N\MSYS2\ucrt64\bin\cmake.EXE -E capabilities

[kit] 已成功从 C:\Users\NEO\AppData\Local\CMakeTools\cmake-tools-kits.json 加载 0 工具包

[presetController] 正在读取并验证预设文件“D:\Project.i4N\STM32\Tlaloc\CMakePresets.json”

[presetController] 已成功针对预设架构验证 D:\Project.i4N\STM32\Tlaloc\CMakePresets.json

[presetController] 正在展开预设文件 D:\Project.i4N\STM32\Tlaloc\CMakePresets.json

[presetController] 已成功展开预设文件 D:\Project.i4N\STM32\Tlaloc\CMakePresets.json

[main] 正在配置项目: Tlaloc

[proc] 正在执行命令: D:\Dev.i4N\MSYS2\ucrt64\bin\cmake.EXE -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=D:/Project.i4N/STM32/Tlaloc/cmake/gcc-arm-none-eabi.cmake -S D:/Project.i4N/STM32/Tlaloc -B D:/Project.i4N/STM32/Tlaloc/build/Debug -G Ninja

[cmake] -- The C compiler identification is GNU 13.3.0

[cmake] -- The CXX compiler identification is GNU 13.3.0

[cmake] -- Detecting C compiler ABI info

[cmake] -- Detecting C compiler ABI info - done

[cmake] -- Check for working C compiler: D:/Dev.i4N/MSYS2/ucrt64/bin/arm-none-eabi-gcc.exe - skipped

[cmake] -- Detecting C compile features

[cmake] -- Detecting C compile features - done

[cmake] -- Detecting CXX compiler ABI info

[cmake] -- Detecting CXX compiler ABI info - done

[cmake] -- Check for working CXX compiler: D:/Dev.i4N/MSYS2/ucrt64/bin/arm-none-eabi-g++.exe - skipped

[cmake] -- Detecting CXX compile features

[cmake] -- Detecting CXX compile features - done

[cmake] Build type: Debug

[cmake] -- The ASM compiler identification is GNU

[cmake] -- Found assembler: D:/Dev.i4N/MSYS2/ucrt64/bin/arm-none-eabi-gcc.exe

[cmake] -- Configuring done (18.5s)

[cmake] -- Generating done (0.2s)

[cmake] -- Build files have been written to: D:/Project.i4N/STM32/Tlaloc/build/Debug

可以看到构建文件成功生成了。

4.3.2 Clangd

安装 Clangd 拓展并且将 PATH 配置到本地的 clangd.exe,工作区和用户都要配置。

配置好之后,出现了喜闻乐见的头文件找不到: clang(pp_file_not_found)

Setting.json 重新配置一下 Clangd 的各种路径:

1
2
3
4
5
6
7
8
9
10
11
12
{

    "cmake.buildDirectory":  "${sourceDir}/build/${buildType}",
    "cmake.sourceDirectory": "${workspaceFolder}",
    "cmake.useCMakePresets": "always",
    "cmake.configureOnOpen": true,
    "clangd.path": "D:\\Dev.i4N\\MSYS2\\ucrt64\\bin\\clangd.exe",
    "clangd.arguments": [
        "--compile-commands-dir=${workspaceFolder}/build/Debug",
        "--query-driver=D:\\Dev.i4N\\MSYS2\\ucrt64\\bin\\arm-none-eabi-*"
    ]
}

reload window, 解决。

4.3.3 测试 VSCode 内置终端

选择新建一个 Git Bash 终端,测试:

1
2
3
NEO@i4N-H4CKD3CK MINGW64 /d/Project.i4N/STM32/Tlaloc (main)
$ where cmake
D:\Dev.i4N\MSYS2\ucrt64\bin\cmake.exe

4.3.4 测试烧录

运行我的烧录脚本,抛出一大坨错误:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
 ./F.SH

::::::::::: ::: :::: :::
:+: :+: :+:+: :+:
+:+ +:+ +:+ :+:+:+ +:+
+#+ +#+ +:+ +#+ +:+ +#+
+#+ +#+#+#+#+#+ +#+ +#+#+#
#+# #+# #+# #+#+#
########### ### ### ####

=====================================

@2025 Project i4N

[0/2] Re-checking globbed directories...
[1/231] Building C object CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_obj_draw.c.obj
FAILED: [code=1] CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_obj_draw.c.obj
D:\Dev.i4N\MSYS2\ucrt64\bin\arm-none-eabi-gcc.exe -DDEBUG -DSTM32F411xE -DUSE_HAL_DRIVER -ID:/Project.i4N/STM32/Tlaloc/Hardware.i4N -ID:/Project.i4N/STM32/Tlaloc/System.i4N -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/** -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Core/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Device/ST/STM32F4xx/Include -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Include -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -Wextra -Wpedantic -fdata-sections -ffunction-sections -O0 -g3 -std=gnu11 -MD -MT CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_obj_draw.c.obj -MF CMakeFiles\Tlaloc.dir\Middleware.i4N\LVGL\src\core\lv_obj_draw.c.obj.d -o CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_obj_draw.c.obj -c D:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/core/lv_obj_draw.c
cc1.exe: error: too many filenames given; type 'cc1.exe --help' for usage
cc1.exe: fatal error: D:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/draw: No such file or directory
compilation terminated.
[2/231] Building C object CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_indev_scroll.c.obj
FAILED: [code=1] CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_indev_scroll.c.obj
D:\Dev.i4N\MSYS2\ucrt64\bin\arm-none-eabi-gcc.exe -DDEBUG -DSTM32F411xE -DUSE_HAL_DRIVER -ID:/Project.i4N/STM32/Tlaloc/Hardware.i4N -ID:/Project.i4N/STM32/Tlaloc/System.i4N -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/** -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Core/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Device/ST/STM32F4xx/Include -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Include -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -Wextra -Wpedantic -fdata-sections -ffunction-sections -O0 -g3 -std=gnu11 -MD -MT CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_indev_scroll.c.obj -MF CMakeFiles\Tlaloc.dir\Middleware.i4N\LVGL\src\core\lv_indev_scroll.c.obj.d -o CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_indev_scroll.c.obj -c D:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/core/lv_indev_scroll.c
cc1.exe: error: too many filenames given; type 'cc1.exe --help' for usage
cc1.exe: fatal error: D:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/draw: No such file or directory
compilation terminated.
[3/231] Building C object CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_obj_pos.c.obj
FAILED: [code=1] CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_obj_pos.c.obj
D:\Dev.i4N\MSYS2\ucrt64\bin\arm-none-eabi-gcc.exe -DDEBUG -DSTM32F411xE -DUSE_HAL_DRIVER -ID:/Project.i4N/STM32/Tlaloc/Hardware.i4N -ID:/Project.i4N/STM32/Tlaloc/System.i4N -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/** -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Core/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Device/ST/STM32F4xx/Include -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Include -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -Wextra -Wpedantic -fdata-sections -ffunction-sections -O0 -g3 -std=gnu11 -MD -MT CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_obj_pos.c.obj -MF CMakeFiles\Tlaloc.dir\Middleware.i4N\LVGL\src\core\lv_obj_pos.c.obj.d -o CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_obj_pos.c.obj -c D:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/core/lv_obj_pos.c
cc1.exe: error: too many filenames given; type 'cc1.exe --help' for usage
cc1.exe: fatal error: D:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/draw: No such file or directory
compilation terminated.
[4/231] Building C object CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_indev.c.obj
FAILED: [code=1] CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_indev.c.obj
D:\Dev.i4N\MSYS2\ucrt64\bin\arm-none-eabi-gcc.exe -DDEBUG -DSTM32F411xE -DUSE_HAL_DRIVER -ID:/Project.i4N/STM32/Tlaloc/Hardware.i4N -ID:/Project.i4N/STM32/Tlaloc/System.i4N -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/** -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Core/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Device/ST/STM32F4xx/Include -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Include -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -Wextra -Wpedantic -fdata-sections -ffunction-sections -O0 -g3 -std=gnu11 -MD -MT CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_indev.c.obj -MF CMakeFiles\Tlaloc.dir\Middleware.i4N\LVGL\src\core\lv_indev.c.obj.d -o CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_indev.c.obj -c D:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/core/lv_indev.c
cc1.exe: error: too many filenames given; type 'cc1.exe --help' for usage
cc1.exe: fatal error: D:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/draw: No such file or directory
compilation terminated.
[5/231] Building C object CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/lv_port_disp_template.c.obj
FAILED: [code=1] CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/lv_port_disp_template.c.obj
D:\Dev.i4N\MSYS2\ucrt64\bin\arm-none-eabi-gcc.exe -DDEBUG -DSTM32F411xE -DUSE_HAL_DRIVER -ID:/Project.i4N/STM32/Tlaloc/Hardware.i4N -ID:/Project.i4N/STM32/Tlaloc/System.i4N -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/** -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Core/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Device/ST/STM32F4xx/Include -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Include -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -Wextra -Wpedantic -fdata-sections -ffunction-sections -O0 -g3 -std=gnu11 -MD -MT CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/lv_port_disp_template.c.obj -MF CMakeFiles\Tlaloc.dir\Middleware.i4N\LVGL\lv_port_disp_template.c.obj.d -o CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/lv_port_disp_template.c.obj -c D:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/lv_port_disp_template.c
cc1.exe: error: too many filenames given; type 'cc1.exe --help' for usage
cc1.exe: fatal error: D:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/draw: No such file or directory
compilation terminated.
[6/231] Building CXX object CMakeFiles/Tlaloc.dir/Hardware.i4N/ST7306.cpp.obj
FAILED: [code=1] CMakeFiles/Tlaloc.dir/Hardware.i4N/ST7306.cpp.obj
D:\Dev.i4N\MSYS2\ucrt64\bin\arm-none-eabi-g++.exe -DDEBUG -DSTM32F411xE -DUSE_HAL_DRIVER -ID:/Project.i4N/STM32/Tlaloc/Hardware.i4N -ID:/Project.i4N/STM32/Tlaloc/System.i4N -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/** -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Core/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Device/ST/STM32F4xx/Include -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Include -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -Wextra -Wpedantic -fdata-sections -ffunction-sections -fno-rtti -fno-exceptions -fno-threadsafe-statics -O0 -g3 -std=gnu++23 -MD -MT CMakeFiles/Tlaloc.dir/Hardware.i4N/ST7306.cpp.obj -MF CMakeFiles\Tlaloc.dir\Hardware.i4N\ST7306.cpp.obj.d -o CMakeFiles/Tlaloc.dir/Hardware.i4N/ST7306.cpp.obj -c D:/Project.i4N/STM32/Tlaloc/Hardware.i4N/ST7306.cpp
cc1plus.exe: error: too many filenames given; type 'cc1plus.exe --help' for usage
cc1plus.exe: fatal error: D:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/draw: No such file or directory
compilation terminated.
[7/231] Building C object CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_obj_class.c.obj
FAILED: [code=1] CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_obj_class.c.obj
D:\Dev.i4N\MSYS2\ucrt64\bin\arm-none-eabi-gcc.exe -DDEBUG -DSTM32F411xE -DUSE_HAL_DRIVER -ID:/Project.i4N/STM32/Tlaloc/Hardware.i4N -ID:/Project.i4N/STM32/Tlaloc/System.i4N -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/** -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Core/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Device/ST/STM32F4xx/Include -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Include -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -Wextra -Wpedantic -fdata-sections -ffunction-sections -O0 -g3 -std=gnu11 -MD -MT CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_obj_class.c.obj -MF CMakeFiles\Tlaloc.dir\Middleware.i4N\LVGL\src\core\lv_obj_class.c.obj.d -o CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_obj_class.c.obj -c D:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/core/lv_obj_class.c
cc1.exe: error: too many filenames given; type 'cc1.exe --help' for usage
cc1.exe: fatal error: D:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/draw: No such file or directory
compilation terminated.
[8/231] Building CXX object CMakeFiles/Tlaloc.dir/Hardware.i4N/ST7306_UI.cpp.obj
FAILED: [code=1] CMakeFiles/Tlaloc.dir/Hardware.i4N/ST7306_UI.cpp.obj
D:\Dev.i4N\MSYS2\ucrt64\bin\arm-none-eabi-g++.exe -DDEBUG -DSTM32F411xE -DUSE_HAL_DRIVER -ID:/Project.i4N/STM32/Tlaloc/Hardware.i4N -ID:/Project.i4N/STM32/Tlaloc/System.i4N -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/** -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Core/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Device/ST/STM32F4xx/Include -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Include -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -Wextra -Wpedantic -fdata-sections -ffunction-sections -fno-rtti -fno-exceptions -fno-threadsafe-statics -O0 -g3 -std=gnu++23 -MD -MT CMakeFiles/Tlaloc.dir/Hardware.i4N/ST7306_UI.cpp.obj -MF CMakeFiles\Tlaloc.dir\Hardware.i4N\ST7306_UI.cpp.obj.d -o CMakeFiles/Tlaloc.dir/Hardware.i4N/ST7306_UI.cpp.obj -c D:/Project.i4N/STM32/Tlaloc/Hardware.i4N/ST7306_UI.cpp
cc1plus.exe: error: too many filenames given; type 'cc1plus.exe --help' for usage
cc1plus.exe: fatal error: D:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/draw: No such file or directory
compilation terminated.
[9/231] Building C object CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_event.c.obj
FAILED: [code=1] CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_event.c.obj
D:\Dev.i4N\MSYS2\ucrt64\bin\arm-none-eabi-gcc.exe -DDEBUG -DSTM32F411xE -DUSE_HAL_DRIVER -ID:/Project.i4N/STM32/Tlaloc/Hardware.i4N -ID:/Project.i4N/STM32/Tlaloc/System.i4N -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/** -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Core/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Device/ST/STM32F4xx/Include -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Include -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -Wextra -Wpedantic -fdata-sections -ffunction-sections -O0 -g3 -std=gnu11 -MD -MT CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_event.c.obj -MF CMakeFiles\Tlaloc.dir\Middleware.i4N\LVGL\src\core\lv_event.c.obj.d -o CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_event.c.obj -c D:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/core/lv_event.c
cc1.exe: error: too many filenames given; type 'cc1.exe --help' for usage
cc1.exe: fatal error: D:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/draw: No such file or directory
compilation terminated.
[10/231] Building C object CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_disp.c.obj
FAILED: [code=1] CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_disp.c.obj
D:\Dev.i4N\MSYS2\ucrt64\bin\arm-none-eabi-gcc.exe -DDEBUG -DSTM32F411xE -DUSE_HAL_DRIVER -ID:/Project.i4N/STM32/Tlaloc/Hardware.i4N -ID:/Project.i4N/STM32/Tlaloc/System.i4N -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/** -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Core/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Device/ST/STM32F4xx/Include -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Include -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -Wextra -Wpedantic -fdata-sections -ffunction-sections -O0 -g3 -std=gnu11 -MD -MT CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_disp.c.obj -MF CMakeFiles\Tlaloc.dir\Middleware.i4N\LVGL\src\core\lv_disp.c.obj.d -o CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_disp.c.obj -c D:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/core/lv_disp.c
cc1.exe: error: too many filenames given; type 'cc1.exe --help' for usage
cc1.exe: fatal error: D:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/draw: No such file or directory
compilation terminated.
[11/231] Building C object CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_group.c.obj
FAILED: [code=1] CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_group.c.obj
D:\Dev.i4N\MSYS2\ucrt64\bin\arm-none-eabi-gcc.exe -DDEBUG -DSTM32F411xE -DUSE_HAL_DRIVER -ID:/Project.i4N/STM32/Tlaloc/Hardware.i4N -ID:/Project.i4N/STM32/Tlaloc/System.i4N -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/** -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Core/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Device/ST/STM32F4xx/Include -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Include -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -Wextra -Wpedantic -fdata-sections -ffunction-sections -O0 -g3 -std=gnu11 -MD -MT CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_group.c.obj -MF CMakeFiles\Tlaloc.dir\Middleware.i4N\LVGL\src\core\lv_group.c.obj.d -o CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_group.c.obj -c D:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/core/lv_group.c
cc1.exe: error: too many filenames given; type 'cc1.exe --help' for usage
cc1.exe: fatal error: D:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/draw: No such file or directory
compilation terminated.
[12/231] Building CXX object CMakeFiles/Tlaloc.dir/Hardware.i4N/uart_app.cpp.obj
FAILED: [code=1] CMakeFiles/Tlaloc.dir/Hardware.i4N/uart_app.cpp.obj
D:\Dev.i4N\MSYS2\ucrt64\bin\arm-none-eabi-g++.exe -DDEBUG -DSTM32F411xE -DUSE_HAL_DRIVER -ID:/Project.i4N/STM32/Tlaloc/Hardware.i4N -ID:/Project.i4N/STM32/Tlaloc/System.i4N -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/** -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Core/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Device/ST/STM32F4xx/Include -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Include -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -Wextra -Wpedantic -fdata-sections -ffunction-sections -fno-rtti -fno-exceptions -fno-threadsafe-statics -O0 -g3 -std=gnu++23 -MD -MT CMakeFiles/Tlaloc.dir/Hardware.i4N/uart_app.cpp.obj -MF CMakeFiles\Tlaloc.dir\Hardware.i4N\uart_app.cpp.obj.d -o CMakeFiles/Tlaloc.dir/Hardware.i4N/uart_app.cpp.obj -c D:/Project.i4N/STM32/Tlaloc/Hardware.i4N/uart_app.cpp
cc1plus.exe: error: too many filenames given; type 'cc1plus.exe --help' for usage
cc1plus.exe: fatal error: D:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/draw: No such file or directory
compilation terminated.
[13/231] Building C object CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_obj.c.obj
FAILED: [code=1] CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_obj.c.obj
D:\Dev.i4N\MSYS2\ucrt64\bin\arm-none-eabi-gcc.exe -DDEBUG -DSTM32F411xE -DUSE_HAL_DRIVER -ID:/Project.i4N/STM32/Tlaloc/Hardware.i4N -ID:/Project.i4N/STM32/Tlaloc/System.i4N -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/** -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Core/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Device/ST/STM32F4xx/Include -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Include -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -Wextra -Wpedantic -fdata-sections -ffunction-sections -O0 -g3 -std=gnu11 -MD -MT CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_obj.c.obj -MF CMakeFiles\Tlaloc.dir\Middleware.i4N\LVGL\src\core\lv_obj.c.obj.d -o CMakeFiles/Tlaloc.dir/Middleware.i4N/LVGL/src/core/lv_obj.c.obj -c D:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/core/lv_obj.c
cc1.exe: error: too many filenames given; type 'cc1.exe --help' for usage
cc1.exe: fatal error: D:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/draw: No such file or directory
compilation terminated.
[14/231] Building CXX object CMakeFiles/Tlaloc.dir/System.i4N/cppmain.cpp.obj
FAILED: [code=1] CMakeFiles/Tlaloc.dir/System.i4N/cppmain.cpp.obj
D:\Dev.i4N\MSYS2\ucrt64\bin\arm-none-eabi-g++.exe -DDEBUG -DSTM32F411xE -DUSE_HAL_DRIVER -ID:/Project.i4N/STM32/Tlaloc/Hardware.i4N -ID:/Project.i4N/STM32/Tlaloc/System.i4N -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/** -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Core/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Device/ST/STM32F4xx/Include -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Include -mcpu=cortex-m4 -mfpu=fpv4-sp[14/231] Building CXX object CMakeFiles/Tlaloc.dir/System.i4N/cppmain.cpp.obj
FAILED: [code=1] CMakeFiles/Tlaloc.dir/System.i4N/cppmain.cpp.obj
D:\Dev.i4N\MSYS2\ucrt64\bin\arm-none-eabi-g++.exe -DDEBUG -DSTM32F411xE -DUSE_HAL_DRIVER -ID:/Project.i4N/STM32/Tlaloc/Hardware.i4N -ID:/Project.i4N/STM32/Tlaloc/System.i4N -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/** -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Core/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Device/ST/STM32F4xx/Include -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Include -mcpu=cortex-m4 -mfpu=fpv4-spFAILED: [code=1] CMakeFiles/Tlaloc.dir/System.i4N/cppmain.cpp.obj
D:\Dev.i4N\MSYS2\ucrt64\bin\arm-none-eabi-g++.exe -DDEBUG -DSTM32F411xE -DUSE_HAL_DRIVER -ID:/Project.i4N/STM32/Tlaloc/Hardware.i4N -ID:/Project.i4N/STM32/Tlaloc/System.i4N -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/** -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Core/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Device/ST/STM32F4xx/Include -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Include -mcpu=cortex-m4 -mfpu=fpv4-spi4N/STM32/Tlaloc/System.i4N -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL -ID:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/** -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Core/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Device/ST/STM32F4xx/Include -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Include -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -Wextra -Wpedantic -fdata-sections -ffunction-sections -fno-rtti -fno-exceptions -fno-threadsafe-statics -O0 -g3 -std=gnu++23 -MD -MT CMakeFiles/Tlaloc.dir/System.i4N/cppmain.cpp.obj -MF CMakeFiles\Tlaloc.dir\System.i4N\cppmain.cpp.obj.d -o CMakeFiles/Tlaloc.dir/System.i4N/cppmain.cpp.obj -c D:/Project.i4N/STM32/Tlaloc/System.i4N/cppmain.cpp
cc1plus.exe: error: too many filenames given; type 'cc1plus.exe --help' for usage
Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Device/ST/STM32F4xx/Include -ID:/Project.i4N/STM32/Tlaloc/cmake/stm32cubemx/../../Drivers/CMSIS/Include -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -Wextra -Wpedantic -fdata-sections -ffunction-sections -fno-rtti -fno-exceptions -fno-threadsafe-statics -O0 -g3 -std=gnu++23 -MD -MT CMakeFiles/Tlaloc.dir/System.i4N/cppmain.cpp.obj -MF CMakeFiles\Tlaloc.dir\System.i4N\cppmain.cpp.obj.d -o CMakeFiles/Tlaloc.dir/System.i4N/cppmain.cpp.obj -c D:/Project.i4N/STM32/Tlaloc/System.i4N/cppmain.cpp
cc1plus.exe: error: too many filenames given; type 'cc1plus.exe --help' for usage
cc1plus.exe: fatal error: D:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/draw: No such file or directory
-d16 -mfloat-abi=hard -Wall -Wextra -Wpedantic -fdata-sections -ffunction-sections -fno-rtti -fno-exceptions -fno-threadsafe-statics -O0 -g3 -std=gnu++23 -MD -MT CMakeFiles/Tlaloc.dir/System.i4N/cppmain.cpp.obj -MF CMakeFiles\Tlaloc.dir\System.i4N\cppmain.cpp.obj.d -o CMakeFiles/Tlaloc.dir/System.i4N/cppmain.cpp.obj -c D:/Project.i4N/STM32/Tlaloc/System.i4N/cppmain.cpp
cc1plus.exe: error: too many filenames given; type 'cc1plus.exe --help' for usage
cc1plus.exe: fatal error: D:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/draw: No such file or directory
r/System.i4N/cppmain.cpp.obj -c D:/Project.i4N/STM32/Tlaloc/System.i4N/cppmain.cpp
cc1plus.exe: error: too many filenames given; type 'cc1plus.exe --help' for usage
cc1plus.exe: fatal error: D:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/draw: No such file or directory
compilation terminated.
cc1plus.exe: fatal error: D:/Project.i4N/STM32/Tlaloc/Middleware.i4N/LVGL/src/draw: No such file or directory
compilation terminated.
ninja: build stopped: subcommand failed.
compilation terminated.
ninja: build stopped: subcommand failed.
ninja: build stopped: subcommand failed.

CMakeLists.txt 进行更改:

1
2
3
4
5
6
7
8
9
# Add include paths
target_include_directories(${CMAKE_PROJECT_NAME} PRIVATE
    # Add user defined include paths
        ${CMAKE_CURRENT_SOURCE_DIR}/Hardware.i4N
        ${CMAKE_CURRENT_SOURCE_DIR}/System.i4N
        ${CMAKE_CURRENT_SOURCE_DIR}/Middleware.i4N/LVGL
        #${CMAKE_CURRENT_SOURCE_DIR}/Middleware.i4N/LVGL/src/**
        ${CMAKE_CURRENT_SOURCE_DIR}/Middleware.i4N/LVGL/src
)

同时将所有显式写在目录集里的头文件注释掉:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
file(GLOB HARDWARE
        #"${CMAKE_CURRENT_SOURCE_DIR}/Hardware.i4N/*.h"
        "${CMAKE_CURRENT_SOURCE_DIR}/Hardware.i4N/*.cpp"
)

file(GLOB SYSTEM
        #"${CMAKE_CURRENT_SOURCE_DIR}/System.i4N/*.h"
        "${CMAKE_CURRENT_SOURCE_DIR}/System.i4N/*.cpp"
)

file(GLOB_RECURSE LVGL_SRC CONFIGURE_DEPENDS
    "${CMAKE_CURRENT_SOURCE_DIR}/Middleware.i4N/LVGL/*.c"        # nothing here normmally
    #"${CMAKE_CURRENT_SOURCE_DIR}/Middleware.i4N/LVGL/*.h"        # lvgl.h / lv_conf.h / lv_version.h
    "${CMAKE_CURRENT_SOURCE_DIR}/Middleware.i4N/LVGL/*.cpp"      # nothing here normally
    "${CMAKE_CURRENT_SOURCE_DIR}/Middleware.i4N/LVGL/**/*.c"     # lots of files here
    #"${CMAKE_CURRENT_SOURCE_DIR}/Middleware.i4N/LVGL/**/*.h"
    "${CMAKE_CURRENT_SOURCE_DIR}/Middleware.i4N/LVGL/**/*.cpp"
)

构建和烧录成功。我觉得可能是因为 arm-none-eabi-gcc 在两台机器上的版本差异导致的不兼容问题,因为这个 txt 文件在我原来的机器上是可以跑的。

至此开发环境的迁移完成。