问题
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:
- 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.
- there is a bug in the mingw Scilab atom. I have contacted the maintainers Antoine Elias and Allan Cornet for that possibility.
- 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.
回答1:
Solution: Tested on Scilab 6.0.1, Windows 7
- first of all, download the Equation Solution compiler
gcc-6.2.0
package 32 or 64 - install it. It will just copy
gcc
and relatedbinuntils
inC:/Users/yourUserId
. - Then start Scilab and install the MinGW Atoms module.
- Then logout/login your Windows session. Restart Scilab. When loading, MinGW module takes some time (maybe some compilations), but does not complain.
- Then the dynamic link example of
ilib_for_link
runs fine !
Explanations: The Equation Solution package was developed by Jenn-Ching Luo, the MinGW Atoms package was developed over this particular distribution of MinGW.
来源:https://stackoverflow.com/questions/55063203/atomsinstall-cant-find-the-mingw-compiler-installed-through-chocolatey