zoukankan      html  css  js  c++  java
  • cat1标准模组固件开发记录

    1. 先编译代码,编译指令如下

    call toolslaunch.bat qhq_debug_out debug
    cd outqhq_debug_out_debug
    cmake .... -G Ninja
    ninja

     

    编译报错,说是找不到cmake

    No CMAKE_C_COMPILER could be found.

    Tell CMake where to find the compiler by setting either the environment
    variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
    the compiler, or to the compiler name if it is in the PATH

    需要设置下cmake 的环境变量

     

     

    下载gcc编译器,gcc 编译器选择  MinGw 这个软件,包括 C编译器,调试器等一篮子功能。https://osdn.net/projects/mingw/downloads/68260/mingw-get-setup.exe/

    安装完MInGW之后,有了gcc

     

     

    下载完成后设置环境变量,分别需要设置INCLUDE  LIB , 和 Path

     

    看下gcc是否能用

     

     

    2. 遇到个问题就是直接复制进去的环境变量经常有问题,但是浏览文件的方式填进去的环境变量是可以的,比较奇怪。

    3. 开始编译,有两个问题,第一个是此文件被加密

    所以报错

    Can not find item: File: F:PROJ_1cat1_codeidhidh.codeoutCustomer_cat1bis_volte_
    modemgencat1_UIS8915DM_BB_RF_SS_cusdeltanvdelta.nv, Line:1,

    第二是

    gcc.exe: error: unrecognized command line option '-mthumb'
    gcc.exe: error: unrecognized command line option '-mfpu=neon-vfpv4'
    gcc.exe: error: unrecognized command line option '-mfloat-abi=hard'
    gcc.exe: error: unrecognized command line option '-mno-unaligned-access'

    这个问题是我自己搞了个项目名称,为啥用改的名称就不行?我草,原来是后面多了个debug

     

  • 相关阅读:
    mysql笔记--基础知识
    安全杂乱笔记整理1---常用服务端口总结
    ent orm笔记4---Code Generation
    ent orm笔记3---schema使用(下)
    ent orm笔记2---schema使用(上)
    ent orm笔记1---快速尝鲜
    Linux 更新yum源
    Lua 获取毫秒精度时间
    Linux docker镜像制作
    Linux 中文字符集安装
  • 原文地址:https://www.cnblogs.com/429512065qhq/p/13725061.html
Copyright © 2011-2022 走看看