build.py works when called from Shell but not when called from Eclipse

Viewed 30

Operating system is Kali Linux and I am using Eclipse for embedded C/C++.

When I try to build the project which calls python3 build.py -develop it looks as if Eclipse cannot find cmake and mbed-tools. Below is the output in the console window:

python3 build.py -develop 
sh: 1: mbed-tools: not found
sh: 1: cmake: not found
sh: 1: cmake: not found
Updating mbed tools config...
Updating cmake config...
Building...

06:08:21 Build Finished. 0 errors, 0 warnings. (took 1s.71ms)

However it hasn't actually built anything.

The path for cmake and mbed-tools is added to the $PATH variable. And I can successfully build the project if I manually type in the build command into a shell window.

I am stumped as to why it doesn't work when called from Eclipse.

0 Answers
Related