<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[使用TinaSDK编译helloWorld时报错arm-openwrt-linux-muslgnueabi-gcc.bin: fatal error: environment variable &#x27;STAGING_DIR&#x27; not defined compilation terminated.]]></title><description><![CDATA[<p dir="auto">在已经将Tina的SDK下载解压完成后，将交叉编译器的路径以及加入到全局环境变量中 （~/.bashrc  ，<br />
/etc/profile ， /etc/environment  ，/etc/bash.bashrc）都试了，也source的情况下。<br />
使用柚木pi-蜥蜴测试helloWorld时，出现错误arm-openwrt-linux-muslgnueabi-gcc.bin: fatal error: environment variable 'STAGING_DIR' not defined compilation terminated.<br />
将交叉编译器的路径赋值为'STAGING_DIR'后就能正常执行，但是这个'STAGING_DIR'只对当前终端有效，关闭之后再打开的新的终端输入arm-，然后按tab补全的时候不能补全，感觉像是环境变量失效了。</p>
]]></description><link>https://bbs.aw-ol.com/topic/3712/使用tinasdk编译helloworld时报错arm-openwrt-linux-muslgnueabi-gcc-bin-fatal-error-environment-variable-staging_dir-not-defined-compilation-terminated</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 06:31:41 GMT</lastBuildDate><atom:link href="https://bbs.aw-ol.com/topic/3712.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 16 Jun 2023 06:51:34 GMT</pubDate><ttl>60</ttl></channel></rss>