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

scetoexe

example to embed a .sce in a windows .exe
(2129 downloads for this version - 31405 downloads for all versions)
Details
Version
0.1
A more recent valid version exists: 0.2
Author
Allan Cornet
Owner Organization
Scilab
Maintainer
Allan CORNET
License
Creation Date
November 29, 2010
Source created on
Scilab 5.3.x
Binaries available on
Scilab 5.3.x:
Windows 32-bit
Install command
--> atomsInstall("scetoexe")
Description
            example to embed a .sce in a windows .exe
see demo and example directory
Scilab >= 5.3 installed required            
Files (2)
[44.62 kB]
Source code archive

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

News (0)
Comments (18)     Leave a comment 
Comment from Luis Ruiz -- January 5, 2011, 05:29:51 PM    
Thank you Allan for this useful tool. It works, but I copied my .exe file to another
computer where Scilab is not installed and it didn't run.

Is there an extra step that I have to do on Visual Studio Express 2008 to create it or I
should install Scilab in every computer where I want to run my code?

Thank you!

Answer from Allan CORNET -- January 6, 2011, 08:00:30 AM    
> Thank you Allan for this useful tool. It works, but I copied my .exe file to another
> computer where Scilab is not installed and it didn't run.
> 
> Is there an extra step that I have to do on Visual Studio Express 2008 to create it or
> I
> should install Scilab in every computer where I want to run my code?
> 
> Thank you!
> 


with this tools, you need to install scilab where you want to run your code

Allan
Comment from Frederico Keizo Odan -- February 25, 2011, 07:35:13 PM    
Hello,

I'd like to know if there is (or will exist) a tool to create an executable file direct
from scilab, which could be executed without the necessity of scilab installed, just like
other compilers as c++ builder.

Thank you very much.
Comment from David Snyder -- August 19, 2011, 08:50:09 PM    
Hi,
I attempted to install scetoexe through atoms today and it was unable to find it. So I
checked the atoms list with the atomsList command and I couldn't find it. Is the module no
longer being supported? Thanks
David
Comment from Samuel Gougeon -- August 19, 2011, 09:28:31 PM    
Hi,
For me, it right appears in the ATOMS GUI of my Scilab 5.3.3 / winXP, in the Scilab
development category. However, some strange behaviours have been reported about modules
appearing or/and disappearing in the list of available ones: For instance, see
http://bugzilla.scilab.org/show_bug.cgi?id=9076
Samuel
Comment from David Snyder -- August 20, 2011, 12:40:47 AM    
Hi,
I installed Scilab on my wife's computer, winXp. And as Samuel said it appears in the
Scilab development category on her computer. The only main difference between my and her
computer is I am running Windows 7 64 bit, and she has winXp.
Thanks, David
Comment from David Snyder -- August 20, 2011, 03:08:20 AM    
Hi,
I installed Scilab on my wife's computer, winXp. And as Samuel said it appears in the
Scilab development category on her computer. The only main difference between my and her
computer is I am running Windows 7 64 bit, and she has winXp.
Thanks, David
Comment from David Snyder -- August 20, 2011, 08:14:22 AM    
Hi,
I installed Scilab on my wife's computer, winXp. And as Samuel said it appears in the
Scilab development category on her computer. The only main difference between my and her
computer is I am running Windows 7 64 bit, and she has winXp.
Thanks, David
Answer from Allan CORNET -- August 20, 2011, 10:14:56 AM    
> Hi,
> I installed Scilab on my wife's computer, winXp. And as Samuel said it appears in the
> Scilab development category on her computer. The only main difference between my and
> her
> computer is I am running Windows 7 64 bit, and she has winXp.
> Thanks, David



See availabity ;)  current version packaged only for Windows not Windows 64 

Allan
Comment from Tiago Cristiani -- December 14, 2011, 06:37:37 AM    
Actually you can run it in Win 64bit, since you use the scilab 32bit version :)
It does really work. Thanks for such usefull tool! 
Comment from gomez batres -- June 24, 2012, 08:23:13 PM    
sry. how to use this atoms. i try but no result for me.. am han amateur user to scilab
Comment from Mohit Kumar -- July 27, 2012, 09:31:13 AM    
Is it possible to make exe of scilab code for function.
(say like function[x]=test_fn(inp1,inp2))
I want to run this function from command line is it possible?
If yes then could you please let me know how?
Comment from Rémi Antoine -- July 27, 2012, 03:52:53 PM    
Hello,

I have created a .sce and would like to make it a "blackbox" for the users.
That's why I'm
looking for a way to make a .exe from my .sce.

I don't get how scetoexe works. Could you please explain the steps to follow to make it
work?

Thank you!

Rémi 
Answer from Samuel Gougeon -- July 27, 2012, 04:12:03 PM    
Hello,

> I don't get how scetoexe works. Could you please explain the steps to follow to make
it
work?

You should have a look at the example:
~\demos\example.sce is processed by the script ~\demos\scetoexe.dem.sce
A C compiler Visual Studio must be installed to run scetoexe.

Hope this helps
Samuel
Comment from Rémi Antoine -- July 30, 2012, 03:46:46 PM    
Hello,
Thank you Samuel for your help. I tried to run scetoexe on the example and still I don't
manage to make it work. Here is how I proceed :
First I launch every .sci from the file "scetoexe_0.1/macros".
Then I launch "scetoexe.dem.sce". 
And I get this error message :

-->exec('C:\Documents and
Settings\rantoine\Desktop\scetoexe_0.1-4.bin.windows\scetoexe_0.1\demos\scetoexe.dem.sce',
-1)
 !--error 999 
libraryinfo : Bibliothèque invalide scetoexelib.
at line       2 of function scetoexe_getRootPath called by :  
scetoexe_generate(scetoexe_getRootPath() + "/demos/example.sce", TMPDIR +
"/example");
at line       5 of exec file called by :    
exec('C:\Documents and
Settings\rantoine\Desktop\scetoexe_0.1-4.bin.windows\scetoexe_0.1\demos\scetoexe.dem.sce',
-1)

Thank you,

Rémi 

Answer from Samuel Gougeon -- July 30, 2012, 04:10:00 PM    
Hi Rémi,

As for any external toolbox set manually, you must
1) unzip it, and put its directory as a subdir of SCI\contrib
2) quit scilab and restart it. Then in the Console you should have a Toolboxes menu
   (Modules, in french). You should see in it all external toolboxes set in
    SCI\contrib\* and not autoloaded through the ATOMS protocol (the ATOMS modules
    are also installed in SCI\contrib\).
3) Just select scetoexe. This exec the SCI\contrib\scetoexe\loader.sce file
   that declares all macros in a library, thanks to 
   ~\SCI\contrib\scetoexe  \etc\scetoexe.start called by loader.exe

Then the macros, the help pages, the demos... become usable.

This should help you using it ;)

Regards
Samuel
Comment from Rémi Antoine -- July 30, 2012, 05:02:31 PM    
Hello Samuel, thank you once again for your help! 

I can't copy/paste "scetoexe_0.1" into "SCI\contrib" : the access is
denied. I think this
is because "SCI\contrib" is in read only mode but I can't switch it.

Regards,

Rémi
Answer from Samuel Gougeon -- July 30, 2012, 05:10:59 PM    
> I can't copy/paste "scetoexe_0.1" into "SCI\contrib" : the access
is
> denied. I think this is because "SCI\contrib" is in read only mode but 
> I can't switch it.

OK, so just exec("loader.sce") wherever the loader.sce is will load the 
module as if you would use the menu
Comment from Rémi Antoine -- July 31, 2012, 10:15:48 AM    
Hello, 

Sorry for bothering you Samuel! If I just execute loader.sce (without doing anything else)
here is the error message I get :   

-->exec('C:\Documents and Settings\rantoine\Local Settings\Temp\Répertoire temporaire
1
pour scetoexe_0.1-4.bin.windows.zip\scetoexe_0.1\loader.sce', -1)
exec(get_absolute_file_path("loader.sce")+"etc\"+"scetoexe.start");
                                                                   !--error 241 
Le fichier "C:\Documents and Settings\rantoine\Local Settings\Temp\Répertoire
temporaire 1
pour scetoexe_0.1-4.bin.windows.zip\scetoexe_0.1\etc\scetoexe.start" n'existe pas.
at line      10 of exec file called by :    
exec('C:\Documents and Settings\rantoine\Local Settings\Temp\Répertoire temporaire 1 pour
scetoexe_0.1-4.bin.windows.zip\scetoexe_0.1\loader.sce', -1)

I don't know if you get the few french words?

Thank you for your help!Have you been working with Scilab for a long time?

Regards,

Rémi
Answer from Samuel Gougeon -- July 31, 2012, 10:31:56 AM    
Hello Rémi,

I am afraid that this has nothing to do with scetoexe. 
You would be kind to contact me in french on my email (at 
the bottom of the page. I do not have yours in the list) 
to fix your issue.
For the time being, i assume that you have checked that
C:\Documents and Settings\rantoine\Local Settings\Temp\Répertoire
> temporaire 1
> pour scetoexe_0.1-4.bin.windows.zip\scetoexe_0.1\etc\scetoexe.start
actually exists. Have you?
In your email, please give the result of
dir "C:\Documents and Settings\rantoine\Local Settings\Temp\Répertoire temporaire 1
pour
scetoexe_0.1-4.bin.windows.zip\scetoexe_0.1"

Read you soon
Regards
Samuel
Comment from Akash Nigam -- May 19, 2017, 12:00:16 PM    
Hi everyone,

I have been trying to convert a .sce file to an .exe file from some time. However, it
gives error undefined variable in all cases.

Can anyone clearly tell the steps to convert (including syntax in layman terms please)
from .sce to .exe. The help part is not very clear for understanding the exact syntax. I
would be highly obliged.
Comment from Rohan Singh -- June 11, 2018, 09:08:16 AM    
Hi everyone,

I am trying to make an exe file in Scilab 6.0.0 but facing the below error.
I downloaded the 0.1.1. version of sce to exe toolbox and installation was done 
successfully but while loading the toolbox ,below error is coming.





Start sce to exe Toolbox
	Load macros
atomsLoad: An error occurred while loading 'scetoexe-0.1.1':
	lib: 
C:\Users\ROHIT~1.GUP\AppData\Local\SCILAB~1.0\contrib\scetoexe\0126D9~1.1\macros\ is not 
a valid lib path.

Can someone help with this problem?

Regards
Rohan
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.