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

LCC-windows

LCC-win32 support for Scilab
(9023 downloads for this version - 34177 downloads for all versions)
Details
Version
0.5
A more recent valid version with binaries for Scilab 5.4 exists: 0.5.1
Author
Allan Cornet
Owner Organization
Scilab
Maintainer
Vincent COUVERT
Category
License
Creation Date
November 26, 2012
Source created on
Scilab 5.4.x
Binaries available on
Scilab 5.4.x:
Windows 32-bit Windows 64-bit
Install command
--> atomsInstall("lcc_windows")
Description
            LCC-win32 supports for Scilab 5.4.0 and more
LCC-win32 is a small and fast C compiler on Windows and it can use with scilab
for dynamic link

This module is only an interface between LCC and Scilab.
You must previously install LCC in order to use this module.
LCC is available at http://www.cs.virginia.edu/~lcc-win32/            
Files (3)
[11.61 kB]
Source code archive

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

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

News (0)
Comments (5)     Leave a comment 
Comment from Miege Arnaud -- January 25, 2013, 01:18:09 PM    
I have Windows XP SP2 x64 but a 32-bit installation of Scilab 5.4.0:

-->win64()
 ans  =
 
  F 

I have successfully installed and loaded lcc-win32 but scilab still doesn't detect any 
compiler installed, and I am unable to run some of my models.

Start LCC-Win Compiler support
	Load macros
	Load help

 
-->haveacompiler()
 ans  =
 
  F  
 
-->findmsvccompiler()
 ans  =
 
 unknown  

If I try run a model using COSELICA blocks, I get the following error:

 --------------------------------------------\
 Main Modelica : C:\DOCUME~1\ajpm\LOCALS~1\Temp\SCI_TMP_4928_\DC_motor_im.mo

 Flat Modelica : C:\DOCUME~1\ajpm\LOCALS~1\Temp\SCI_TMP_4928_\DC_motor_imf.mo
 Simulation C code :C:\DOCUME~1\ajpm\LOCALS~1\Temp\SCI_TMP_4928_\DC_motor_im.c
   Generate a loader file
   Generate a Makefile
   Running the Makefile
 
!sorry compiling problem               !
!                                      !
!A Fortran or C compiler is required.  !
 
 Undefined variable: model   

Any suggestions?

Thanks,

Arnaud
Comment from Miege Arnaud -- January 25, 2013, 03:40:20 PM    
Actually, I have made some progress. Nowhere is it mentioned that lccwin32 has to be 
downloaded and installed separately, so I assumed it was included in the ATOMS package. 
Nevertheless, I have downloaded it from http://www.cs.virginia.edu/~lcc-win32/ and 
installed it. Now, haveacompiler() returns true:

-->haveacompiler()
 ans  =
 
  T  

However, I now get an error with make:

--------------------------------------------\
 Main Modelica : C:\DOCUME~1\ajpm\LOCALS~1\Temp\SCI_TMP_4928_\DC_motor_im.mo

 Flat Modelica : C:\DOCUME~1\ajpm\LOCALS~1\Temp\SCI_TMP_4928_\DC_motor_imf.mo
 Simulation C code :C:\DOCUME~1\ajpm\LOCALS~1\Temp\SCI_TMP_4928_\DC_motor_im.c
   Generate a loader file
   Generate a Makefile
   Running the Makefile
   Compilation of DC_motor_im.obj
   Building shared library (be patient)
 
!'make' is not recognized as an internal or external command,  !
!                                                              !
!operable program or batch file.                               !
 
!sorry compiling problem                           !
!                                                  !
!ilib_compile: Error while executing Makelib.lcc.  !
 
 Undefined variable: model   

Any suggestions?

Thanks,

Arnaud
Comment from Miege Arnaud -- January 25, 2013, 04:02:03 PM    
2nd update: I have restarted Scilab after installing lcc and that generated a number of 
*.lib files. However, Scilan now doesn't seem to recognise I have a compiler installed:

-->haveacompiler()
 ans  =
 
  F  
 
-->lcc_detectCompiler()
 ans  =
 
  T  
 
-->lcc_lib_dir = lcc_getScilabLibPath()
 lcc_lib_dir  =
 
 C:\DOCUME~1\ajpm\APPLIC~1\Scilab\scilab-5.4.0\lcclib   
 
-->cd(lcc_lib_dir)
 ans  =
 
 C:\DOCUME~1\ajpm\APPLIC~1\Scilab\scilab-5.4.0\lcclib   
 
-->dir
 ans  =
 
api_scilab.lib  core_f.lib       intersci.lib libjvm.lib         output_stream.lib   
scicos_f.lib 
blasplus.lib    dynamic_link.lib lapack.lib   linpack_f.lib      scicos.lib          
scilab_windows.lib 
call_scilab.lib hashtable.lib    libf2c.lib   MALLOC.lib         scicos_blocks.lib   
scilocalization.lib 
core.lib        integer.lib      libintl.lib  optimization_f.lib scicos_blocks_f.lib 
time.lib 

Any suggestions on how to get Scilab to recognise lcc?

Thanks,

Arnaud
Comment from Miege Arnaud -- January 25, 2013, 04:22:05 PM    
Hopefully final update: I removed the MinGW package with ATOMS, restarted Scilab and
finally 
it seems to work, in that the Xcos model finally compiles without any error. I think the 
documentation on how to set up the compiler really needs to be updated and fleshed out.

Thanks,

Arnaud
Comment from Samuel Gougeon -- March 9, 2013, 12:18:52 PM    
Hi,
IMO, it would be useful to tell in the description that LCC must be installed separately
(giving the link to the LCC page), and that this module is (only) the bridge between LCC
and Scilab, and does not include LCC.
Regards
Samuel
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.