当前位置:网站首页>Cmake cross compilation
Cmake cross compilation
2022-07-02 11:48:00 【wangzai6378】
The original CMakeLists.txt The contents of the remain unchanged . Add a new file , Such as toolChain.cmake
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_C_COMPILER /opt/tools/cgtools/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-gcc)
set(CMAKE_CXX_COMPILER /opt/tools/cgtools/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-g++)
set(CMAKE_CROSSCOMPILING TRUE)
set(CMAKE_SYSTEM_PROCESSOR arm)
set(CMAKE_FIND_ROOT_PATH /opt/tools/cgtools/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/lib64
/opt/cross/3rdparty/include
/opt/cross/3rdparty/lib/aarch64)
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) # Executable programs are not just set ROOT_PATH lookup
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) # Only in settings ROOT_PATH Find library under
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) # Only in settings ROOT_PATH Find the header file Running cmake When it's time to specify TOOLCHAIN_FILE, Such as :cmake -DCMAKE_TOOLCHAIN_FILE=./toolChain.cmake ..
then make that will do
边栏推荐
- Some suggestions for young people who are about to enter the workplace in the graduation season
- Research on and off the Oracle chain
- qt 仪表自定义控件
- SQLite modify column type
- 微信小程序利用百度api达成植物识别
- Tiktok overseas tiktok: finalizing the final data security agreement with Biden government
- 基于Hardhat和Openzeppelin开发可升级合约(一)
- The position of the first underline selected by the vant tabs component is abnormal
- BEAUTIFUL GGPLOT VENN DIAGRAM WITH R
- R HISTOGRAM EXAMPLE QUICK REFERENCE
猜你喜欢

RPA进阶(二)Uipath应用实践

Basic usage of MySQL in centos8

The selected cells in Excel form have the selection effect of cross shading

PowerBI中导出数据方法汇总

BEAUTIFUL GGPLOT VENN DIAGRAM WITH R
![[visual studio 2019] create MFC desktop program (install MFC development components | create MFC application | edit MFC application window | add click event for button | Modify button text | open appl](/img/6a/111da81436659c7502648907ec1367.jpg)
[visual studio 2019] create MFC desktop program (install MFC development components | create MFC application | edit MFC application window | add click event for button | Modify button text | open appl

Jinshanyun - 2023 Summer Internship

Map set assignment to database

How to Add P-Values onto Horizontal GGPLOTS

Esp32 stores the distribution network information +led displays the distribution network status + press the key to clear the distribution network information (source code attached)
随机推荐
php 二维、多维 数组打乱顺序,PHP_php打乱数组二维数组多维数组的简单实例,php中的shuffle函数只能打乱一维
Liftover for genome coordinate conversion
由粒子加速器产生的反中子形成的白洞
Esp32 stores the distribution network information +led displays the distribution network status + press the key to clear the distribution network information (source code attached)
Verilog and VHDL signed and unsigned number correlation operations
Fabric.js 3个api设置画布宽高
Redis超出最大内存错误OOM command not allowed when used memory > 'maxmemory'
Never forget, there will be echoes | hanging mirror sincerely invites you to participate in the opensca user award research
Redis exceeds the maximum memory error oom command not allowed when used memory & gt; ' maxmemory'
MySql存储过程游标遍历结果集
ren域名有价值吗?值不值得投资?ren域名的应用范围有哪些?
Writing contract test cases based on hardhat
MTK full dump grab
LVM operation
可升级合约的原理-DelegateCall
easyExcel和lombok注解以及swagger常用注解
基于Hardhat和Openzeppelin开发可升级合约(一)
GGPLOT: HOW TO DISPLAY THE LAST VALUE OF EACH LINE AS LABEL
Tdsql | difficult employment? Tencent cloud database micro authentication to help you
qt 仪表自定义控件