|
发表于 2023-1-5 09:57:43
只看该作者
沙发
支持 RK3568;编译方式如下;另外,建议先学一些嵌入式基础知识,会有帮助;
```
# 设置编译工具链
diff --git a/build/linux/aarch64/arm.linux.cross.cmake b/build/linux/aarch64/arm.linux.cross.cmake
index c320c78e..ca9391bc 100644
--- a/build/linux/aarch64/arm.linux.cross.cmake
+++ b/build/linux/aarch64/arm.linux.cross.cmake
@@ -2,8 +2,8 @@
cmake_minimum_required( VERSION 2.6.3 )
SET(CMAKE_SYSTEM_NAME Linux)
-SET(CMAKE_C_COMPILER "aarch64-linux-gnu-gcc")
-SET(CMAKE_CXX_COMPILER "aarch64-linux-gnu-g++")
+SET(CMAKE_C_COMPILER "/path/to/rk356x-SDK/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc")
+SET(CMAKE_CXX_COMPILER "/path/to/rk356x-SDK/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++")
#SET(CMAKE_SYSTEM_PROCESSOR "armv7-a")
SET(CMAKE_SYSTEM_PROCESSOR "armv8-a")
# 编译
cd build/linux/aarch64/
./make-Makefiles.bash
make
``` |
|