Resolve mips-openwrt-linux-uclibc-g++.bin:environment variable "Staging_dir" not defined__linux

Source: Internet
Author: User
Tags gcov

After OpenWrt compiles the tool chain and SDK, you may have the following error:

zchx@zchx-system-product-name:~$ mips-openwrt-linux-g++ mips-openwrt-linux-uclibc-g++.bin:environment Variable " Staging_dir "Not defined


The solution is simple, that is, compile the SDK also choose to compile, in the compiled SDK, including the tool chain. The tool chain here will not be an error. Good time.
Zchx@zchx-system-product-name:~/openwrt-use/openwrt-sdk-atheros-for-linux-i686-gcc-4.3.3+cs_uclibc-0.9.30.1/ staging_dir/toolchain-mips_gcc-4.3.3+cs_uclibc-0.9.30.1/bin$ ls
LDD Mips-openwrt-linux-uclibc-addr2line
Mips-openwrt-linux-addr2line Mips-openwrt-linux-uclibc-ar
Mips-openwrt-linux-ar Mips-openwrt-linux-uclibc-as
Mips-openwrt-linux-as mips-openwrt-linux-uclibc-c++
Mips-openwrt-linux-c++ mips-openwrt-linux-uclibc-c++filt
Mips-openwrt-linux-c++filt Mips-openwrt-linux-uclibc-cpp
Mips-openwrt-linux-cpp mips-openwrt-linux-uclibc-g++
mips-openwrt-linux-g++ MIPS-OPENWRT-LINUX-UCLIBC-GCC
MIPS-OPENWRT-LINUX-GCC mips-openwrt-linux-uclibc-gcc-4.3.3
mips-openwrt-linux-gcc-4.3.3 Mips-openwrt-linux-uclibc-gccbug
Mips-openwrt-linux-gccbug Mips-openwrt-linux-uclibc-gcov
Mips-openwrt-linux-gcov mips-openwrt-linux-uclibc-gprof
Mips-openwrt-linux-gprof Mips-openwrt-linux-uclibc-ld
Mips-openwrt-linux-ld mips-openwrt-linux-uclibc-nm
MIPS-OPENWRT-LINUX-NM mips-openwrt-linux-uclibc-objcopy
Mips-openwrt-linux-objcopy Mips-openwrt-linux-uclibc-objdump
Mips-openwrt-linux-objdump Mips-openwrt-linux-uclibc-ranlib
Mips-openwrt-linux-ranlib mips-openwrt-linux-uclibc-readelf
Mips-openwrt-linux-readelf mips-openwrt-linux-uclibc-size
Mips-openwrt-linux-size mips-openwrt-linux-uclibc-strings
Mips-openwrt-linux-strings Mips-openwrt-linux-uclibc-strip
Mips-openwrt-linux-strip
Zchx@zchx-system-product-name:~/openwrt-use/openwrt-sdk-atheros-for-linux-i686-gcc-4.3.3+cs_uclibc-0.9.30.1/ staging_dir/toolchain-mips_gcc-4.3.3+cs_uclibc-0.9.30.1/bin$./mips-openwrt-linux-g++

Then add the Staging_dir to the environment variable.

Export staging_dir=~/downloads/openwrt-sdk-atheros-for-linux-i686-gcc-4.3.3+cs_uclibc-0.9.30.1/staging_dir/ Toolchain-mips_gcc-4.3.3+cs_uclibc-0.9.30.1/bin: $STAGING _dir

Do not use sudo to log in when using Eclipse. Direct Ordinary User Login

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.