当前位置: 首页 > news >正文

abuild 命令行工程编译

abuild 命令行工程编译

使用vscode+abuild开发c/c++程序是,我们图形化界面开发比较方便编码、编译、调试,但是在命令行下编译工程时,我们需要使用abuild命令行工具。

abuild命令行工具采用源码提供,git仓库地址:https://github.com/Y2603012723/abuild-command

同步仓库,其本身也是一个abuild创建的c++工程,我们直接使用abuild编译按钮"Build"进行编译即可,编译后我们得到可执行文件。

yk@yk-vm:~/GIT/abuild/abuildCommand/abuildCommandDebug$ pwd
/home/yk/GIT/abuild/abuildCommand/abuildCommandDebug
yk@yk-vm:~/GIT/abuild/abuildCommand/abuildCommandDebug$ ls
AbuildCompiler.cpp.d  AbuildCompiler.cpp.o  abuild-yk  doc  include  main.cpp.d  main.cpp.o
yk@yk-vm:~/GIT/abuild/abuildCommand/abuildCommandDebug$

abuild-yk就是我们编译出来的可用于命令行编译工程的可执行文件,我们可以把它放到环境变量中,方便使用。

使用方法就是 “abuild-yk 工程目录”,就可以编译工程了,输出目录与图形化的abuild是一致的。

示例:

yk@yk-vm:~/GIT/abuild/abuildCommand/abuildCommandDebug$ ./abuild-yk /home/yk/GIT/rcfRepository/code/binitCode
=== Compiler Config ===
C Compiler: arm-linux-gnueabihf-gcc
C++ Compiler: arm-linux-gnueabihf-g++
Build Variant: Debug
Output Type: Executable file
========================== Project Config ===
Project Name: binit
Project Version: 0.0.1
Debug Flags: -g -O0 -fPIC -Wall -Wextra -pedantic
Release Flags: -O3 -fPIC -DNDEBUG
C++ Debug Flags: -g -O0 -fPIC -Wall -Wextra -pedantic -std=c++11
C++ Release Flags: -O3 -fPIC -DNDEBUG -std=c++11
Linker Flags: 
Auto Header Include: true
Include Paths: 
Library Paths: /home/libraryPath1, /home/libraryPath2
Library Names: crypt, pthread
Static Libraries: 
Pack Paths: configs
Ignored Header Files: 
Macro Args: -DMACRO_NAME=1, -DENABLE_XX=1
=================----------------------------------------------
---------------make build start---------------
----------------------------------------------省略....../CoreMechanism/source/AUdpSocket.cpp.o ./binitCodeDebug/CoreMechanism/source/AUTimer.cpp.o ./binitCodeDebug/CoreMechanism/source/spdlogCustom/time_rotating_file_sink_mt.cpp.o ./binitCodeDebug/CoreMechanism/source/generalTools/IdPool.cpp.o  -L/home/libraryPath1 -L/home/libraryPath2 -lcrypt -lpthread -o binitCodeDebug/binit
----------------------------------------------
---------------make build end-----------------
----------------------------------------------
----------------------------------------------
------------------pack start-----------------
----------------------------------------------
out_dir: /home/yk/GIT/rcfRepository/code/binitCode/binitCodeDebug
work_dir: /home/yk/GIT/rcfRepository/code/binitCode
project_name: binit
binit
----------------------------------------------
------------------pack end--------------------
----------------------------------------------

/home/yk/GIT/rcfRepository/code/binitCode是我的abuild-c++工程目录。

http://www.dtcms.com/a/593498.html

相关文章:

  • python自动化005:app自动化入门环境搭建
  • 云南品牌网站开发番禺建设网站开发
  • HarmonyOS:线性布局(Row/Column)
  • 鸿蒙Next学习解析之针对PC2in1设备的窗口管理新增支持主窗的尺寸记忆功能
  • 【大数据技术02】统计学和模型
  • Python数据挖掘之回归
  • 数据管理技术发展的3个阶段
  • 进网站后台显示空白购买东西网站怎么做
  • 做网站的公司都有哪些模板制作方法
  • .NET线程池ThreadPool.QueueUserWorkItem
  • Python爬虫进阶:面向对象设计与反爬策略实战
  • 河北省建设厅网站站长万网主体新增网站备案需要是滴么
  • windows 11 系统 nvm安装详细教程 (踩坑分享)
  • VMMap 学习笔记(8.3):VMMap 窗口全解析——内存类型、指标含义、颜色视图怎么读
  • 西安网站建设开发公司怎么样1688网
  • 南京做网站品牌2018 84号建设厅网站
  • 整体设计 全面梳理复盘 之29 Transformer 九宫格三层架构 Designer 全部功能定稿(初稿)
  • 再看软考与职称及软考的价值
  • pycharm连接远程服务器
  • libstdc++.so.6 version `GLIBCXX_3.4.29‘ not found
  • STM32 ADC底层原理与寄存器配置详解
  • 互联科技行业网站wordpress+纯净主题
  • 短剧广告联盟APP盈利模式分析:B 端合作商如何通过系统实现收益增长
  • 「腾讯云NoSQL」技术之向量数据库篇:自研分布式向量数据库,实现毫秒级时序一致备份的挑战和实践
  • seo站长助手网站设计师加油站
  • 基于Springboot的游戏后台管理系统a803t(程序、源码、数据库、调试部署方案及开发环境)系统界面展示及获取方式置于文档末尾,可供参考。
  • springboot在线课堂教学辅助系统07741
  • 成都网站制作中国互联国家企业信用信息公示系统山东
  • C++ 哈希
  • Rust编程问题修复:如何解决“no method named partition_at_mut found”错误