windowsmingwscilab

atomsInstall can't find the mingw compiler installed through chocolatey


Following this question, I'm not quite sure where the problem is so I add tags for all the components involved. I'm trying to use the MinGw compiler inside Scilab. There is a mingw atom which supposedly should be installed by

atomsInstall('mingw')

which returns empty and

atomsLoad('mingw');

which returns the error:

Mingw Compiler support for Scilab

Load macros

WARNING: MinGW Compiler not detected.

Load help

and the haveacompiler() returns false F, although I have the compiler installed through Chocolatey. What could be the problem:

  1. the compiler needs to be added to Windows environment variables or something like that? I suppose Chocolatey should take care of that by default. I have reflected this issue here on mingw chocolatey page.
  2. there is a bug in the mingw Scilab atom. I have contacted the maintainers Antoine Elias and Allan Cornet for that possibility.
  3. It is a mingw bug as some have sugested. I have shared this issue also here on the mingw mailing list.

P.S.1. I have reported a bug over here.

P.S.2. I have opened a new feature request over here.


Solution

  • Solution: Tested on Scilab 6.0.1, Windows 7

    1. first of all, download the Equation Solution compiler gcc-6.2.0 package 32 or 64
    2. install it. It will just copy gcc and related binuntils in C:/Users/yourUserId.
    3. Then start Scilab and install the MinGW Atoms module.
    4. Then logout/login your Windows session. Restart Scilab. When loading, MinGW module takes some time (maybe some compilations), but does not complain.
    5. Then the dynamic link example of ilib_for_link runs fine !

    enter image description here

    Explanations: The Equation Solution package was developed by Jenn-Ching Luo, the MinGW Atoms package was developed over this particular distribution of MinGW.