4 years ago.

Problem with building jerryscript on mbed os 5

I tried the tutorial to build jerryscript to an mbed os 5 target.

In the Setting up section of the tutorial, you can see:

<---- Setting up

The following instructions guide you through the process of setting up an environment where you can run JavaScript on mbed OS:

1. Open a terminal and navigate to the folder where you cloned the JerryScript repository. 2. Run cd targets / mbedos5. 3. Run make getlibs - this will pull in mbed OS and all related repositories. 4. Run pip install -r ./tools/requirements.txt - this will install Python modules required by the build scripts. -----> The problem is that when I run the 'make getlibs' command, the following error message appears.

<---- [mbed] ERROR: Could not find mbed program in current path "/ home / parallels / jerryscript / targets / mbedos5". [mbed] ERROR: Change the current directory to a valid mbed program or use the 'global' option to set global configuration.

mbed config root. [mbed] ERROR: Could not find mbed program in current path "/ home / parallels / jerryscript / targets / mbedos5". [mbed] ERROR: Change the current directory to a valid mbed program or use the 'global' option to set global configuration.

make: * [.mbed] Error 255 ----->

So I opened the Makefile and looked at the getlibs configuration section.

<---- getlibs: .mbed

.mbed: mbed config root. mbed toolchain GCC_ARM mbed target $ (BOARD) mbed deploy ----->

I would like to know what to do if the above error occurs.

Thanks in advance

ps. I tried the tutorial below but I got the same error https://developer.mbed.org/javascript-on-mbed/

<-- [01:38:38] Error: Command `make getlibs` exited with code 2 at ChildProcess.handleSubShellExit (/home/parallels/mbed-js-example/node_modules/gulp-run/command.js:166:13) at ChildProcess.g (events.js:291:16) at emitTwo (events.js:106:13) at ChildProcess.emit (events.js:191:7) at Process.ChildProcess.handle.onexit (internal/childprocess.js:215:12) $ make getlibs [mbed] ERROR: Could not find mbed program in current path "/home/parallels/mbed-js-example/build/jerryscript/targets/mbedos5". [mbed] ERROR: Change the current directory to a valid mbed program or use the 'global' option to set global configuration.

mbed config root . [mbed] ERROR: Could not find mbed program in current path "/home/parallels/mbed-js-example/build/jerryscript/targets/mbedos5". [mbed] ERROR: Change the current directory to a valid mbed program or use the 'global' option to set global configuration.

make: * [.mbed] Error 255

->

Question relating to:

1 Answer

3 years, 2 months ago.

To mitigate these issues we have a Gulp based toolchain now. Follow the instructions at https://github.com/ARMmbed/mbed-js-example to get started.