通往GCC_ARM之路 (mbed_settings.py)
Path to GCC_ARM (mbed_settings.py)
我刚刚开始使用mbed API,每次我尝试编译我的项目时都会发生这种情况
附言我在 arch Linux 上
usage: make.py [-h] [-m MCU] [-t TOOLCHAIN] [--color] [--cflags CFLAGS]
[--asmflags ASMFLAGS] [--ldflags LDFLAGS] [-c]
[--profile PROFILE] [--app-config APP_CONFIG] [-p PROGRAM]
[-n PROGRAM] [-j JOBS] [-v] [--silent] [-D MACROS]
[-S [{matrix,toolchains,targets}]] [-f GENERAL_FILTER_REGEX]
[--automated] [--host HOST_TEST] [--extra EXTRA]
[--peripherals PERIPHERALS] [--dep DEPENDENCIES]
[--source SOURCE_DIR] [--duration DURATION] [--build BUILD_DIR]
[-N ARTIFACT_NAME] [-d DISK] [-s SERIAL] [-b BAUD] [-L] [--rpc]
[--usb] [--dsp] [--testlib] [--build-data BUILD_DATA]
[-l LINKER_SCRIPT]
make.py: error: Could not find executable for GCC_ARM.
Currently set search path: /usr/bin/arm-none-eabi-gcc
[mbed] ERROR: "/usr/bin/python2" returned error code 2.
[mbed] ERROR: Command "/usr/bin/python2 -u /home/mathieu_auclair/Desktop/git/IsolightProject/.temp/tools/make.py -t GCC_ARM -m K64F --source . --build ./BUILD/K64F/GCC_ARM" in "/home/mathieu_auclair/Desktop/git/IsolightProject"
---
我看过这篇文章:mbed CLI:make.py:错误:找不到 ARM 的可执行文件 但我不知道这条路应该是什么...... 这是我的设置文件:
"""
mbed SDK
Copyright (c) 2016 ARM Limited
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
from os.path import join, abspath, dirname
#ROOT = abspath(join(dirname(__file__), "."))
##############################################################################
# Build System Settings
##############################################################################
#BUILD_DIR = abspath(join(ROOT, "build"))
# ARM
#ARM_PATH = "C:/Program Files/ARM"
# GCC ARM
GCC_ARM_PATH = "/usr/bin/arm-none-eabi-gcc"
# GCC CodeRed
#GCC_CR_PATH = "C:/code_red/RedSuite_4.2.0_349/redsuite/Tools/bin"
# IAR
#IAR_PATH = "C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.0/arm"
# Goanna static analyser. Please overload it in private_settings.py
#GOANNA_PATH = "c:/Program Files (x86)/RedLizards/Goanna Central 3.2.3/bin"
#BUILD_OPTIONS = []
# mbed.org username
#MBED_ORG_USER = ""
这个问题对你来说可能很简单,但我才刚刚开始,所以请帮帮我......
[更新]
我正在尝试一些事情,我试图手动启动编译器,这发生了:
命令
/usr/bin/python2 -u /home/mathieu_auclair/Desktop/git/IsolightProject/.temp/tools/make.py -t GCC_ARM -m k64f --source . --build ./BUILD/K64F/GCC_ARM
输出
htProject/.temp/tools/make.py -t GCC_ARM -m k64f --source . --build ./BUILD/K64F/GCC_ARM
Building project IsolightProject (K64F, GCC_ARM)
Scan: .
Scan: env
Scan: mbed
Compile [ 3.6%]: BLEInstanceBase.cpp
[Fatal Error] stdint.h@9,16: stdint.h: No such file or directory
[ERROR] In file included from ./BLE_API/ble/BLEProtocol.h:21:0,
from ./BLE_API/ble/Gap.h:20,
from ./BLE_API/ble/BLE.h:21,
from ./BLE_API/source/BLEInstanceBase.cpp:17:
/usr/lib/gcc/arm-none-eabi/7.1.0/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory
# include_next <stdint.h>
^~~~~~~~~~
compilation terminated.
我会试着弄清楚什么是stdint.h,那一定是问题所在,我会更新发生了什么!
我已经通过安装这两个存储库解决了我的问题+我的cmake奇怪地在pip3上。它用pip3而不是pip2安装了cmake,因为python3是arch linux上的主要python。
- Arm-none-eabi-newlib
- AVR-libc
这是让我解决问题的链接:
arm-linux-gnu-gcc 致命错误:stdio.h:没有这样的文件或目录
相关文章:
- 相当于 pybind11 中的 boost::p ython py::scope().attr()
- 如何构建一个 setup.py 来编译C++使用 Python、pybind11 和 Mingw-w64 的扩展?
- 如何应用 printers.py 修改?(Linux操作系统)
- 通过 sh 导入模块错误运行.py脚本
- 链接 library.lib 使用 setup.py.
- pybind 如何对 py::list 对象进行操作
- 返回多个 py::数组而不在 pybind11 中复制
- 如何在 module.reload() 之后保持 py::objects 存活
- pybind11:属性错误:尝试从 py 文件运行函数时,模块'XXX'没有属性'YYY'
- 通往GCC_ARM之路 (mbed_settings.py)
- 如何从 python (py) 文件调用 C++ 函数
- 使用 WinApi 获取与面板中相同的显示名称"Advanced display settings"
- 使用参数调用C 的gdal_merge.py
- 如何在python文件中访问c ++头文件(.py)
- 当我使用py 生成时,然后在macOS上boost.python包装器时,我会发现有关std :: string的错
- 在同一目录中使用conanfile.txt和conanfile.py
- 从C 运行.py脚本
- 扩展安装工具扩展以在 setup.py 中使用 CMake
- 提升 Python 如何在导入的 Python 文件中导入 py
- Visual Studio 2010 settings