• 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

     

  • 相关阅读:
    Solaris 默认Shell 修改
    关系数组
    文件描述符 文件操作 <> open 文件句柄
    IO 双引号 输出 输入
    第五章答案
    子例程 subroutine
    钻石操作符
    花括号的使用 printf %${width}s , 否则会 去找 $widths
    print reverse <> 是打印全部的文件内容 ?
    hihoCoder#1239 Fibonacci
  • 原文地址:https://www.cnblogs.com/429512065qhq/p/13725061.html
Copyright © 2020-2023  润新知