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
(36 downloads for this version - 102525 downloads for all versions)
Details
Version
0.10.2
Author
Allan CORNET
Owner Organization
Scilab Enterprises
Maintainer
Antoine Elias
Category
License
Creation Date
February 20, 2017
Source created on
Scilab 6.0.x
Binaries available on
This toolbox is in the process of being built
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 (1)
[46.91 kB]
Source code archive

News (0)
Comments (22)     Leave a comment 
Comment from Ravi Upadhyaya -- February 24, 2017, 05:57:38 AM    
From: P Ravi Upadhyaya <ravi.upadhyaya@gmail.com>
Subject: [your-subject]

Message Body:
When I install the mingw package. and restart SCILAB, I get the following error.
============================================
Mingw Compiler support for Scilab
	Load macros
Converting Libraries.
Build libblasplus.an
atomsLoad: An error occurred while loading 'mingw-0.10.0':
	dos: Wrong size for input argument #1: string expected.
===================================================

I have installed "gcc-6.2.0-64.exe" as the C compiler. 

Without the installation of the C compiler and linking it properly, I am unable to run the

xcos demo packs.

Please let me know what has to be done to fix this.

Thanks in advance,

Ravi Upadhyaya
Comment from Antoine Elias -- February 24, 2017, 10:37:22 AM    
Hello Ravi,

Can you give me the return of `mgw_getEquationPkgPath()` ?
Comment from Ravi Upadhyaya -- February 24, 2017, 10:48:17 AM    
Hello..

Do I give the command in the scilab console? I tried it and it gave the following message.

------------------------------------------------
Mingw Compiler support for Scilab
	Load macros
Converting Libraries.
Build libblasplus.a
atomsLoad: An error occurred while loading 'mingw-0.10.0':
	dos: Wrong size for input argument #1: string expected.

--> mgw_getEquationPkgPath()

Undefined variable: mgw_getEquationPkgPath
-------------------------------------------------

I am sure that I am making a mistake here! Please let me know how to execute that command?

Thanks in advance.
Comment from Antoine Elias -- February 24, 2017, 10:56:57 AM    
No no It is good ( but not expected answer ^^ )

Normally, startup, load macros and after try to convert scilab libs to gcc format.
In your case, macros are not loaded.

can you check if `mingwlib` var exists ?

just type `mingwlib` in your console.

If you get a error message try to load manually the macro lib with

load("SCIHOME/atoms\x64\mingw\0.10.0\macros\lib")
and call again `mgw_getEquationPkgPath`
Comment from Ravi Upadhyaya -- February 24, 2017, 11:04:40 AM    
Progress!!

--> load("SCIHOME/atoms\x64\mingw\0.10.0\macros\lib")

--> mgw_getEquationPkgPath()
 ans  =

!C:\Users\ravi_.DESKTOP-78OPO19\gcc\x86_64-w64-mingw32  !
!                                                       !
!c:\program files\gcc\x86_64-w64-mingw32                !

Comment from Ravi Upadhyaya -- February 24, 2017, 11:21:52 AM    
After this, should I be executing the macros in mingw_0.10.0 manually or is there a way 
where the process starts when I restart scilab?

Thanks in advance,


Comment from Antoine Elias -- February 24, 2017, 11:39:44 AM    
It is strange, you have 2 paths.
Can you check which one is good ?
And update your environment variables with only ONE path.
 - WIN + Pause
 - bottom left advanced parameters
 - bottom right Environment Variables
 - find EQ_LIBRARY_PATH in bottom list
 - edit it with good path

Check to have it only in the bottom list

Restart Scilab
try : 
getenv('EQ_LIBRARY_PATH', '')

Comment from Ravi Upadhyaya -- February 24, 2017, 12:30:23 PM    
After this, should I be executing the macros in mingw_0.10.0 manually or is there a way 
where the process starts when I restart scilab?

Thanks in advance,


Comment from Ravi Upadhyaya -- February 24, 2017, 12:36:07 PM    
The good one is C:\Users\ravi_.DESKTOP-78OPO19\gcc\x86_64-w64-mingw32.

Restarted SCILAB and I can see that the libraries are being built!!! 

Mingw Compiler support for Scilab
	Load macros
Converting Libraries.
Build libblasplus.a
Build liblibf2c.a
Build libcore.a
Build libcore_f.a
Build liblapack.a
Build liboutput_stream.a
Build libdynamic_link.a
Build libinteger.a
Build liboptimization_f.a
Build liblibjvm.a
Build libscilocalization.a
Build liblinpack_f.a
Build libcall_scilab.a
Build libtime.a
Build libapi_scilab.a
Build liblibintl.a
Build libast.a
Build libfileio.a
Build libio.a
Build libstring.a
Build libthreads.a
Build libsciconsole.a
Build libscilab_windows.a
Build liblibmex.a
Build libscicos.a
Build libscicos-cli.a
Build libscicos_f.a
Build libscicos_blocks.a
Build libscicos_blocks-cli.a
Build libscicos_blocks_f.a
	Load help

Guess it should work now!! 

Thanks a lot for all your time and help.

Comment from Ravi Upadhyaya -- February 24, 2017, 03:49:18 PM    
Hi:

Another problem!!

scilab is unable to find TEMPLATE_MAKEFILE.MINGW file - while the file exists in the path.

Pasted below is the trace of the error from scilab.

================================================================================
Main Modelica : C:\Users\RAVI_~1.DES\AppData\Local\Temp\SCI_TMP_5948_5020
\Transformer_im.mo

 Flat Modelica : C:\Users\RAVI_~1.DES\AppData\Local\Temp\SCI_TMP_5948_5020
\Transformer_imf.mo
 Simulation C code :C:\Users\RAVI_~1.DES\AppData\Local\Temp\SCI_TMP_5948_5020
\Transformer_im.c
   Generate a loader file
   Generate a Makefile
WARNING: C:\Users\RAVI_~1.DES\AppData\Roaming\Scilab\SCILAB~1.0\atoms\x64\mingw\010~1.0
\macros\scripts\TEMPLATE_MAKEFILE.MINGWnot found.
   Running the Makefile
   Compilation of Transformer_im.obj
   Building shared library (be patient)

 make: *** No rule to make target 'clean'.  Stop.

!sorry compiling problem                       !
!                                              !
!ilib_compile: Error while executing Makelib.  !

 c_pass1: build the modelica meta-block failed

 xcos_simulate: Error during block parameters update.
================================================================================

The directory path of TEMPLATE_MAKEFILE.MINGW is given below.
=================================================================================
Directory of C:\Users\ravi_.DESKTOP-78OPO19\AppData\Roaming\Scilab\scilab-6.0.0\atoms\x64
\mingw\0.10.0\scripts

24/02/2017  20:10    <DIR>          .
24/02/2017  20:10    <DIR>          ..
28/11/2016  13:46             3,654 TEMPLATE_MAKEFILE.MINGW
               1 File(s)          3,654 bytes
               2 Dir(s)  65,023,877,120 bytes free

C:\Users\ravi_.DESKTOP-78OPO19\AppData\Roaming\Scilab\scilab-6.0.0\atoms\x64\mingw\0.10.0
\scripts>
===================================================================================

Thanks again.

Ravi Upadhyaya
Comment from Ravi Upadhyaya -- February 25, 2017, 04:33:19 AM    
This comment has been deleted.
Comment from Ravi Upadhyaya -- February 25, 2017, 05:25:53 AM    
This comment has been deleted.
Comment from Ravi Upadhyaya -- February 25, 2017, 07:13:22 AM    
This comment has been deleted.
Comment from Ravi Upadhyaya -- February 25, 2017, 08:33:47 AM    
This comment has been deleted.
Comment from Ravi Upadhyaya -- February 25, 2017, 09:09:58 AM    
This comment has been deleted.
Comment from Ravi Upadhyaya -- February 25, 2017, 09:43:49 AM    
This comment has been deleted.
Comment from Ravi Upadhyaya -- February 25, 2017, 01:52:00 PM    
This comment has been deleted.
Comment from Ravi Upadhyaya -- February 26, 2017, 07:47:36 AM    
This comment has been deleted.
Comment from Ravi Upadhyaya -- February 26, 2017, 08:39:13 AM    
Hi Antoine:

I have received a good number of messages about the post being deleted.. Not sure, how, so

many copies of the post appeared. Deeply regret any inconvenience caused.

Regards,
Ravi Upadhyaya


Comment from Ravi Upadhyaya -- February 26, 2017, 02:47:17 PM    
Hi Antoine:

I got it to work! There is a mismatch between the actual location of 
TEMPLATE_MAKEFILE.MINGW and the location which MINGW looks for. 


Actual path: C:\Users\ravi_.DESKTOP-78OPO19\AppData\Roaming\Scilab\scilab-6.0.0\atoms\x64
\mingw\0.10.0\scripts>


Path that MINGW is looking at : C:\Users\ravi_.DESKTOP-78OPO19
\AppData\Roaming\Scilab\scilab-6.0.0\atoms\x64\mingw\0.10.0
\macros\scripts>

Solution: copy the scripts folder along with the files into the ...\mingw\0.10.0\macros 
folder.

Regards,
Ravi Upadhyaya


Comment from Antoine Elias -- February 26, 2017, 05:09:47 PM    
Yes, you can copy the file or take the latest source version 0.10.2 ( rebuild and load 
it yourself, exec("builder.sce");exec("loader.sce"); ).
I made others changes in 0.10.1 and 0.10.2 about compilation flags.
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.