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
(29977 downloads for this version - 266556 downloads for all versions)
Details
Version
0.10.5
A more recent valid version exists: 10.3.1
Author
Allan CORNET
Owner Organization
Scilab Enterprises
Maintainer
Antoine ELIAS
Category
License
Creation Date
March 2, 2017
Source created on
Scilab 6.0.x
Binaries available on
Scilab 6.0.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.0.0 and more on Windows



You need to install MinGW package distributed by Equation Solution first and
then you must install this interface module between MinGw and Scilab. 



with Scilab 32 bits:

 (* x86) http://atoms.scilab.org/toolboxes/mingw/0.10.0/files/gcc-6.2.0-32.exe



with Scilab 64 bits:

 (* x64) http://atoms.scilab.org/toolboxes/mingw/0.10.0/files/gcc-6.2.0-64.exe
            
Files (2)
[94.04 kB]
Source code archive

[129.66 kB]
OS-independent binary for Scilab 6.0.x
Binary version (all platforms)
Automatically generated by the ATOMS compilation chain

News (0)
Comments (10)     Leave a comment 
Comment from Sylwester Kocjan -- March 2, 2017, 04:31:39 PM    
Hello there!

Maybe unfortunate place, but someone might find it helpful. In order to make this package
run I needed to make two changes: 

#############################################################
1. %AppData%\Roaming\Scilab\scilab-6.0.0\atoms\x64\mingw\0.10.5\loader.sce

10,11c10,12
< 
<
exec(get_absolute_file_path("loader.sce")+"etc\"+"D:\atomscc\work\compil\mingw_0.10.5\.start");
---
> //TODO sk:
>
//exec(get_absolute_file_path("loader.sce")+"etc\"+"D:\atomscc\work\compil\mingw_0.10.5\.start");
> exec(
get_absolute_file_path("loader.sce")+"etc\"+"mingw.start");

#############################################################
2.
%AppData%\Roaming\Scilab\scilab-6.0.0\atoms\x64\mingw\0.10.5\scripts\TEMPLATE_MAKEFILE.MINGW:

31c31
< LINKER_FLAGS = --shared $(OBJS) -std=c++11 -L$(GCCLIBDIR) -L$(SCIMINGWLIBDIR)
-lgfortran
$(SCILAB_LIBS) $(XCOS_LIBS)
---
> LINKER_FLAGS = --shared $(OBJS) -std=c++11 -L$(GCCLIBDIR)
-L"$(SCIMINGWLIBDIR)"
-lgfortran $(SCILAB_LIBS) $(XCOS_LIBS)
83a84,98
> #clean:
> #	del *.bak
> #	del *.$(OBJ)
> #	del *.dll
> #	del *.lib
> #	del *.def
> ##=============================================================
> #distclean:
> #	del *.bak
> #	del *.$(OBJ)
> #	del *.dll
> #	del *.lib
> #	del *.def
> ##=============================================================
> # TODO sk:
85,89c100,104
< 	del *.bak
< 	del *.$(OBJ)
< 	del *.dll
< 	del *.lib
< 	del *.def
---
> 	rm -f *.bak
> 	rm -f *.$(OBJ)
> 	rm -f *.dll
> 	rm -f *.lib
> 	rm -f *.def
92,97c107,112
< 	del *.bak
< 	del *.$(OBJ)
< 	del *.dll
< 	del *.lib
< 	del *.def
< #=============================================================
\ No newline at end of file
---
> 	rm -f *.bak
> 	rm -f *.$(OBJ)
> 	rm -f *.dll
> 	rm -f *.lib
> 	rm -f *.def
> #=============================================================


#############################################################
Cheeers, you do a great job developers, thank you!
Comment from yves-marie mozzi -- March 7, 2017, 11:40:00 AM    
Hello everyone,

I have a Problem of my machines running Windows 10 and Scilab 6.0.0 - 64 Bits.

When I install the MinGw toolbox and restart Scilab I get the following:


Mingw Compiler support for Scilab
	Load macros
Converting Libraries.
Build libblasplus.a
atomsLoad : Une erreur est survenue au cours du chargement de 'mingw-0.10.5':
	exec: error on line #32: "Indice invalide."


Would anyone of you be able to help me?

Thanks a lot in advance!

YM
Answer from Jyrki Hämäläinen -- March 21, 2017, 09:05:50 PM    
This problem seems to have something to do with how win10 handles the paths.
Description and patch-proposal in this issue may help you.
http://forge.scilab.org/index.php/p/MinGW-toolbox/issues/1682/

BR,
Jyrki
Comment from Jonas Vieira de Souza -- June 6, 2017, 01:39:02 AM    
Congratulations on the toolbox!

I have a doubt.
What was the method for generating the binary macros?
Like this one here: "macros\mgw_SetEnv.bin".

The macros I create, by the save() function, causes Scilab to lock / close.
For example:
function r = f()
   r = 3;
endfunction
save('r.bin', 'r');
Answer from Samuel Gougeon -- July 16, 2018, 12:17:48 PM    
> The macros I create, by the save() function, causes Scilab to lock / close.
> For example:
> function r = f()
>    r = 3;
> endfunction
> save('r.bin', 'r');

a) I guess you meant  save('r.bin', 'f')
   Trying to save a not existing r variable likely caused the issue
b) genlib() must be used instead
Comment from Ananth Reddy -- July 6, 2017, 11:56:38 AM    
Hi,
I have an issue with compiling in xcos and the error message is as follows:
Modelica blocks are reduced to a block with:
Number of differential states: 0
Number of algebraic states: 2
Number of discrete time states : 0
Number of zero-crossing surfaces: 0
Number of modes : 0
Number of inputs : 0
Number of outputs: 1
Input/output dependency:[T]
Analytical Jacobian: enabled (%Jacobian=%t)
Parameter embedding mode: enabled (%Modelica_ParEmb=%t)...

I found that a Compiler Needs to be installed and can anyone help me how to proceed and 
solve this issue.



Best Regards,
Ananth
Comment from Ananth Reddy -- July 6, 2017, 01:39:46 PM    
Hi,
I have an issue with compiling in xcos and the error message is as follows:
Modelica blocks are reduced to a block with:
Number of differential states: 0
Number of algebraic states: 2
Number of discrete time states : 0
Number of zero-crossing surfaces: 0
Number of modes : 0
Number of inputs : 0
Number of outputs: 1
Input/output dependency:[T]
Analytical Jacobian: enabled (%Jacobian=%t)
Parameter embedding mode: enabled (%Modelica_ParEmb=%t)...

I found that a Compiler Needs to be installed and can anyone help me how to proceed and 
solve this issue.



Best Regards,
Ananth
Comment from Rupul Chandna -- July 24, 2018, 03:54:49 PM    
Makelib:137: *** missing separator.  Stop.
at line    25 of function dlwCompile           ( 
C:\Users\THERU_~1\AppData\Roaming\Scilab\SCILAB~1.1\atoms\x64\mingw\010~1.5\macros\windo
ws\dlwCompile.sci line 34 )
at line    70 of function ilib_compile         ( C:\Program Files\scilab-
6.0.1\modules\dynamic_link\macros\ilib_compile.sci line 86 )
at line   104 of function ilib_for_link        ( C:\Program Files\scilab-
6.0.1\modules\dynamic_link\macros\ilib_for_link.sci line 118 )
at line    17 of function npend_build_and_load 
at line   112 of function demo_pendulum        ( C:\Program Files\scilab-
6.0.1\modules\differential_equations\demos\n_pendulum\n_pendulum.sci line 120 )
at line    11 of executed file C:\Program Files\scilab-
6.0.1\modules\differential_equations\demos\n_pendulum\n_pendulum.dem.sce

ilib_compile: Error while executing Makelib.

How do I resolve this?
Comment from Holger Niedermaier -- December 20, 2018, 10:14:34 AM    
Hello  everybody,
After installing mingw via ATOMOS installer followed by the installations of 
gcc-6.2.0-64.exe and restarting of scilab the following Messages occur:

Mingw Compiler support for Scilab
	Load macros
Converting Libraries.
Build libblasplus.a
Conversion failed libblasplus.a
Build liblibf2c.a
Conversion failed liblibf2c.a
Build libcore.a
Conversion failed libcore.a
Build libcore_f.a
Conversion failed libcore_f.a
Build liblapack.a
Conversion failed liblapack.a
Build liboutput_stream.a
Conversion failed liboutput_stream.a
...

Maybe I similar Problem but I have no idea how to handle it. 
Can anybody help?

Thanks in advanced 
Holger
Comment from Sadik Cinik -- July 2, 2019, 04:31:23 PM    
Hello everyone, 

I install Scilab 64 bits and gcc files but whenever I run the Scilab I am getting the 
conversion error below. I saw many people had this issue before but there is no answer. 
Could you tell me how to solve this issue? 

Mingw Compiler support for Scilab
	Load macros
Converting Libraries.
Build libblasplus.a
Conversion failed libblasplus.a
Build liblibf2c.a
Conversion failed liblibf2c.a
Build libcore.a
Conversion failed libcore.a
Build libcore_f.a
Conversion failed libcore_f.a

Regards


 
Comment from Alain Lamy -- January 31, 2020, 02:04:25 PM    
Hi, 

When building a toolbox that interfaces FORTRAN code using gcc 6.2.0 under Windows 10 (64
bits) the following error message appears: 

!c:/users/montage/gcc/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/..!
!/../../../lib/libgfortran.a(write.o): In function `write_float'!
!:                                                              !
!                                                               !
!/home/gfortran/gcc-home/workshop/gcc/objdir/x86_64-w64-mingw32/!
!libgfortran/../../../gcc-6.2.0-mingw/libgfortran/io/write_float!
!.def:1291: undefined reference to `quadmath_snprintf'          !


To solve the problem, we had to add "-lquadmath" to LINKER_FLAGS in file
"TEMPLATE_MAKEFILE.MINGW" (in "scripts" directory). 

The line: 
LINKER_FLAGS = --shared $(OBJS) -std=c++11 -L$(GCCLIBDIR) -L$(SCIMINGWLIBDIR) -lgfortran
$(SCILAB_LIBS) $(XCOS_LIBS)

has to be replaced by: 
LINKER_FLAGS = --shared $(OBJS) -std=c++11 -L$(GCCLIBDIR) -L$(SCIMINGWLIBDIR) -lgfortran
-lquadmath $(SCILAB_LIBS) $(XCOS_LIBS)


Note: 
It worked with the previous version of gcc (4.6.3).  
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.