Scilab Home Page | Wiki | Bug Tracker | Forge | Mailing List Archives | Scilab Online Help | File Exchange
ATOMS : MinGw toolbox details
Login with GitLab

MinGw toolbox

Dynamic link with MinGW for Scilab on Windows
(7983 downloads for this version - 268035 downloads for all versions)
Details
Version
9.2.0
A more recent valid version with binaries for Scilab 6.1 exists: 10.3.0
Author
Allan CORNET
Owner Organization
Scilab Enterprises
Maintainers
Administrator ATOMS
Antoine ELIAS
Stéphane MOTTELET
Category
License
Creation Date
December 6, 2021
Source created on
Scilab 6.1.x
Binaries available on
Scilab 6.1.x:
Windows 64-bit Windows 32-bit Linux 64-bit Linux 32-bit macOS
Install command
--> atomsInstall("mingw")
Description
            MinGW Compiler support for Scilab 6.1.1 and more on Windows

You need to install MinGW package distributed by Equation Solution first
(subsequent versions of gcc should work as well):

Scilab 32 bits: http://www.equation.com/ftpdir/gcc/gcc-9.2.0-32.exe
Scilab 64 bits: http://www.equation.com/ftpdir/gcc/gcc-9.2.0-64.exe

Then logout/login your Windows session and finally install this toolbox. The
first time you load this toolbox Scilab will rebuild some gcc libraries. The
process may take a minute or more so please be patient.

                        
Files (2)
[141.50 kB]
OS-independent binary for Scilab 6.1.x

[55.47 kB]
Source code archive

News (0)
Comments (6)     Leave a comment 
Comment from Chris Lewis -- December 20, 2021, 04:11:05 AM    
I have not been able to get MinGW to find the gcc compiler.
When I start Scilab, I get the message: 

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

I've tried all sorts of things, but have now run gcc-9.2.0.exe, and added C:\MinGW\bin to 
the System Path.  I upgraded MinGW 8.3.0 to MinGW 9.2.0.  I unistalled Scilab and did a 
fresh install, loaded MinGW, exited and restarted Scilab but the above message didn't 
change.

How do I help MinGW 9.2.0 find the gcc compiler? There appears to be some assumed step in 
the above description that I do not know about.

Note I also have Microsoft Visual Studio Community 2019 and 2022 installed but MinGW can't

find the MS c compilers either.  I ran functions haveacompiler() and findmsvccompiler() but

both returned negative results ("F" and "unknown" respectively). 
configure_msvc() returns 
T??

Comment from Chris Lewis -- December 20, 2021, 05:00:38 AM    
I have not been able to get MinGW to find the gcc compiler.
When I start Scilab, I get the message: 

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

I've tried all sorts of things, but have now run gcc-9.2.0.exe, and added C:\MinGW\bin to 
the System Path.  I upgraded MinGW 8.3.0 to MinGW 9.2.0.  I unistalled Scilab and did a 
fresh install, loaded MinGW, exited and restarted Scilab but the above message didn't 
change.

How do I help MinGW 9.2.0 find the gcc compiler? There appears to be some assumed step in 
the above description that I do not know about.

Note I also have Microsoft Visual Studio Community 2019 and 2022 installed but MinGW can't

find the MS c compilers either.  I ran functions haveacompiler() and findmsvccompiler() but

both returned negative results ("F" and "unknown" respectively). 
configure_msvc() returns 
T??

Answer from Stéphane MOTTELET -- December 20, 2021, 09:03:13 AM    
Hi,

> I have not been able to get MinGW to find the gcc compiler.
> When I start Scilab, I get the message: 
> 
> Mingw Compiler support for Scilab
> 	Load macros
> WARNING: MinGW Compiler not detected.
> 	Load help 
> 
> I've tried all sorts of things, but have now run gcc-9.2.0.exe, and added
C:\MinGW\bin
> to 
> the System Path.  I upgraded MinGW 8.3.0 to MinGW 9.2.0.  I unistalled Scilab and did
a
> 

Did you have the MinGW toolbox running on your computer before  ? There have been no other

changes in the toolbox than the new download link for gcc, since 8.3.0 is not available 
any more 

> fresh install, loaded MinGW, exited and restarted Scilab but the above message didn't

> change.
> 
> How do I help MinGW 9.2.0 find the gcc compiler? There appears to be some assumed
step
> in 
> the above description that I do not know about.
> 
> Note I also have Microsoft Visual Studio Community 2019 and 2022 installed but MinGW
> can't 
> find the MS c compilers either. 

MinGW toolbox purpose is not to detect MS compilers. I presume that VS 2022 won't be 
detected by Scilab either (although VS 2019 will). However you can have both MS Visual 
Studio and MinGW Toolbox, so the problem is not here.

 I ran functions haveacompiler() and findmsvccompiler()
> but 
> both returned negative results ("F" and "unknown" respectively). 
> configure_msvc() returns 
> T??
> 

If you want to use MinGW, I suggest that you suppress the mingwlib_x64 folder in your 
SCIHOME directory (launch Scilab and type "SCIHOME" to see the actual path), then
restart 
Scilab. At restart please don't interrupt the libraries build process (it can be quite 
long, typically one minute or more).

S.
Comment from Chris Lewis -- December 21, 2021, 09:37:21 AM    
I have not been able to get MinGW to find the gcc compiler.
When I start Scilab, I get the message: 

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

I've tried all sorts of things, but have now run gcc-9.2.0.exe, and added C:\MinGW\bin to 
the System Path.  I upgraded MinGW 8.3.0 to MinGW 9.2.0.  I unistalled Scilab and did a 
fresh install, loaded MinGW, exited and restarted Scilab but the above message didn't 
change.

How do I help MinGW 9.2.0 find the gcc compiler? There appears to be some assumed step in 
the above description that I do not know about.

Note I also have Microsoft Visual Studio Community 2019 and 2022 installed but MinGW can't

find the MS c compilers either.  I ran functions haveacompiler() and findmsvccompiler() but

both returned negative results ("F" and "unknown" respectively). 
configure_msvc() returns 
T??

Comment from Chris Lewis -- December 21, 2021, 10:55:09 AM    
This is my first encounter with Scilab.  I have never been able to get MinGW toolbox 
(neither 8.3.0 nor 9.2.0) to work for me.

I found SCIHOME and deleted the subdirctory mingwlib_64, restarted Scilab but no change in

response.

I removed MinGW toolbox, restarted Scilab, re-installed MinGW Toolbox, restarted Scilab,
but 
no change, again.

Question.  If the Scilab Mingw start up message includes "WARNING: MinGW Compiler not

detected.", how is the toolbox guided to a suitable compiler?  I cannot find anything
in the 
Help that could possibly set things up so MinGW Toolbox can find gcc, and 

findmsvccompiler() returns "unknown" (although I think my Visual Studio mscv
version is 
140).


Note: I am a Windows User, with minimal expertise in the way it works behind the scenes, 
although I began in the days of Winows93, and did once do an introductory course in Unix 
(long since forgoten).


Answer from Stéphane MOTTELET -- December 21, 2021, 12:01:11 PM    
Hi,

If you already have VS studio you don't need MinGW toolbox. This toolbox is dedicated to 
users who don't have VS. Moreover VS Community 2022 won't be detected by Scilab and that 
explains why findmsvccompiler() yields "unknown". The most recent version that
can be 
detected is VS 2019. So please uninstall VS 2022, reboot you machine, and 
findmsvccompiler() will yield something. Then, all dynamic link examples should run fine, 
e.g. you should test those in the ilib_build help page.

S.
Comment from Chris Lewis -- December 23, 2021, 04:26:09 AM    
This is my first encounter with Scilab.  I have never been able to get MinGW toolbox 
(neither 8.3.0 nor 9.2.0) to work for me.

I found SCIHOME and deleted the subdirctory mingwlib_64, restarted Scilab but no change in

response.

I removed MinGW toolbox, restarted Scilab, re-installed MinGW Toolbox, restarted Scilab,
but 
no change, again.

Question.  If the Scilab Mingw start up message includes "WARNING: MinGW Compiler not

detected.", how is the toolbox guided to a suitable compiler?  I cannot find anything
in the 
Help that could possibly set things up so MinGW Toolbox can find gcc, and 

findmsvccompiler() returns "unknown" (although I think my Visual Studio mscv
version is 
140).


Note: I am a Windows User, with minimal expertise in the way it works behind the scenes, 
although I began in the days of Winows93, and did once do an introductory course in Unix 
(long since forgoten).


Comment from Chris Lewis -- December 23, 2021, 09:48:54 AM    
All good.  Removed all VS installations, unistalled Scilab and rebooted.

Installed VS2019 and Scilab from fresh downloads.

findmsvccompiler() returned  "msvc142express"

Ran simple electrical circuit in xcos, and it worked.

Thank you.

I think I went off track in the tutorial "Xcos for very beginners" (Scilab 2013)
on Page 14, 
"Install a C compiler", where it advised that a C compiler may be necessary (if
not already 
loaded on the system) and it launched staight into "Install MinGW module ..." in
"Under 
Windows". Maybe the final pargaph on p15 needs to be included in the introductory
paragaph 
(because I freely admit that I didn't reed past the Windows section because it related to 
OS's of no interest to me. Australians, apparently, have the reputation of not reading all

the instructions, thoroughly, before starting the engine!).

Thanks again.
Leave a comment
You must register and log in before leaving a comment.
Login with GitLab
Email notifications
Send me email when this toolbox has changes, new files or a new release.
You must register and log in before setting up notifications.