Atoms Arduino installation fails

Dears, my name is Pablo, I already installed new version Scilab 2023.0.0 on Windows 11.
Serial Communication 0.5 Atoms packages is already installed fine but Android installation fails.
Please can you help me to do it? Thanks.

Let me share console log:

Building macros...
-- Creation of [arduinolib] (Macros) --
genlib: Processing file: ANALOG_READ_SB.sci
genlib: Processing file: ANALOG_WRITE_SB.sci
genlib: Processing file: ARDUINO_ANALOG_READ.sci
genlib: Processing file: ARDUINO_ANALOG_READ_sim.sci
genlib: Processing file: ARDUINO_ANALOG_WRITE.sci
genlib: Processing file: ARDUINO_ANALOG_WRITE_sim.sci
genlib: Processing file: ARDUINO_DCMOTOR.sci
genlib: Processing file: ARDUINO_DCMOTOR_sim.sci
genlib: Processing file: ARDUINO_DIGITAL_READ.sci
genlib: Processing file: ARDUINO_DIGITAL_READ_sim.sci
genlib: Processing file: ARDUINO_DIGITAL_WRITE.sci
genlib: Processing file: ARDUINO_DIG_WRITE_sim.sci
genlib: Processing file: ARDUINO_ENCODER.sci
genlib: Processing file: ARDUINO_ENCODER_sim.sci
genlib: Processing file: ARDUINO_INTERRUPT.sci
genlib: Processing file: ARDUINO_INTERRUPT_sim.sci
genlib: Processing file: ARDUINO_MPU6050_READ.sci
genlib: Processing file: ARDUINO_MPU6050_sim.sci
genlib: Processing file: ARDUINO_PMODHB5.sci
genlib: Processing file: ARDUINO_PMODHB5_WRITE_sim.sci
genlib: Processing file: ARDUINO_SCOPE.sci
genlib: Processing file: ARDUINO_SERVO_READ.sci
genlib: Processing file: ARDUINO_SERVO_READ_sim.sci
genlib: Processing file: ARDUINO_SERVO_WRITE.sci
genlib: Processing file: ARDUINO_SERVO_WRITE_sim.sci
genlib: Processing file: ARDUINO_SETUP.sci
genlib: Processing file: ARDUINO_STEPPER.sci
genlib: Processing file: ARDUINO_STEPPER_sim.sci
genlib: Processing file: ARDUINO_WRITE.sci
genlib: Processing file: ARDUINO_WRITE_sim.sci
genlib: Processing file: ARDUINO_post_simulate.sci
genlib: Processing file: ARDUINO_pre_simulate.sci
genlib: Processing file: DCMOTOR_SB.sci
genlib: Processing file: DIGITAL_READ_SB.sci
genlib: Processing file: DIGITAL_WRITE_SB.sci
genlib: Processing file: ENCODER_SB.sci
genlib: Processing file: INTERRUPT_SB.sci
genlib: Processing file: MPU6050_READ_SB.sci
genlib: Processing file: SERVO_READ_SB.sci
genlib: Processing file: SERVO_WRITE_SB.sci
genlib: Processing file: STEPPER_SB.sci
genlib: Processing file: TIME_SAMPLE.sci
genlib: Processing file: close_serial.sci
genlib: Processing file: cmd_analog_in.sci
genlib: Processing file: cmd_analog_in_volt.sci
genlib: Processing file: cmd_analog_out.sci
genlib: Processing file: cmd_analog_out_volt.sci
genlib: Processing file: cmd_arduino_a_control.sci
genlib: Processing file: cmd_arduino_d_control.sci
genlib: Processing file: cmd_arduino_meter.sci
genlib: Processing file: cmd_dcmotor_release.sci
genlib: Processing file: cmd_dcmotor_run.sci
genlib: Processing file: cmd_dcmotor_setup.sci
genlib: Processing file: cmd_digital_in.sci
genlib: Processing file: cmd_digital_out.sci
genlib: Processing file: cmd_encoder_init.sci
genlib: Processing file: cmd_servo_attach.sci
genlib: Processing file: cmd_servo_detach.sci
genlib: Processing file: cmd_servo_move.sci
genlib: Processing file: getArduinoVersion.sci
genlib: Processing file: init_arduino.sci
genlib: Processing file: nicescope.sci
genlib: Processing file: open_serial.sci
genlib: Processing file: post_xcos_simulate.sci
genlib: Processing file: pre_xcos_simulate.sci
Building blocks...
atomsInstall: Error while building the toolbox 'C:\Users\my pc\AppData\Roaming\Scilab\scilab-2023.0.0\atoms\x64\arduino\1.8'.

Hello,

Until the package will be officially rebuilt (arduino package has compiled C/C++ gateways) you will be to install it only if you have a C/C++ compiler on your system. So, please do the following:

  • Uninstall the arduino package and quit Scilab.
  • Install the minGW package: please read carefully the instructions at https://atoms.scilab.org/toolboxes/mingw/: you have to install first the provided gcc package, then logoff/login your windows session, then restart Scilab and finally at the end type atomsInstall mingw. Then restart Scilab: at first load the minGW package will do some library relink stuff so be patient.
  • Install the arduino package with atomsInstall arduino. This will be successfull if the above install of mingw has been done correctly.

S.

Thanks, I followed your recomendation but doesent work.
The gcc packeges installed fine from https://atoms.scilab.org/toolboxes/mingw/10.3.0/files/gcc-10.3.0-64.exe

After that logoff/logon Windows then execute install on Scilab but it shows two warning messages:

Startup execution:
loading initial environment

Starting the Serial Toolbox
Load macros
Load help

→ atomsInstall mingw
Building macros…
– Creation of [mingwlib] (Macros) –
genlib: Processing file: ilib_language.sci
genlib: Processing file: mgw_SetEnv.sci
genlib: Processing file: mgw_buildLib.sci
genlib: Processing file: mgw_cleanLibsImported.sci
genlib: Processing file: mgw_convertLibrary.sci
genlib: Processing file: mgw_convertScilabLibs.sci
genlib: Processing file: mgw_detectCompiler.sci
genlib: Processing file: mgw_detectEquationPkg.sci
genlib: Processing file: mgw_getArchBinPath.sci
genlib: Processing file: mgw_getBinPath.sci
genlib: Processing file: mgw_getEquationPkgPath.sci
genlib: Processing file: mgw_getIncludePath.sci
genlib: Processing file: mgw_getLibPath.sci
genlib: Processing file: mgw_getMachineDll.sci
genlib: Processing file: mgw_getMinGwRootPath.sci
genlib: Processing file: mgw_getPrefixPkgName.sci
genlib: Processing file: mgw_getRootPath.sci
genlib: Processing file: mgw_getScilabLibPath.sci
genlib: Processing file: mgw_getSymbolsDll.sci
– Creation of [dynamic_linkwindowslib] (Macros) –
genlib: Processing file: dlwCompile.sci
genlib: Processing file: dlwDllInfo.sci
genlib: Processing file: dlwFindMsVcCompiler.sci
genlib: Processing file: dlwForceRebuild.sci
genlib: Processing file: dlwGenerateCleaner.sci
genlib: Processing file: dlwGenerateMakefile.sci
genlib: Processing file: dlwGetDefltMakefileName.sci
genlib: Processing file: dlwGetLibrariesPath.sci
genlib: Processing file: dlwGetMakefileCmdCleaner.sci
genlib: Processing file: dlwGetMakefileExt.sci
genlib: Processing file: dlwGetParamsIlibCompil.sci
genlib: Processing file: dlwGetScilabIncludes.sci
genlib: Processing file: dlwGetScilabLibraries.sci
genlib: Processing file: dlwGetXcosIncludes.sci
genlib: Processing file: dlwGetXcosLibraries.sci
genlib: Processing file: dlwHaveCompiler.sci
genlib: Processing file: dlwMake.sci
Building help…

Building the master document:
C:\Users\my pc\AppData\Roaming\Scilab\scilab-2023.0.0\atoms\x64\mingw\10.3.0\help\en_US

Building the manual file [javaHelp] in C:\Users\my pc\AppData\Roaming\Scilab\scilab-2023.0.0\atoms\x64\mingw\10.3.0\help\en_US.
WARNING: tbx_build_loader: tbx_build_loader(name, path) is obsolete. Please use tbx_build_loader(path) instead.
Generating loader.sce…
Generating unloader.sce…
WARNING: tbx_build_cleaner: tbx_build_cleaner(name, path) is obsolete. Please use tbx_build_cleaner(path) instead.
Generating cleaner.sce…
ans =

“mingw” “10.3.0” “user” “SCIHOME\atoms\x64\mingw\10.3.0” “I”

After that I restarted Scilab, then it shows other warining:

Startup execution:
loading initial environment

Starting the Serial Toolbox
Load macros
Load help

Mingw Compiler support for Scilab
Load macros
WARNING: MinGW Compiler not detected.
Load help

Anyway I try to install Arduino pack, but failed:

→ atomsInstall arduino
Building macros…
– Creation of [arduinolib] (Macros) –
genlib: Processing file: ANALOG_READ_SB.sci
genlib: Processing file: ANALOG_WRITE_SB.sci
genlib: Processing file: ARDUINO_ANALOG_READ.sci
genlib: Processing file: ARDUINO_ANALOG_READ_sim.sci
genlib: Processing file: ARDUINO_ANALOG_WRITE.sci
genlib: Processing file: ARDUINO_ANALOG_WRITE_sim.sci
genlib: Processing file: ARDUINO_DCMOTOR.sci
genlib: Processing file: ARDUINO_DCMOTOR_sim.sci
genlib: Processing file: ARDUINO_DIGITAL_READ.sci
genlib: Processing file: ARDUINO_DIGITAL_READ_sim.sci
genlib: Processing file: ARDUINO_DIGITAL_WRITE.sci
genlib: Processing file: ARDUINO_DIG_WRITE_sim.sci
genlib: Processing file: ARDUINO_ENCODER.sci
genlib: Processing file: ARDUINO_ENCODER_sim.sci
genlib: Processing file: ARDUINO_INTERRUPT.sci
genlib: Processing file: ARDUINO_INTERRUPT_sim.sci
genlib: Processing file: ARDUINO_MPU6050_READ.sci
genlib: Processing file: ARDUINO_MPU6050_sim.sci
genlib: Processing file: ARDUINO_PMODHB5.sci
genlib: Processing file: ARDUINO_PMODHB5_WRITE_sim.sci
genlib: Processing file: ARDUINO_SCOPE.sci
genlib: Processing file: ARDUINO_SERVO_READ.sci
genlib: Processing file: ARDUINO_SERVO_READ_sim.sci
genlib: Processing file: ARDUINO_SERVO_WRITE.sci
genlib: Processing file: ARDUINO_SERVO_WRITE_sim.sci
genlib: Processing file: ARDUINO_SETUP.sci
genlib: Processing file: ARDUINO_STEPPER.sci
genlib: Processing file: ARDUINO_STEPPER_sim.sci
genlib: Processing file: ARDUINO_WRITE.sci
genlib: Processing file: ARDUINO_WRITE_sim.sci
genlib: Processing file: ARDUINO_post_simulate.sci
genlib: Processing file: ARDUINO_pre_simulate.sci
genlib: Processing file: DCMOTOR_SB.sci
genlib: Processing file: DIGITAL_READ_SB.sci
genlib: Processing file: DIGITAL_WRITE_SB.sci
genlib: Processing file: ENCODER_SB.sci
genlib: Processing file: INTERRUPT_SB.sci
genlib: Processing file: MPU6050_READ_SB.sci
genlib: Processing file: SERVO_READ_SB.sci
genlib: Processing file: SERVO_WRITE_SB.sci
genlib: Processing file: STEPPER_SB.sci
genlib: Processing file: TIME_SAMPLE.sci
genlib: Processing file: close_serial.sci
genlib: Processing file: cmd_analog_in.sci
genlib: Processing file: cmd_analog_in_volt.sci
genlib: Processing file: cmd_analog_out.sci
genlib: Processing file: cmd_analog_out_volt.sci
genlib: Processing file: cmd_arduino_a_control.sci
genlib: Processing file: cmd_arduino_d_control.sci
genlib: Processing file: cmd_arduino_meter.sci
genlib: Processing file: cmd_dcmotor_release.sci
genlib: Processing file: cmd_dcmotor_run.sci
genlib: Processing file: cmd_dcmotor_setup.sci
genlib: Processing file: cmd_digital_in.sci
genlib: Processing file: cmd_digital_out.sci
genlib: Processing file: cmd_encoder_init.sci
genlib: Processing file: cmd_servo_attach.sci
genlib: Processing file: cmd_servo_detach.sci
genlib: Processing file: cmd_servo_move.sci
genlib: Processing file: getArduinoVersion.sci
genlib: Processing file: init_arduino.sci
genlib: Processing file: nicescope.sci
genlib: Processing file: open_serial.sci
genlib: Processing file: post_xcos_simulate.sci
genlib: Processing file: pre_xcos_simulate.sci
Building blocks…
atomsInstall: Error while building the toolbox ‘C:\Users\my pc\AppData\Roaming\Scilab\scilab-2023.0.0\atoms\x64\arduino\1.8’.
at line 52 of function atomsError ( C:\Program Files\scilab-2023.0.0\modules\atoms\macros\atoms_internals\atomsError.sci line 66 )
at line 403 of function atomsInstall ( C:\Program Files\scilab-2023.0.0\modules\atoms\macros\atomsInstall.sci line 419 )

Thanks for your help.

Can you open a command window (cmd) and check that EQ_LIBRARY_PATH is correctly defined (it should) ? If this is not the case please define it system-wide (see
https://www.aomeitech.com/windows-tips/set-windows-11-environment-variables.html. Its value should be something like c:\program files\gcc\x86_64-w64-mingw32\lib (check the actual path where GCC was installed). May be a login/logoff will be necessary (or a system restart).

S.

Thanks, you are right!
After set EQ_LIBRARY_PATH=C:\Users\my pc\gcc\x86_64-w64-mingw32\lib (as my PC location) the minGW works, then I can installed Arduino but also it shows warning, follow Scilab console log:

Startup execution:
loading initial environment

Starting the Serial Toolbox
Load macros
Load help

Mingw Compiler support for Scilab
Load macros
Converting Libraries.
Build libblasplus.a
Build liblibf2c.a
Build libcore.a
Build libcore_f.a
Build liblapack.a
Build liboutput_stream.a
Build libdynamic_link.a
Build libinteger.a
Build liboptimization_f.a
Build liblibjvm.a
Build libscilocalization.a
Build liblinpack_f.a
Build libcall_scilab.a
Build libtime.a
Build libapi_scilab.a
Build liblibintl.a
Build libast.a
Build libfileio.a
Build libio.a
Build libstring.a
Build libthreads.a
Build libsciconsole.a
Build libscilab_windows.a
Build liblibmex.a
Build libscicos.a
Build libscicos-cli.a
Build libscicos_f.a
Build libscicos_blocks.a
Build libscicos_blocks-cli.a
Build libscicos_blocks_f.a
Load help

Building macros…
– Creation of [arduinolib] (Macros) –
genlib: Processing file: ANALOG_READ_SB.sci
genlib: Processing file: ANALOG_WRITE_SB.sci
genlib: Processing file: ARDUINO_ANALOG_READ.sci
genlib: Processing file: ARDUINO_ANALOG_READ_sim.sci
genlib: Processing file: ARDUINO_ANALOG_WRITE.sci
genlib: Processing file: ARDUINO_ANALOG_WRITE_sim.sci
genlib: Processing file: ARDUINO_DCMOTOR.sci
genlib: Processing file: ARDUINO_DCMOTOR_sim.sci
genlib: Processing file: ARDUINO_DIGITAL_READ.sci
genlib: Processing file: ARDUINO_DIGITAL_READ_sim.sci
genlib: Processing file: ARDUINO_DIGITAL_WRITE.sci
genlib: Processing file: ARDUINO_DIG_WRITE_sim.sci
genlib: Processing file: ARDUINO_ENCODER.sci
genlib: Processing file: ARDUINO_ENCODER_sim.sci
genlib: Processing file: ARDUINO_INTERRUPT.sci
genlib: Processing file: ARDUINO_INTERRUPT_sim.sci
genlib: Processing file: ARDUINO_MPU6050_READ.sci
genlib: Processing file: ARDUINO_MPU6050_sim.sci
genlib: Processing file: ARDUINO_PMODHB5.sci
genlib: Processing file: ARDUINO_PMODHB5_WRITE_sim.sci
genlib: Processing file: ARDUINO_SCOPE.sci
genlib: Processing file: ARDUINO_SERVO_READ.sci
genlib: Processing file: ARDUINO_SERVO_READ_sim.sci
genlib: Processing file: ARDUINO_SERVO_WRITE.sci
genlib: Processing file: ARDUINO_SERVO_WRITE_sim.sci
genlib: Processing file: ARDUINO_SETUP.sci
genlib: Processing file: ARDUINO_STEPPER.sci
genlib: Processing file: ARDUINO_STEPPER_sim.sci
genlib: Processing file: ARDUINO_WRITE.sci
genlib: Processing file: ARDUINO_WRITE_sim.sci
genlib: Processing file: ARDUINO_post_simulate.sci
genlib: Processing file: ARDUINO_pre_simulate.sci
genlib: Processing file: DCMOTOR_SB.sci
genlib: Processing file: DIGITAL_READ_SB.sci
genlib: Processing file: DIGITAL_WRITE_SB.sci
genlib: Processing file: ENCODER_SB.sci
genlib: Processing file: INTERRUPT_SB.sci
genlib: Processing file: MPU6050_READ_SB.sci
genlib: Processing file: SERVO_READ_SB.sci
genlib: Processing file: SERVO_WRITE_SB.sci
genlib: Processing file: STEPPER_SB.sci
genlib: Processing file: TIME_SAMPLE.sci
genlib: Processing file: close_serial.sci
genlib: Processing file: cmd_analog_in.sci
genlib: Processing file: cmd_analog_in_volt.sci
genlib: Processing file: cmd_analog_out.sci
genlib: Processing file: cmd_analog_out_volt.sci
genlib: Processing file: cmd_arduino_a_control.sci
genlib: Processing file: cmd_arduino_d_control.sci
genlib: Processing file: cmd_arduino_meter.sci
genlib: Processing file: cmd_dcmotor_release.sci
genlib: Processing file: cmd_dcmotor_run.sci
genlib: Processing file: cmd_dcmotor_setup.sci
genlib: Processing file: cmd_digital_in.sci
genlib: Processing file: cmd_digital_out.sci
genlib: Processing file: cmd_encoder_init.sci
genlib: Processing file: cmd_servo_attach.sci
genlib: Processing file: cmd_servo_detach.sci
genlib: Processing file: cmd_servo_move.sci
genlib: Processing file: getArduinoVersion.sci
genlib: Processing file: init_arduino.sci
genlib: Processing file: nicescope.sci
genlib: Processing file: open_serial.sci
genlib: Processing file: post_xcos_simulate.sci
genlib: Processing file: pre_xcos_simulate.sci
Building blocks…
Building gateway…
Generate a gateway file
Generate a loader file
Generate a Makefile
Running the makefile
Compilation of main_win.obj
Compilation of serial_lib.obj
Compilation of serial_lib.obj
Compilation of serial_lib.obj
Building shared library (be patient)
Generate a cleaner file
Generating loader_gateway.sce…
Generating cleaner_gateway.sce…
Building help…

Building the master document:
C:\Users\my pc\AppData\Roaming\Scilab\scilab-2023.0.0\atoms\x64\arduino\1.8\help\en_US

Building the manual file [javaHelp] in C:\Users\my pc\AppData\Roaming\Scilab\scilab-2023.0.0\atoms\x64\arduino\1.8\help\en_US.
WARNING: tbx_build_loader: tbx_build_loader(name, path) is obsolete. Please use tbx_build_loader(path) instead.
Generating loader.sce…
Generating unloader.sce…
WARNING: tbx_build_cleaner: tbx_build_cleaner(name, path) is obsolete. Please use tbx_build_cleaner(path) instead.
Generating cleaner.sce…

But after restart Scilab, the console log doesnt show warning. The Arduino object shows on Xcos, later I will connect board to fast test.

Startup execution:
loading initial environment

Starting the Serial Toolbox
Load macros
Load help

Mingw Compiler support for Scilab
Load macros
Load help

Start Arduino 1.8
Load macros
Load help
Load gateways
Shared archive loaded.
Link done.
Load palette
Load demos

Thanks!!!

Glad that you finally did it. Normally this environment variable is set when the GCC package is installed, but it is not the first time that some users had to manually set it.

S.

Dear, I already connected Arduino board to Xcos environment, that works fine.
Scilab/Xcos is very good tool that I use during my classes at higher education institute to teach control systems.
Thanks a lot for your support.
Regards, Pablo.

Thanks Pablo for this testimonial !

S.

Hi, Scilab 2025.0.0 compatibility issues on windows10.
atomsInstall: Error while building the toolbox ‘C:\Users\c\AppData\Roaming\Scilab\scilab-2025.0.0\atoms\x64\arduino\1.9’.
Any ideas to fix it?

A new package is available, please call atomsSystemUpdate() and then try to install this toolbox again.

See: Scilab 2025.0.0 - Atoms Arduino installation fails (#2) · Issues · scilab / forge / arduino · GitLab