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
(166056 downloads for this version - 266566 downloads for all versions)
Details
Version
0.9.3
A more recent valid version exists: 10.3.1
Author
Allan CORNET
Owner Organization
Scilab Enterprises
Maintainers
Vincent COUVERT
Antoine ELIAS
Category
License
Creation Date
April 25, 2013
Source created on
Scilab 5.4.x
Binaries available on
Scilab 5.4.x:
Windows 32-bit Windows 64-bit
Scilab 5.5.x:
Windows 32-bit Windows 64-bit
Install command
--> atomsInstall("mingw")
Description
            MinGW Compiler support for Scilab 5.4.1 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. 

http://www.equation.com/servlet/equation.cmd?fa=programminglog

On Windows 32 bits platform
 (* x86) http://atoms.scilab.org/toolboxes/mingw/0.9.3/files/gcc-4.6.3-32.exe

On Windows 64 bits platform
  with Scilab 32 bits:
 (* x86) http://atoms.scilab.org/toolboxes/mingw/0.9.3/files/gcc-4.6.3-32.exe

  with Scilab 64 bits:
 (* x64) http://atoms.scilab.org/toolboxes/mingw/0.9.3/files/gcc-4.6.3-64.exe

            
Files (7)
[47.33 MB]
Miscellaneous file
mingw 4.6.3 32 bits package provides by http://equation.com/
[65.03 MB]
Miscellaneous file
mingw 4.6.3 64 bits package provides by http://equation.com/
[56.36 kB]
Source code archive

[105.94 kB]
Windows 32-bit binary for Scilab 5.4.x
Windows 32-bit
Automatically generated by the ATOMS compilation chain

[105.94 kB]
Windows 32-bit binary for Scilab 5.5.x
Windows 32-bit
Automatically generated by the ATOMS compilation chain

[105.94 kB]
Windows 64-bit binary for Scilab 5.4.x
Windows 64-bit
Automatically generated by the ATOMS compilation chain

[105.94 kB]
Windows 64-bit binary for Scilab 5.5.x
Windows 64-bit
Automatically generated by the ATOMS compilation chain

News (0)
Comments (24)     Leave a comment 
Comment from David Dorchies -- July 2, 2013, 05:45:07 PM    
Hi everyone, 

I've already post a message on a previous version for saying that the installation of this
module doesn't work on my computer because of a crash during the compilation of the
libraries used in the module (libblasplus.a).

I found why. I have installed recently Visual Studio Express with a C compiler and it
seems that Scilab uses this compiler instead of GCC for compiling the librairies during
the installation of the module. Therefore, I use another computer for compiling and this
is not a very practical solution.

Does anyone know how to specify to Scilab to use only the GCC compiler and not another one
?

Thanks for any help on this subject.
Comment from Dietr. Boo -- September 12, 2013, 04:31:35 PM    
Hi,

sometimes after installing mingw via atomsInstall, and you the next time start scilab, you
get the message:

-->
Converting Libraries.
Build libblasplus.a
Conversion failed libblasplus.a
Build liblapack.a
Conversion failed liblapack.a
Build libMALLOC.a
Conversion failed libMALLOC.a
Build libf2c.a
Conversion failed libf2c.a
Build liblapack.a
Conversion failed liblapack.a
Build libcore.a
Conversion failed libcore.a
Build libcore_f.a
Conversion failed libcore_f.a
Build libintersci.a
<--

Here the conversion fails for all of the librarys. Also the *.a - files in
%APPDATA%\%USERNAME%\mingwlib[_x64]\ are zero size.

Reason: scilab runs inside a directory where it not have write permissions. 

From

SCILIBDIR\contrib\mingw\0.9.3-0\macros\mgw_buildLib.sci

is called the dlltool:

-->
commandline = """" + mgw_getArchBinPath() + filesep() +
'dlltool.exe"" -d""' + TMPDIR +
filesep() + libraryname + '.exp""' + ' -l""' + destPath + filesep() +
libraryNameDest + '""';

  if ilib_verbose() == 2 then
    mprintf("%s\n", commandline);
    [msg, ierr] = dos(commandline);
<--

This dlltool will be run in the same directory as scilab himself. Actually, there is the
way, to edit the startlink for scylab, and choose a directory where all Users have write
permission.

Another way is, that scilab himself will correct its rundir to something like %TEMP%.
I suggest to correct SCILIBDIR\contrib\mingw\0.9.3-0\macros\mgw_buildLib.sci
as following:

-->
commandline = """" + mgw_getArchBinPath() + filesep() +
'dlltool.exe"" -d""' + TMPDIR +
filesep() + libraryname + '.exp""' + ' -l""' + destPath + filesep() +
libraryNameDest + '""';
chdir(getenv("TEMP"));

  if ilib_verbose() == 2 then
    mprintf("%s\n", commandline);
    [msg, ierr] = dos(commandline);
<--

This will correct the failures.

Some better way is, that rundir would be choosen trough the usersession, may be as saved
in the scilab - env.


Greetings,

JDB

Comment from Hans-Juergen Pirch -- November 12, 2013, 05:48:31 PM    
Hello everyone,

I have a Problem on one of my machines running Windows 7 Professional 64Bit and Scilab
5.4.1 64Bit.

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
Warning !!!
Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION)
with "dos" function.
Save your data and restart Scilab.
atomsLoad: An error occurred while loading 'mingw-0.9.3-0':
	Undefined operation for the given operands.
	check or define function %c_5 for overloading.


On other machines (also Win 64Bit and Scilab 64Bit) it works flawless.
Would anyone of you be able to help me?

Thanks a lot in advance!

Hans
Comment from Hans-Juergen Pirch -- November 12, 2013, 06:49:15 PM    
Hi everyone,

I managed to solve the issue by starting Scilab with the "Run as Administrator"
option.
Interestingly this is not necessary on my other PC's.


I am still having a problem though:

When I try to compile a code that works on other machines I get the following:

ilib_build(lib_name, table, files, []);
   Generate a gateway file
   Generate a loader file
   Generate a Makefile
   Running the makefile
   Compilation of C:UsersHPirch.AAITGDocumentsScilabInductance
calculationsci_CalcL1xNx3.obj
   Compilation of C:UsersHPirch.AAITGDocumentsScilabInductance
calculationsci_CalcM2xNx3.obj
   Compilation of TestL_lib.obj
   Building shared library (be patient)
 
 make: *** No rule to make target `C:\Users\HPirch.AAITG\Documents\Scilab\Inductance',
needed by `TestL_lib. 
      dll'.  Stop.                                                                       
                   
 !--error 10000 
ilib_compile: Error while executing Makelib.
at line      25 of function dlwCompile called by :  
at line      51 of function ilib_compile called by :  
at line     106 of function ilib_build called by :  
ilib_build(lib_name, table, files, []);


The files 

loader.sce
Makelib 
TestL_lib.c

are generated but no Object files.

Again any help would be much appreciated!

Thanks
Hans

Comment from celine guivarch -- April 29, 2014, 12:03:14 PM    
Dear Hans, everyone,

I also have the same problem you are describing:

Mingw Compiler support for Scilab
	Load macros
Converting Libraries.
Build libblasplus.a
Warning !!!
Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION)
with "dos" function.
Save your data and restart Scilab.
atomsLoad : Une erreur est survenue au cours du chargement de 'mingw-0.9.3-1':
	Op?ration non d?finie pour les op?randes donn?es.
	V?rifier ou d?finir la fonction %c_5 pour la surcharge.

I am using a machine running Win 7 pro 64bit.
I get the same error when I install scilab 5.5.0 64bit + gcc-4.6.3-64.exe, or
alternatively scilab 5.5.0 32bit+gcc-4.6.3-32.exe.

And starting scilab (either 64bit or 32bit version) with the "run as
administrator" option
does not solve my problem...

Some help would be greatly appreciated!

Thanks

Celine
Comment from Markus Nein -- May 27, 2014, 10:02:22 AM    
Hi,

also have trouble with SciLab and MinGW ...

Windows 7 (64bit)
Java 1.7.0_09 (32bit)
SciLab 5.5.0 (32bit)
installed GCC as described above:
<< On Windows 64 bits platform
     with Scilab 32 bits:
    (* x86) http://atoms.scilab.org/toolboxes/mingw/0.9.3/files/gcc-4.6.3-32.exe
>>

SciLab does not find the compiler, but it?s installed !!!
What is the MinGW atom looking for to find the compiler ?


--- My path includes the GCC:

XXX>path
 PATH=....;C:\user_programs\gcc__4.6.3_32bit\bin;C:\user_programs\gcc__4.6.3_32bit


--- And GCC is available on the cmd line:
XXX>gcc -v
Built by Equation Solution <http://www.Equation.com>.
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=c:/user_programs/gcc__4.6.3_32bit/bin/../libexec/gcc/i686-pc-mingw32/4.6.3/lto-wrapper.exe
Target: i686-pc-mingw32
Configured with: ../gcc-4.6.3-mingw/configure --host=i686-pc-mingw32
--build=x86_64-unknown-linux-gnu --target=i686-pc-mingw32
--prefix=/home/gfortran/gcc-home/
binary/mingw32/native/x86_32/gcc/4.6.3 --with-gcc --with-gnu-as --with-gnu-ld
--with-host-libstdcxx='-lstdc++ -lsupc++ -lm' --with-ppl=/home/gfortran/gcc-home/b
inary/mingw32/native/x86_32/ppl
--with-cloog=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/cloog
--with-gmp=/home/gfortran/gcc-home/binary/mingw32/native
/x86_32/gmp --with-mpfr=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/mpfr
--with-mpc=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/mpc --with-sys
root=/home/gfortran/gcc-home/binary/mingw32/cross/x86_32/gcc/4.6.3 --disable-shared
--disable-nls --disable-tls --disable-win32-registry --enable-libquadmath-su
pport --enable-libquadmath --enable-languages=c,c++,fortran --enable-libgomp
--enable-threads=win32 --enable-lto --enable-static --enable-shared=lto-plugin --en
able-plugins --enable-ld=yes --enable-cloog-backend=ppl
Thread model: win32
gcc version 4.6.3 (GCC)



--- SciLab at startup:
  Startup execution:
    loading initial environment

  Mingw Compiler support for Scilab
  	Load macros
  WARNING: MinGW Compiler not detected.
  	Load help
 
--- some test:
  -->atomsIsInstalled('mingw')
   ans  =
 
    T  
 
  -->atomsIsLoaded('mingw')
   ans  =
 
    T  

  -->atomsTest('mingw')
     TMPDIR = C:\Users\dep02354\AppData\Local\Temp\SCI_TMP_1308_

     001/001 - [SCI\contrib\mingw\0.9.3-1] : 

     001/015 - [SCI\contrib\mingw\0.9.3-1] G_make.................failed: premature end of
the test script 
     002/015 - [SCI\contrib\mingw\0.9.3-1] addinter...............failed: premature end of
the test script 
     003/015 - [SCI\contrib\mingw\0.9.3-1] call...................failed: premature end of
the test script 
     004/015 - [SCI\contrib\mingw\0.9.3-1] dllinfo................failed: premature end of
the test script 
     005/015 - [SCI\contrib\mingw\0.9.3-1] ilib_build.............failed: premature end of
the test script 
  ....

chears
Markus
Comment from Jean-Bernard Blaisot -- July 22, 2014, 11:33:34 PM    
Hi,

when using ilib_build with mingw toolbox (I run Scilab 5.5.0 on windows 7 64bits) there is
an error message at linking step:

x86_64-w64-mingw32-gcc.exe: error: unrecognized command line option '-Wl'

I found where is the error: there is an extra -Wl option in the template Makefile
"TEMPLATE_MAKEFILE.MINGW" at line 103:
	$(LINKER) $(LINKER_FLAGS) -o $(LIBRARY).dll $(OTHERLIBS) -Wl,--out-implib=$(LIBRARY).a
-Wl,--export-all-symbols -Wl,--enable-auto-import -Wl	$(EXTRA_LDFLAGS)

Thie line should be replaced in the template file by:
	$(LINKER) $(LINKER_FLAGS) -o $(LIBRARY).dll $(OTHERLIBS) -Wl,--out-implib=$(LIBRARY).a
-Wl,--export-all-symbols -Wl,--enable-auto-import	$(EXTRA_LDFLAGS)

Hope this will be helpful.

Regards,
JB
Comment from Anne-Laure Cheffot -- June 4, 2015, 11:40:51 AM    
Dear all,

For the record before what follows I tried all the fix suggested before and none worked.

I managed to find a way to have mingw working with scilab 64bit.
This only work for the following error message:
Mingw Compiler support for Scilab
	Load macros
Converting Libraries.
Build libblasplus.a
Warning !!!
Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION)
with "dos" function.
Save your data and restart Scilab.
atomsLoad : Une erreur est survenue au cours du chargement de 'mingw-0.9.3-1':
	Op?ration non d?finie pour les op?randes donn?es.
	V?rifier ou d?finir la fonction %c_5 pour la surcharge.

THIS IS NOT A FIX this is only a trick!

The first reason this warning pop up is that the file under
SCIHOME+"mingwlib_x64" does 
not build up properly and end up empty. So I obtained content from a working copy of 
another computer with same configuration and copy/paste it.. if someone has a better 
solution than google or dropbox to share this file I'll be happy to share it.

Then a new error appeared after atomsLoad('mingw'):

Load macros
Warning !!!
Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION)
with "setenv" function.
Save your data and restart Scilab.
	Load help

To solve that one you should modify the content of the environment 
variable "EQ_LIBRARY_PATH" in windows. the following webpage should help you to
do that.
http://www.nextofwindows.com/how-to-addedit-environment-variables-in-windows-7/?
bcsi_scan_680be4f748955657=bg+S+DuBiD8PDcZYZiR+kLmqWOQSAAAABwUa7w==:1

Be carefull! do NOT change PATH but "EQ_LIBRARY_PATH" to
"C:\gcc\x86_64-w64-mingw32\lib;"
if you installed your gcc in C:\ directly. 

Now the problem should be solved. Other wise you did not have the same problem or when 
copy paste some stuffs out of this post you copied the " with.

Hoping this helped
Anne-Laure
Answer from Anne-Laure Cheffot -- June 4, 2015, 02:08:53 PM    
For the record after installing a newer version of Scilab(5.5.2) today it seems that that 
the library builded naturally when I downloaded again the atoms' library mingw.
Comment from Roman Stoiber -- July 10, 2015, 10:31:30 PM    
Dear all,

same issue here:

Mingw Compiler support for Scilab
	Load macros
Converting Libraries.
Build libblasplus.a
Warning !!!
Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION)
with "dos" function.
Save your data and restart Scilab.
atomsLoad: An error occurred while loading 'mingw-0.9.3-0':
	Undefined operation for the given operands.
	check or define function %c_5 for overloading.

Tried all suggestions above, none works.

System is windows 7 professional 64 bit. Scilab 5.5.2 and mingw 0.9.3-0
I tried both versions gcc-4.6.3-64 and gcc-4.6.4-64 with multiple restarts without 
success.

Any help greatly appreciated!

Best regards
Roman
Comment from Vincent COUVERT -- July 13, 2015, 08:51:19 AM    
Hello,

Please check that you do not have multiple gcc versions installed on your PC.

Regards.
Comment from Franco Concli -- July 30, 2015, 11:19:42 AM    
ERROR on Windows 7 professional 64 bit. Scilab 5.5.2 and mingw 0.9.3-0

Mingw Compiler support for Scilab
    Load macros
Converting Libraries.
Build libblasplus.a
Warning !!!
Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION)
with "dos" function.
Save your data and restart Scilab.
atomsLoad: An error occurred while loading 'mingw-0.9.3-0':
    Undefined operation for the given operands.
    check or define function %c_5 for overloading.

How to solve? Please help.

Franco
Comment from Vincent COUVERT -- July 30, 2015, 11:24:05 AM    
Hello,

It seems you have more than one version of GCC installed. Please keep only one.

Regards.
Comment from Franco Concli -- July 30, 2015, 12:14:33 PM    
I have uninstalled all the versions (Scilab warning: no ggc installed) and re-installed 
just one (gcc-4.6.3-64), but I get the same problem.

Ideas?

Franco

PS: the same occurs also for v. 5.5.1 64bit
Comment from Franco Concli -- July 31, 2015, 09:19:41 AM    
Now I have solved the previous error by removing the old envoironmental variable but 
when I try to simulate the first SIMM example I get following.

Mingw Compiler support for Scilab
	Load macros
	Load help

  
 Fin SIMM pre_simulate   
--------------------------------------------\
 Main Modelica : 
C:\Users\fconcli\AppData\Local\Temp\SCI_TMP_6092_\Livret_SIMM_Exemple1_im.mo

 Flat Modelica : 
C:\Users\fconcli\AppData\Local\Temp\SCI_TMP_6092_\Livret_SIMM_Exemple1_imf.mo
 Simulation C code 
:C:\Users\fconcli\AppData\Local\Temp\SCI_TMP_6092_\Livret_SIMM_Exemple1_im.c
   Genera un file del loader
   Genera un makefile
   Esecuzione del makefile in corso
   Compilazione di Livret_SIMM_Exemple1_im.obj
   Creazione in corso della libreria condivisa (attendere)
 
!del *.bak                                                                                 
                   
!
!                                                                                          
                   
!
!Impossibile trovare C:\Users\fconcli\AppData\Local\Temp\SCI_TMP_6092_\*.bak               
                   
!
!                                                                                          
                   
!
!del *.o                                                                                   
                   
!
!                                                                                          
                   
!
!Impossibile trovare C:\Users\fconcli\AppData\Local\Temp\SCI_TMP_6092_\*.o                 
                   
!
!                                                                                          
                   
!
!del *.dll                                                                                 
                   
!
!                                                                                          
                   
!
!Impossibile trovare C:\Users\fconcli\AppData\Local\Temp\SCI_TMP_6092_\*.dll               
                   
!
!                                                                                          
                   
!
!del *.lib                                                                                 
                   
!
!                                                                                          
                   
!
!Impossibile trovare C:\Users\fconcli\AppData\Local\Temp\SCI_TMP_6092_\*.lib               
                   
!
!                                                                                          
                   
!
!del *.def                                                                                 
                   
!
!                                                                                          
                   
!
!Impossibile trovare C:\Users\fconcli\AppData\Local\Temp\SCI_TMP_6092_\*.def               
                   
!
!                                                                                          
                   
!
!------------- Compile file Livret_SIMM_Exemple1_im.c --------------                       
                   
!
!                                                                                          
                   
!
!x86_64-w64-mingw32-gcc.exe -c -DWIN32 -D_MSC_VER -DSTRICT -DFORDLL -
I"C:/PROGRA~1/SCILAB~1.2/libs/MALLOC/inclu!
!     des" -I"C:/PROGRA~1/SCILAB~1.2/modules/core/includes" -
I"C:/PROGRA~1/SCILAB~1.2/modules/api_scilab/includ!
!     es" -I"C:/PROGRA~1/SCILAB~1.2/modules/call_scilab/includes" -
I"C:/PROGRA~1/SCILAB~1.2/modules/output_stre!
!     am/includes" -I"C:/PROGRA~1/SCILAB~1.2/modules/jvm/includes" -
I"C:/PROGRA~1/SCILAB~1.2/modules/localizati!
!     on/includes" -I"C:/PROGRA~1/SCILAB~1.2/modules/dynamic_link/includes"
-
I"C:/PROGRA~1/SCILAB~1.2/modules/m!
!     exlib/includes" -I"C:/PROGRA~1/SCILAB~1.2/modules/time/includes" -
I"C:/PROGRA~1/SCILAB~1.2/modules/window!
!     s_tools/includes" -I"C:/PROGRA~1/SCILAB~1.2/libs/f2c" -
I"C:/PROGRA~1/SCILAB~1.2/libs/hashtable" -I"C:/PRO!
!     GRA~1/SCILAB~1.2/libs/intl" -m64  -
I"C:/PROGRA~1/SCILAB~1.2/modules/scicos/includes" -I"C:/PROGRA~1/SCILA!
!     B~1.2/modules/scicos_blocks/includes"  Livret_SIMM_Exemple1_im.c                
                        
!
!                                                                                          
                   
!
!------------- Link files --------------                                                   
                   
!
!                                                                                          
                   
!
!x86_64-w64-mingw32-gcc.exe --shared Livret_SIMM_Exemple1_im.o  -L"c:\gcc\x86_64-w64-
mingw32\lib" -LC:\Users\fc!
!     oncli\AppData\Roaming\Scilab\scilab-5.5.2\mingwlib_x64 -lstdc++ -lgfortran -
lMALLOC -lblasplus -lf2c -lla!
!     pack -lcore -lcore_f -lintersci -loutput_stream -ldynamic_link -linteger -
loptimization_f -ljvm -lsciloca!
!     lization -lintl -llinpack_f -lcall_scilab -ltime -lapi_scilab -lscilab_windows 
-lscicos -lscicos_blocks -!
!     lscicos_blocks_f -lscicos_f -o libLivret_SIMM_Exemple1_im.dll  -Wl,--out-
implib=libLivret_SIMM_Exemple1_i!
!     m.a -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl	
"C:\Users\fconcli\AppData\Roaming\Scilab\scilab!
!     -5.5.2\mingwlib_x64\libscicos.a" 
"C:\Users\fconcli\AppData\Roaming\Scilab\scilab-5.5.2\mingwlib_x64\libsc!
!     icos_f.a" "C:\Users\fconcli\AppData\Roaming\Scilab\scilab-
5.5.2\mingwlib_x64\libscicos_blocks.a" "C:\User!
!     s\fconcli\AppData\Roaming\Scilab\scilab-
5.5.2\mingwlib_x64\libscicos_blocks_f.a"                         !
!                                                                                          
                   
!
!x86_64-w64-mingw32-gcc.exe: error: unrecognized command line option '-Wl'                 
                   
!
!                                                                                          
                   
!
!make: *** [libLivret_SIMM_Exemple1_im.dll] Error 1                                        
                   
!
 
!sorry compiling problem                                !
!                                                       !
!ilib_compile: Errore durante l'esecuzione di Makelib.  !
c_pass1: build the modelica meta-block failed 
 
 xcos_simulate: Error during block parameters update.  
Comment from Klaus Weichinger -- June 3, 2016, 11:29:16 AM    
Hi,

i need mingw 64bit + scilab 64bit to find a 64bit bug within my atom package.

I use Scilab 5.5.2 64bit and gcc-4.6.3-64.exe.

mingw atom package is loaded without any warnings.

But when i start a modelica demo i get the message:

"c_pass1: build the modelica meta-block failed."

Plz give me an advice to fix this issue.

Thx.
Comment from Klaus Weichinger -- June 3, 2016, 11:30:55 AM    
Further information: I'm using WIN10 64bit
Comment from Jalpa Pandya -- July 6, 2016, 08:17:08 AM    
Hello, i have installed a version of scilab 5.5.2. i have installed lcc win 32. i am 
trying to simulate the RLC circuit demo in XCOS. but i get the error as Main Modelica : 
C:\DOCUME~1\Jalpa\LOCALS~1\Temp\SCI_TMP_3892_\RLC_Modelica_im.mo Flat Modelica : 
C:\DOCUME~1\Jalpa\LOCALS~1\Temp\SCI_TMP_3892_\RLC_Modelica_imf.mo Simulation C code 
:C:\DOCUME~1\Jalpa\LOCALS~1\Temp\SCI_TMP_3892_\RLC_Modelica_im.c Generate a loader file 
Generate a Makefile Running the Makefile !sorry compiling problem ! ! ! !A Fortran or C 
compiler is required. ! c_pass1: build the modelica meta-block failed xcos_simulate: 
Error during block parameters update. i have installed c compiler and then when i go to 
module manager --> windows Tool i am not able to find the lcc option. Earlier it was 
working fine. i have even re-installed scilab 5.5.2. please help.
Comment from Nigel Keam -- July 23, 2016, 05:55:40 AM    
OK, - a dozen times on this page, we are told to install the package from 
http://www.equation.com/servlet/equation.cmd?fa=programminglog
... What am I missing? - I don't see a package there to install.
There's a bunch of ads for PDF viewers and the like, and a log of recent changes but no 
active link or button to actually install a package.
Can someone who has tried this successfully please re-visit the page and check that it 
actually works?

- Thanks!
Comment from perrier olivier -- August 31, 2016, 02:39:07 PM    
Hello,

I had some similar issues with Windows 10 x64 and scilab x64.

This just worked for me following this thread: 
http://stackoverflow.com/questions/37278031/dos-memory-allocation-error-while-loading-
mingw-0-9-3-0

First you must have a clean MinGW install (by clean I mean only the one selected and 
distributed by Scilab's distributors).
The you go in your AppData\Roaming\Scilab\scilab-5.5.2\atoms\x64\mingw\0.9.3\etc directory

and edit the file mingw.start
comment the line 49 (stacksize('max')

Next start is a little beat long because it re-compiles libraries

Comment from David Dorchies -- January 1, 2017, 11:53:12 AM    
I tried to use the module Mingw for Scilab 32 bits and 64 bits on the same machine and I
faced on lot of troubles because Scilab was not enable to recognize the good compiler. I
saw several posts on Internet where people face on the same kind of issues.

I finally solve all my problems by setting all the environment variables needed by the
module in a batch file before launching Scilab. See below my code for my installation of
Scilab 5.5.2 64 bits and the corresponding gcc compiler, hope this can help !


set GCC_VERSION=4.6.3
set GCC_PATH=C:\Program Files\gcc-%GCC_VERSION%-64\
set PATH=%GCC_PATH%bin\;%GCC_PATH%libexec\gcc\x86_64-w64-mingw32\%GCC_VERSION%\;
set GCCINCLUDE=%GCC_PATH%x86_64-w64-mingw32\include
set GCCLIB=%GCC_PATH%x86_64-w64-mingw32\lib
set EQ_LIBRARY_PATH=%GCCLIB%
start C:\Users\david.dorchies\AppData\Local\scilab-5.5.x_x64\bin\WScilex.exe

Adapt this code for your computer by checking and changing all these paths.
Comment from Link 2003 -- May 26, 2018, 02:42:38 AM    
I still have to use SciLab 5.5.2 to be able to open older XCos files, and thanks to David
Dorchies last post I was able to enable MSYS2 GCC 7.2.0 with SciLab.

I just use this batch file:

/------------///.bat///------------
set GCC_VERSION=7.3.0
set GCC_PATH=C:\msys64\mingw64\
set PATH=%PATH%;%GCC_PATH%bin\;C:\msys64\usr\bin\;
set GCCINCLUDE=%GCC_PATH%x86_64-w64-mingw32\include
set GCCLIB=%GCC_PATH%x86_64-w64-mingw32\lib
set EQ_LIBRARY_PATH=%GCCLIB%
"C:\Program Files\scilab-5.5.2\bin\WScilex.exe"
------------///.bat///------------/

With this TEMPLATE_MAKEFILE.MINGW, which is located in
%APPDATA%\Scilab\scilab-5.5.2\atoms\x64\mingw\0.9.3\scripts:

/------------///.MINGW///------------
#=============================================================
# Allan CORNET - DIGITEO - 2009 - 2010
#=============================================================
# generated by builder.sce (MinGW): Please do not edit this file
# see TEMPLATE makefile for MINGW
# see scripts/TEMPLATE_MAKEFILE.MINGW
#=============================================================
all:
MAKE=make -f Makelib
#=============================================================
GCCLIBDIR = __GCCLIBDIR__
SCIDIR = __SCI__
SCIDIR1 = __SCIDIR1__
SCIMINGWLIBDIR = "__SCIMINGWLIBDIR__"
DUMPEXTS = "$(SCIDIR1)\bin\dumpexts"
XCOS_LIBS = __XCOS_LIBS__
#=============================================================
CC = __GCC__
FC = __FC__
LINKER = __LINKER__
OBJ = o
#=============================================================
CC_COMMON = -march=native -O3 -DWIN32 -D_MSC_VER -DSTRICT -DFORDLL $(INCLUDES)
CC_OPTIONS = -c $(CC_COMMON) __ARCH__
FC_OPTIONS = -c
CC_LDFLAGS =
CFLAGS = $(CC_OPTIONS) __CFLAGS__ __MEXCFLAGS__
FFLAGS = $(FC_OPTIONS) __FFLAGS__ __MEXFFLAGS__
#=============================================================
LINKER_FLAGS = --shared $(OBJS)  -L$(GCCLIBDIR) -L$(SCIMINGWLIBDIR) -lstdc++ -lgfortran
$(SCILAB_LIBS) $(XCOS_LIBS)
EXTRA_LDFLAGS = __LDFLAGS__
#=============================================================
# name of the dll to be built
LIBRARY = __LIBNAME__
#=============================================================
# list of files
FILES_SRC = __FILES_SRC__
#=============================================================
# list of objects file
OBJS = __OBJS__
#=============================================================
# added libraries
OTHERLIBS = __OTHERSLIBS__
#=============================================================
# include options
INCLUDES=-I"$(SCIDIR)/libs/MALLOC/includes" \
-I"$(SCIDIR)/modules/core/includes" \
-I"$(SCIDIR)/modules/api_scilab/includes" \
-I"$(SCIDIR)/modules/call_scilab/includes" \
-I"$(SCIDIR)/modules/output_stream/includes" \
-I"$(SCIDIR)/modules/jvm/includes" \
-I"$(SCIDIR)/modules/localization/includes" \
-I"$(SCIDIR)/modules/dynamic_link/includes" \
-I"$(SCIDIR)/modules/mexlib/includes" \
-I"$(SCIDIR)/modules/time/includes" \
-I"$(SCIDIR)/modules/windows_tools/includes" \
-I"$(SCIDIR)/libs/f2c" \
-I"$(SCIDIR)/libs/hashtable" \
-I"$(SCIDIR)/libs/intl"
#=============================================================
# Libraries
SCILAB_LIBS = -lMALLOC -lblasplus \
-lf2c -llapack \
-lcore -lcore_f \
-lintersci -loutput_stream \
-ldynamic_link -linteger \
-loptimization_f -ljvm \
-lscilocalization -lintl \
-llinpack_f -lcall_scilab \
-ltime -lapi_scilab \
-lscilab_windows
#=============================================================
.SUFFIXES: .cxx .cc .f90
#=============================================================
.cxx.$(OBJ):
	@echo ------------- Compile file $< --------------
	$(CC) $(CFLAGS) $<
#=============================================================
.cc.$(OBJ):
	@echo ------------- Compile file $< --------------
	$(CC) $(CFLAGS) $<
#=============================================================
.cpp.$(OBJ):
	@echo ------------- Compile file $< --------------
	$(CC) $(CFLAGS) $<
#=============================================================
.c.$(OBJ):
	@echo ------------- Compile file $< --------------
	$(CC) $(CFLAGS) $<
#=============================================================
.f.$(OBJ):
	@echo ------------- Compile file $< --------------
	$(FC) $(CFLAGS) $<
#=============================================================	
.f90.$(OBJ):
	@echo ------------- Compile file $< --------------
	$(FC) $(CFLAGS) $<
#=============================================================
all: $(LIBRARY).dll
#=============================================================
$(LIBRARY).dll: $(OBJS)
	@echo ------------- Link files --------------
	$(LINKER) $(LINKER_FLAGS) -o $(LIBRARY).dll $(OTHERLIBS) -Wl,--out-implib=$(LIBRARY).a
-Wl,--export-all-symbols -Wl,--enable-auto-import $(EXTRA_LDFLAGS)
#=============================================================
clean:
	rm -f *.bak
	rm -f *.$(OBJ)
	rm -f *.dll
	rm -f *.lib
	rm -f *.def
#=============================================================
distclean:
	rm -f *.bak
	rm -f *.$(OBJ)
	rm -f *.dll
	rm -f *.lib
	rm -f *.def
#=============================================================
------------///.MINGW///------------/

I also took the liberty to enable -march=native and -O3. Works great, and seems to be
faster.
Comment from Yasa Ali Rizvi -- March 19, 2021, 08:24:45 AM    
Hello everyone!

I am getting this error while building MinGW:

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

I need help urgently on this matter. Therefore, any kind of assistance would be 
extremely appreciated.

Thanks!
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.