ESP8266_RTOS_SDK compile fail

sunweili50
Posts: 8
Joined: Sun Oct 23, 2016 9:25 am

ESP8266_RTOS_SDK compile fail

Postby sunweili50 » Sun Oct 23, 2016 10:37 am

hi, i'm using the ESP8266_RTOS_SDK, when i try to compile the example using the official VM, there alwasy alwasy reprot the "xtensa-lx106-gcc: Comamnd not found", but my PATH is ok,what's the problem?

我在官方给的虚拟机里面尝试编译RTOS_SDK的例程,总是提示xtensa-lx106-gcc: command not foun,是什么情况,环境变量都是OK的? 求助

pratik

Re: ESP8266_RTOS_SDK compile fail

Postby pratik » Mon Oct 24, 2016 7:30 pm

Start the virtual machine, and open the terminal using ctrl+alt+T and let me know the result of these 2 commands:

Code: Select all

echo $PATH

and

Code: Select all

xtensa-lx106-elf-gcc -v

sunweili50
Posts: 8
Joined: Sun Oct 23, 2016 9:25 am

Re: ESP8266_RTOS_SDK compile fail

Postby sunweili50 » Sun Nov 06, 2016 7:40 pm

thanks ,and i find the problem is that i compile the sampile using:

Code: Select all

sudo ./gen_misc.sh

but the PATH is diffrent in sudo mode and the xtnesa path is lost, so i solve the problem using follow commands:

Code: Select all

sudo -s
./gen_misc.sh

pratik

Re: ESP8266_RTOS_SDK compile fail

Postby pratik » Sun Nov 27, 2016 1:25 pm

Oh! If it is denying permission if you don't use sudo... alternative is to use:

Code: Select all

cd <project dir>
chmod +x gen_misc.sh

This will let you run the script with just

Code: Select all

./gen_misc.sh

Who is online

Users browsing this forum: No registered users and 58 guests