当前位置:   article > 正文

paho-mqtt-c交叉编译_paho-mqtt c

paho-mqtt c

1. 在目录paho-mqtt-c/cmake中新建文件toolchain.linux-arm11-hdaq.cmake

  1. # path to compiler and utilities
  2. # specify the cross compiler
  3. SET(CMAKE_C_COMPILER aarch64-himix200-linux-gcc)
  4. # Name of the target platform
  5. SET(CMAKE_SYSTEM_NAME Linux)
  6. SET(CMAKE_SYSTEM_PROCESSOR arm)
  7. # Version of the system
  8. SET(CMAKE_SYSTEM_VERSION 1)

2. 在paho-mqtt-c目录下新建build_arm目录并进入此目录,执行命令:

cmake .. -DPAHO_BUILD_STATIC=TRUE -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain.linux-arm11-hdaq.cmake

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号