2025-04-23 17:54:31 +08:00
<!DOCTYPE html> < html xmlns = "http://www.w3.org/1999/xhtml" xml:lang = "zh-cn" lang = "zh-cn" data-whc_version = "26.1" >
2025-07-22 11:15:46 +08:00
< head > < meta http-equiv = "Content-Type" content = "text/html; charset=UTF-8" / > < meta name = "viewport" content = "width=device-width, initial-scale=1.0" / > < meta http-equiv = "X-UA-Compatible" content = "IE=edge" / > < meta name = "description" content = "本节介绍了 Windows 环境下的编译方式,以及两个命令行工具的使用。 Luban-Lite SDK 采用了 Scons 作为编译框架的基础语言, Windows 环境中使用的工具存放在 luban-lite/tools/env/tools 目录中,不需要单独安装。 常规编译 Windows 环境下的常规编译流程如下所示: 工程加载 双击 SDK 根目录下的 win_cmd.bat 或 ..." / > < meta name = "DC.rights.owner" content = "(C) 版权 2025" / > < meta name = "copyright" content = "(C) 版权 2025" / > < meta name = "generator" content = "DITA-OT" / > < meta name = "DC.type" content = "topic" / > < meta name = "DC.relation" content = "../../../topics/sdk/env/sdk-compile.html" / > < meta name = "DC.relation" content = "../../../topics/sdk/advanced/sourcecode.html" / > < meta name = "DC.relation" content = "../../../topics/sdk/env/vscode.html" / > < meta name = "DC.contributor" content = "yan.wang" / > < meta name = "DC.contributor" content = "yan.wang" / > < meta name = "DC.date.modified" content = "2025-05-16" / > < meta name = "DC.format" content = "HTML5" / > < meta name = "DC.identifier" content = "id" / > < meta name = "DC.language" content = "zh-CN" / > < title > Windows< / title > <!-- Generated with build number 2025051600. --> < meta name = "wh-path2root" content = "../../../" / > < meta name = "wh-toc-id" content = "id-d3752e525" / > < meta name = "wh-source-relpath" content = "topics/sdk/env/windows.dita" / > < meta name = "wh-out-relpath" content = "topics/sdk/env/windows.html" / >
2025-01-23 16:37:00 +08:00
2025-04-23 17:54:31 +08:00
< link rel = "stylesheet" type = "text/css" href = "../../../webhelp/app/commons.css?buildId=2024041900" / >
< link rel = "stylesheet" type = "text/css" href = "../../../webhelp/app/topic.css?buildId=2024041900" / >
2025-01-23 16:37:00 +08:00
2025-07-22 11:15:46 +08:00
< script src = "../../../webhelp/app/options/properties.js?buildId=20250519091401" > < / script >
2025-04-23 17:54:31 +08:00
< script src = "../../../webhelp/app/localization/strings.js?buildId=2024041900" > < / script >
2025-07-22 11:15:46 +08:00
< script src = "../../../webhelp/app/search/index/keywords.js?buildId=20250519091401" > < / script >
2025-04-23 17:54:31 +08:00
< script defer = "defer" src = "../../../webhelp/app/commons.js?buildId=2024041900" > < / script >
< script defer = "defer" src = "../../../webhelp/app/topic.js?buildId=2024041900" > < / script >
< link rel = "stylesheet" type = "text/css" href = "../../../webhelp/template/css/aic-styles-web-internal.css?buildId=2024041900" / > < link rel = "stylesheet" type = "text/css" href = "../../../webhelp/template/css/notes.css?buildId=2024041900" / > < link rel = "stylesheet" type = "text/css" href = "../../../webhelp/template/css/aic-common.css?buildId=2024041900" / > < link rel = "stylesheet" type = "text/css" href = "../../../webhelp/template/css/aic-images.css?buildId=2024041900" / > < link rel = "stylesheet" type = "text/css" href = "../../../webhelp/template/css/footnote.css?buildId=2024041900" / > < link rel = "stylesheet" type = "text/css" href = "../../../webhelp/template/css/aic-highlight-changes.css?buildId=2024041900" / > < link rel = "stylesheet" type = "text/css" href = "../../../webhelp/template/css/search-in-header.css?buildId=2024041900" / > < link rel = "stylesheet" type = "text/css" href = "../../../webhelp/template/css/topic-body-list.css?buildId=2024041900" / > < / head >
2025-01-23 16:37:00 +08:00
< body id = "id" class = "wh_topic_page frmBody" >
< a href = "#wh_topic_body" class = "sr-only sr-only-focusable" >
跳转到主要内容
< / a >
< header class = "navbar navbar-default wh_header" >
< div class = "container-fluid" >
2025-04-23 17:54:31 +08:00
< div xmlns:whc = "http://www.oxygenxml.com/webhelp/components" class = "wh_header_flex_container navbar-nav navbar-expand-md navbar-dark" >
2025-01-23 16:37:00 +08:00
< div class = "wh_logo_and_publication_title_container" >
< div class = "wh_logo_and_publication_title" >
2025-04-23 17:54:31 +08:00
< a href = "https://www.artinchip.com" class = " wh_logo d-none d-sm-block " > < img src = "../../../company-logo.png" alt = " RTOS SDK 使用指南 SDK 指南文件 " / > < / a >
< div class = " wh_publication_title " > < a href = "../../../index.html" > < span class = "booktitle" > < span class = "ph mainbooktitle" > RTOS SDK 使用指南< / span > < span class = "ph booktitlealt" > SDK 指南文件< / span > < / span > < / a > < / div >
2025-01-23 16:37:00 +08:00
< / div >
< / div >
< div class = "wh_top_menu_and_indexterms_link collapse navbar-collapse" id = "wh_top_menu_and_indexterms_link" >
< / div >
< div class = " wh_search_input navbar-form wh_topic_page_search search " role = "form" >
< form id = "searchForm" method = "get" role = "search" action = "../../../search.html" > < div > < input type = "search" placeholder = "搜索 " class = "wh_search_textfield" id = "textToSearch" name = "searchQuery" aria-label = "搜索查询" required = "required" / > < button type = "submit" class = "wh_search_button" aria-label = "搜索" > < span class = "search_input_text" > 搜索< / span > < / button > < / div > < / form >
2025-04-23 17:54:31 +08:00
< / div > < / div >
< / div >
< / header >
2025-01-23 16:37:00 +08:00
< div class = "container-fluid" id = "wh_topic_container" >
< div class = "row" >
< nav class = "wh_tools d-print-none navbar-expand-md" aria-label = "Tools" >
< div data-tooltip-position = "bottom" class = " wh_breadcrumb " > < ol class = "d-print-none" > < li > < span class = "home" > < a href = "../../../index.html" > < span > 主页< / span > < / a > < / span > < / li > < li > < div class = "topicref" data-id = "id" > < div class = "title" > < a href = "../../../topics/sdk/env/sdk-compile.html" > SDK 编译< / a > < div class = "wh-tooltip" > < p class = "shortdesc" > 介绍不同编译环境下 SDK 的详细编译流程。< / p > < / div > < / div > < / div > < / li > < li class = "active" > < div class = "topicref" data-id = "id" > < div class = "title" > < a href = "../../../topics/sdk/env/windows.html" > Windows< / a > < / div > < / div > < / li > < / ol > < / div >
< div class = "wh_right_tools" >
< button class = "wh_hide_highlight" aria-label = "切换搜索突出显示" title = "切换搜索突出显示" > < / button >
< button class = "webhelp_expand_collapse_sections" data-next-state = "collapsed" aria-label = "折叠截面" title = "折叠截面" > < / button >
< div class = " wh_navigation_links " > < span id = "topic_navigation_links" class = "navheader" >
2025-04-23 17:54:31 +08:00
< span class = "navprev" > < a class = "- topic/link link" href = "../../../topics/sdk/advanced/sourcecode.html" title = "代码结构" aria-label = "上一主题: 代码结构" rel = "prev" > < / a > < / span >
< span class = "navnext" > < a class = "- topic/link link" href = "../../../topics/sdk/env/vscode.html" title = "VSCode" aria-label = "下一主题: VSCode" rel = "next" > < / a > < / span > < / span > < / div >
2025-01-23 16:37:00 +08:00
< div class = " wh_print_link print d-none d-md-inline-block " > < button onClick = "window.print()" title = "打印此页" aria-label = "打印此页" > < / button > < / div >
< button type = "button" id = "wh_toc_button" class = "custom-toggler navbar-toggler collapsed wh_toggle_button navbar-light" aria-expanded = "false" aria-label = "Toggle publishing table of content" aria-controls = "wh_publication_toc" >
< span class = "navbar-toggler-icon" > < / span >
< / button >
< / div >
< / nav >
< / div >
< div class = "wh_content_area" >
< div class = "row" >
< nav id = "wh_publication_toc" class = "col-lg-3 col-md-3 col-sm-12 d-md-block d-none d-print-none" aria-label = "Table of Contents Container" >
< div id = "wh_publication_toc_content" >
2025-07-22 11:15:46 +08:00
< div class = " wh_publication_toc " data-tooltip-position = "right" > < span class = "expand-button-action-labels" > < span id = "button-expand-action" role = "button" aria-label = "Expand" > < / span > < span id = "button-collapse-action" role = "button" aria-label = "Collapse" > < / span > < span id = "button-pending-action" role = "button" aria-label = "Pending" > < / span > < / span > < ul role = "tree" aria-label = "Table of Contents" > < li role = "treeitem" > < div data-tocid = "revinfo_linux-d3752e463" class = "topicref" data-id = "revinfo_linux" data-state = "leaf" > < span role = "button" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/revinfo/revinfo_rtos.html" id = "revinfo_linux-d3752e463-link" > 修订记录< / a > < / div > < / div > < / li > < li role = "treeitem" aria-expanded = "true" > < div data-tocid = "id-d3752e480" class = "topicref" data-id = "id" data-state = "expanded" > < span role = "button" tabindex = "0" aria-labelledby = "button-collapse-action id-d3752e480-link" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/env/sdk-compile.html" id = "id-d3752e480-link" > SDK 编译< / a > < div class = "wh-tooltip" > < p class = "shortdesc" > 介绍不同编译环境下 SDK 的详细编译流程。< / p > < / div > < / div > < / div > < ul role = "group" class = "navbar-nav nav-list" > < li role = "treeitem" aria-expanded = "false" > < div data-tocid = "id-d3752e497" class = "topicref" data-id = "id" data-state = "not-ready" > < span role = "button" tabindex = "0" aria-labelledby = "button-expand-action id-d3752e497-link" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/env/sourcecode.html" id = "id-d3752e497-link" > 准备代码< / a > < / div > < / div > < / li > < li role = "treeitem" class = "active" > < div data-tocid = "id-d3752e525" class = "topicref" data-id = "id" data-state = "leaf" > < span role = "button" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/env/windows.html" id = "id-d3752e525-link" > Windows< / a > < / div > < / div > < / li > < li role = "treeitem" aria-expanded = "false" > < div data-tocid = "id-d3752e541" class = "topicref" data-id = "id" data-state = "not-ready" > < span role = "button" tabindex = "0" aria-labelledby = "button-expand-action id-d3752e541-link" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/env/vscode.html" id = "id-d3752e541-link" > VSCode< / a > < / div > < / div > < / li > < li role = "treeitem" > < div data-tocid = "id-d3752e589" class = "topicref" data-id = "id" data-state = "leaf" > < span role = "button" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/env/ubuntu2004.html" id = "id-d3752e589-link" > Ubuntu< / a > < / div > < / div > < / li > < / ul > < / li > < li role = "treeitem" aria-expanded = "false" > < div data-tocid = "id-d3752e604" class = "topicref" data-id = "id" data-state = "not-ready" > < span role = "button" tabindex = "0" aria-labelledby = "button-expand-action id-d3752e604-link" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/advanced/sdk-usage.html" id = "id-d3752e604-link" > 使用指南< / a > < div class = "wh-tooltip" > < p class = "shortdesc" > 命令详解,编译选项,镜像和分区配置,添加应用和驱动等的详细使用说明。< / p > < / div > < / div > < / div > < / li > < li role = "treeitem" aria-expanded = "false" > < div data-tocid = "concept_rcx_czh_pzb-d3752e1004" class = "topicref" data-id = "concept_rcx_czh_pzb" data-state = "not-ready" > < span role = "button" tabindex = "0" aria-labelledby = "button-expand-action concept_rcx_czh_pzb-d3752e1004-link" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/chapter-app.html" id = "concept_rcx_czh_pzb-d3752e1004-link" > 应用场景< / a > < div class = "wh-tooltip" > < p class = "shortdesc" > 描述了 SDK 在不同应用场景中的配置和使用, 包括系统更新、OTA、安全方案等。< / p > < / div > < / div > < / div > < / li > < li role = "treeitem" aria-expanded = "false" > < div data-tocid = "id-d3752e1848" class = "topicref" data-id = "id" data-state = "not-ready" > < span role = "button" tabindex = "0" aria-labelledby = "button-expand-action id-d3752e1848-link" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/peripheral/peripheral-intro.html" id = "id-d3752e1848-link" > 外设移植< / a > < div class = "wh-tooltip" > < p class = "shortdesc" > < span class = "ph" > CTP、U
2025-01-23 16:37:00 +08:00
< / div >
< / nav >
< div class = "col-lg-7 col-md-9 col-sm-12" id = "wh_topic_body" >
< button id = "wh_close_publication_toc_button" class = "close-toc-button d-none" aria-label = "Toggle publishing table of content" aria-controls = "wh_publication_toc" aria-expanded = "true" >
< span class = "close-toc-icon-container" >
< span class = "close-toc-icon" > < / span >
< / span >
< / button >
< button id = "wh_close_topic_toc_button" class = "close-toc-button d-none" aria-label = "Toggle topic table of content" aria-controls = "wh_topic_toc" aria-expanded = "true" >
< span class = "close-toc-icon-container" >
< span class = "close-toc-icon" > < / span >
< / span >
< / button >
2025-04-23 17:54:31 +08:00
< div class = " wh_topic_content body " > < main role = "main" > < article class = "- topic/topic topic" role = "article" aria-labelledby = "ariaid-title1" >
< span class = "edit-link" style = "font-size:12px; opacity:0.6; text-align:right; vertical-align:middle" > < a target = "_blank" href = "http://aicdocco/taskstopics/sdk/env/windows.dita" > Edit online< / a > < / span > < h1 class = "- topic/title title topictitle1" id = "ariaid-title1" > Windows< / h1 >
2025-07-22 11:15:46 +08:00
< div class = "date inPage" > 16 May 2025< / div > < div style = "color: gray;" >
2025-01-23 16:37:00 +08:00
Read time: 1 minute(s)
2025-04-23 17:54:31 +08:00
< / div >
< div class = "- topic/body body" >
2025-07-22 11:15:46 +08:00
< p class = "- topic/p p" data-ofbid = "d165658e33__20250519091523" > 本节介绍了 Windows
2025-04-23 17:54:31 +08:00
环境下的编译方式,以及两个命令行工具的使用。< / p >
< p class = "- topic/p p" id = "id__p_gzc_tn2_xdc" data-ofbid = "id__p_gzc_tn2_xdc" > < span class = "- topic/ph ph" > Luban-Lite< / span > SDK 采用了 < a class = "- topic/xref xref" href = "../advanced/sconstruct.html" > Scons< / a >
2025-01-23 16:37:00 +08:00
作为编译框架的基础语言, Windows 环境中使用的工具存放在 < span class = "+ topic/ph sw-d/filepath ph filepath" > luban-lite/tools/env/tools< / span >
2025-04-23 17:54:31 +08:00
目录中,不需要单独安装。< / p >
< section class = "- topic/section section" id = "id__section_vkn_hlp_wcc" data-ofbid = "id__section_vkn_hlp_wcc" > < h2 class = "- topic/title title sectiontitle" > 常规编译< / h2 >
2025-01-23 16:37:00 +08:00
2025-04-23 17:54:31 +08:00
< div class = "- topic/p p" id = "id__p_ixj_5n2_xdc" data-ofbid = "id__p_ixj_5n2_xdc" > Windows 环境下的常规编译流程如下所示:< ol class = "- topic/ol ol" id = "id__ol_ml5_vwz_zcc" data-ofbid = "id__ol_ml5_vwz_zcc" >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d165658e59__20250519091523" > < strong class = "+ topic/ph hi-d/b ph b" > 工程加载< / strong >
< div class = "- topic/p p" data-ofbid = "d165658e63__20250519091523" > 双击 SDK 根目录下的 < span class = "+ topic/ph sw-d/filepath ph filepath" > win_cmd.bat< / span > 或
< span class = "+ topic/ph sw-d/filepath ph filepath" > win_env.bat< / span > ,通过下列命令加载工程的现有配置:< ul class = "- topic/ul ul" id = "id__ul_yhb_g5h_rdc" data-ofbid = "id__ul_yhb_g5h_rdc" >
< li class = "- topic/li li" data-ofbid = "d165658e87__20250519091523" >
< p class = "- topic/p p" data-ofbid = "d165658e89__20250519091523" > < a class = "- topic/xref xref" href = "../advanced/scons-commands.html#scons-commands__id2" > scons
2025-01-23 16:37:00 +08:00
--list-def< / a > < / p >
2025-04-23 17:54:31 +08:00
< / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d165658e95__20250519091523" >
< p class = "- topic/p p" data-ofbid = "d165658e97__20250519091523" > < a class = "- topic/xref xref" href = "../advanced/scons-commands.html#scons-commands__id3" > scons
2025-01-23 16:37:00 +08:00
--apply-def=< var class = "+ topic/keyword sw-d/varname keyword varname" > 项目索引或名称< / var > < / a > < / p >
2025-04-23 17:54:31 +08:00
< / li >
< / ul > < / div > < div class = "- topic/note note note note_note" id = "id__note_psf_rkt_4dc" data-ofbid = "id__note_psf_rkt_4dc" > < span class = "note__title" > 注:< / span > < span class = "+ topic/ph sw-d/filepath ph filepath" > win_cmd.bat< / span > 和
< span class = "+ topic/ph sw-d/filepath ph filepath" > win_env.bat< / span > 为两种不同的批处理文件,详情可查看< a class = "- topic/xref xref" href = "windows.html#id__section_ajf_pkt_4dc" > 批处理文件< / a > 。< / div > < / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d165658e117__20250519091523" >
2025-01-23 16:37:00 +08:00
< div class = "- topic/div div section" id = "id__id4" > < strong class = "+ topic/ph hi-d/b ph b" > 配置< / strong >
2025-07-22 11:15:46 +08:00
< p class = "- topic/p p" data-ofbid = "d165658e123__20250519091523" > 在加载完工程配置后,可使用
< a class = "- topic/xref xref" href = "../advanced/scons-commands.html#scons-commands__id4" > scons --menuconfig< / a >
命令打开该工程的配置界面进行配置。< / p > < p class = "- topic/p p" data-ofbid = "d165658e141__20250519091523" > 配置界面使用的是嵌入式系统通用的
menuconfig 样式。< / p > < / div >
2025-04-23 17:54:31 +08:00
< / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d165658e150__20250519091523" >
2025-01-23 16:37:00 +08:00
< div class = "- topic/div div section" id = "id__id5" > < strong class = "+ topic/ph hi-d/b ph b" > 编译< / strong >
2025-07-22 11:15:46 +08:00
< p class = "- topic/p p" data-ofbid = "d165658e156__20250519091523" > 使用 < a class = "- topic/xref xref" href = "../advanced/scons-commands.html#scons-commands__id5" > scons< / a >
命令进行编译。< / p > < div class = "- topic/p p" data-ofbid = "d165658e162__20250519091523" > 编译成功的结果输出示例如下:< pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "id__codeblock_dqy_qlk_xdc" data-ofbid = "id__codeblock_dqy_qlk_xdc" > Imagefile is generated:
luban-lite/output/d21x_demo100-nand_rt-thread_helloworld/images/d21x_demo100_nand_page_< span class = "hl-number" > 2< / span > k_block_< span class = "hl-number" > 128< / span > k_v1.< span class = "hl-number" > 0.0< / span > .img< / pre > < / div > < p class = "- topic/p p" data-ofbid = "d165658e166__20250519091523" > 编译后固件名称为
2025-04-23 17:54:31 +08:00
< span class = "+ topic/ph sw-d/filepath ph filepath" > d21x_demo100_nand_page_2k_block_128k_v1.0.0.img< / span > < / p > < ul class = "- topic/ul ul" id = "id__ul_ngz_q5h_rdc" data-ofbid = "id__ul_ngz_q5h_rdc" >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d165658e172__20250519091523" > 使用 < a class = "- topic/xref xref" href = "../advanced/scons-commands.html#scons-commands__section_wwc_nnh_rdc" > scons
2025-04-23 17:54:31 +08:00
--verbose< / a > 命令打印详细的编译信息。< / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d165658e179__20250519091523" >
< p class = "- topic/p p" data-ofbid = "d165658e181__20250519091523" > 使用 < a class = "- topic/xref xref" href = "../advanced/scons-commands.html#scons-commands__section_u4k_zqh_rdc" > scons
2025-01-23 16:37:00 +08:00
--clean< / a > 命令清理当前工程。< / p >
2025-04-23 17:54:31 +08:00
< / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d165658e189__20250519091523" >
< div class = "- topic/p p" data-ofbid = "d165658e191__20250519091523" > 使用 < span class = "+ topic/keyword sw-d/cmdname keyword cmdname" > ls< / span >
2025-04-23 17:54:31 +08:00
编译生成的目标文件:< pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "id__pre_fr4_vxv_rcc" data-ofbid = "id__pre_fr4_vxv_rcc" > ls d21x_demo100-nand_rt-thread_helloworld/images/d21x_demo100_nand_page_< span class = "hl-number" > 2< / span > k_block_< span class = "hl-number" > 128< / span > k_v1.< span class = "hl-number" > 0.0< / span > .img/d21x.elf< / pre > < / div >
< / li >
< / ul > < / div >
< / li >
< / ol > < / div >
< / section >
< section class = "- topic/section section" id = "id__section_hvp_2lp_wcc" data-ofbid = "id__section_hvp_2lp_wcc" > < h2 class = "- topic/title title sectiontitle" > OneStep< / h2 >
2025-07-22 11:15:46 +08:00
< p class = "- topic/p p" data-ofbid = "d165658e209__20250519091523" > OneStep 是 ArtInChip 对 SCons 工具二次封装的总称,在基础命令上开发了一组更高效和方便的快捷命令, 以实现任意目录、一步即达的目的。在 CMD
2025-01-23 16:37:00 +08:00
或者 ENV 窗口启动后, OneStep 命令已经生效,可以从任意目录执行命令。关于 OneStep 命令的详细描述,可查看 < a class = "- topic/xref xref" href = "../advanced/onestep_command_ref.html" > OneStep 命令参考指南< / a > 。< / p >
2025-07-22 11:15:46 +08:00
< figure class = "- topic/fig fig fignone" data-ofbid = "d165658e216__20250519091523" >
2025-04-23 17:54:31 +08:00
< br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "id__image_ir4_vxv_rcc" src = "../../../images/env/win_onestep1.png" width = "480" alt = "win_onestep1" / > < / div > < br / >
< / figure >
< / section >
< section class = "- topic/section section" id = "id__section_ajf_pkt_4dc" data-ofbid = "id__section_ajf_pkt_4dc" > < h2 class = "- topic/title title sectiontitle" > 批处理文件< / h2 >
2025-01-23 16:37:00 +08:00
2025-07-22 11:15:46 +08:00
< div class = "- topic/p p" data-ofbid = "d165658e231__20250519091523" > SDK
2025-04-23 17:54:31 +08:00
根目录包含两个批处理文件,实现命令行的使用,推荐使用
win_env.bat, 如下所示: < ul class = "- topic/ul ul" id = "id__ul_uty_1tq_3dc" data-ofbid = "id__ul_uty_1tq_3dc" >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d165658e251__20250519091523" >
2025-01-23 16:37:00 +08:00
< div class = "- topic/div div section" id = "id__env" > < strong class = "+ topic/ph hi-d/b ph b" > ENV 运行环境< / strong >
2025-07-22 11:15:46 +08:00
< p class = "- topic/p p" data-ofbid = "d165658e257__20250519091523" > 直接双击 < span class = "+ topic/ph sw-d/filepath ph filepath" > luban-lite/win_env.bat< / span > 打开 Windows 专有的 env
命令行工具,后面所有命令都在该命令行工具中进行操作。< / p > < p class = "- topic/p p" data-ofbid = "d165658e264__20250519091523" > ENV 是 RT-Thread 的原生工具,是 SDK
包中集成了编译所需要使用的所有的工具的一种使用方式。< / p > < p class = "- topic/p p" data-ofbid = "d165658e272__20250519091523" > ENV
运行环境中可以使用 scons --pkg-update
命令下载在线选中的三方包的源码。< / p > < figure class = "- topic/fig fig fignone" id = "id__fig_ax1_btq_3dc" data-ofbid = "id__fig_ax1_btq_3dc" >
2025-04-23 17:54:31 +08:00
< br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "id__image_zq4_vxv_rcc" src = "../../../images/env/lbl_win_env2.png" alt = "lbl_win_env2" / > < / div > < br / >
< / figure >
2025-01-23 16:37:00 +08:00
< / div >
2025-04-23 17:54:31 +08:00
< / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d165658e291__20250519091523" >
2025-01-23 16:37:00 +08:00
< div class = "- topic/div div section" id = "id__cmd" > < strong class = "+ topic/ph hi-d/b ph b" > CMD 运行环境< / strong >
2025-07-22 11:15:46 +08:00
< p class = "- topic/p p" data-ofbid = "d165658e297__20250519091523" > 直接双击 < span class = "+ topic/ph sw-d/filepath ph filepath" > luban-lite/win_cmd.bat< / span > 打开 Windows 的 CMD
2025-04-23 17:54:31 +08:00
命令行工具,后面所有命令的使用和 ENV 相同。< / p > < figure class = "- topic/fig fig fignone" id = "id__fig_gqd_btq_3dc" data-ofbid = "id__fig_gqd_btq_3dc" >
< br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "id__image_ar4_vxv_rcc" src = "../../../images/env/lbl_win_cmd2.png" alt = "lbl_win_cmd2" / > < / div > < br / >
2025-07-22 11:15:46 +08:00
< / figure > < p class = "- topic/p p" data-ofbid = "d165658e310__20250519091523" > CMD 是 Windows 的使用环境,除了 SDK
2025-01-23 16:37:00 +08:00
的命令外,还可以使用系统自己安装的工具的命令,因此功能更强大。< / p > < / div >
2025-04-23 17:54:31 +08:00
< / li >
< / ul > < / div >
< / section >
< / div >
< / article > < / main > < / div >
2025-01-23 16:37:00 +08:00
< / div >
< nav role = "navigation" id = "wh_topic_toc" aria-label = "On this page" class = "col-lg-2 d-none d-lg-block navbar d-print-none" >
< div id = "wh_topic_toc_content" >
< div class = " wh_topic_toc " > < div class = "wh_topic_label" > 在本页上< / div > < ul > < li class = "section-item" > < div class = "section-title" > < a href = "#id__section_vkn_hlp_wcc" data-tocid = "id__section_vkn_hlp_wcc" > 常规编译< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#id__section_hvp_2lp_wcc" data-tocid = "id__section_hvp_2lp_wcc" > OneStep< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#id__section_ajf_pkt_4dc" data-tocid = "id__section_ajf_pkt_4dc" > 批处理文件< / a > < / div > < / li > < / ul > < / div >
< / div >
< / nav >
< / div >
< / div >
< / div >
< footer class = "navbar navbar-default wh_footer" >
< div class = " footer-container mx-auto " >
< title > footer def< / title >
2025-04-23 17:54:31 +08:00
< style >
2025-01-23 16:37:00 +08:00
.p1 {
font-family: FangZhengShuSong, Times, serif;
}
.p2 {
font-family: Arial, Helvetica, sans-serif;
}
.p3 {
font-family: "Lucida Console", "Courier New", monospace;
}
2025-04-23 17:54:31 +08:00
< / style >
2025-01-23 16:37:00 +08:00
< div class = "webhelp.fragment.footer" >
2025-04-23 17:54:31 +08:00
< p class = "p1" > Copyright © 2019-2025 广东匠芯创科技有限公司. All rights reserved.< / p >
< / div >
< div >
2025-01-23 16:37:00 +08:00
< div class = "generation_time" >
2025-07-22 11:15:46 +08:00
Update Time: 2025-05-19
2025-01-23 16:37:00 +08:00
< / div >
2025-04-23 17:54:31 +08:00
< / div >
2025-01-23 16:37:00 +08:00
< / div >
< / footer >
< div id = "go2top" class = "d-print-none" >
< span class = "oxy-icon oxy-icon-up" > < / span >
< / div >
< div id = "modal_img_large" class = "modal" >
< span class = "close oxy-icon oxy-icon-remove" > < / span >
< div id = "modal_img_container" > < / div >
< div id = "caption" > < / div >
< / div >
< script src = "${pd}/publishing/publishing-styles-AIC-template/js/custom.js" defer = "defer" > < / script >
< / body >
< / html >