Scilab Home Page | Wiki | Bug Tracker | Forge | Mailing List Archives | Scilab Online Help | File Exchange
ATOMS : MinGw toolbox details
Please login or create an account

MinGw toolbox

Dynamic link with MinGW for Scilab on Windows
(8397 downloads for this version - 132401 downloads for all versions)
Details
Version
0.10.5
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 MacOSX
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 (7)     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?
Leave a comment
You must register and log in before leaving a comment.
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.