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
(11729 downloads for this version - 31405 downloads for all versions)
Details
Version
0.1.1
A more recent valid version exists: 0.2
Author
Allan Cornet
Owner Organization
Scilab
Maintainers
Allan CORNET
Administrator ATOMS
Samuel Gougeon
License
Creation Date
October 2, 2012
Source created on
Scilab 5.4.x
Binaries available on
Scilab 5.4.x:
Windows 32-bit Windows 64-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 (3)
[44.62 kB]
Source code archive
makes it available for Scilab 5.4
[56.32 kB]
Windows 32-bit binary for Scilab 5.4.x
Windows 32-bit
Automatically generated by the ATOMS compilation chain

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

News (0)
Comments (4)     Leave a comment 
Comment from Wojtek Witkowski -- May 29, 2013, 03:34:46 PM    
Hello,
I tried to run scetoexe on the example and I get this error message :

--error 999 
copyfile: Nieprawidłowa wartość parametru wejściowego
nr 1: oczekiwano prawidłowej nazwy
pliku lub katalogu.
at line      15 of function copyTemplate called by :  
at line      54 of function scetoexe_generate called by :  
scetoexe_generate("C:\Program Files\scilab-5.4.0\scetoexe\demos\example.sce",
"C:\temp\example");
 
What is wrong? Please help me?
Thanks,
Wojtek
Comment from Piotr Muskietorz -- May 30, 2013, 11:58:10 AM    
I have the same problem.

Do you know what is wrong yet?

Thanks,
Piotr
Comment from Piotr Muskietorz -- May 30, 2013, 12:41:49 PM    
I have the same problem.

Do you know what is wrong yet?

Thanks,
Piotr
Comment from Gilles Pelfrene -- August 21, 2013, 09:34:41 AM    
Hello,

I'm trying to use the scetoexe module as suggested above but I'm facing some difficulties
when running the demo files. Could someone help me with this please ?

Details on how I've proceeded :

- I have followed indications given in
scetoexe/0.1
scetoexe/0.1.1

- I'm running on Win32 & Scilab 5.4.1, I've installed Visual Studio 2010 Express
Desktop
=> findmsvccompiler() normally returns "msvc100express"

- as explained in the second link, I have unzipped scetoexe into the directory Contrib and
I have installed the module. All macros and help pages are normally detected. And then
I've have been trying to exec scetoexe.dem.sce. Please find below the successive errors I
encountered and please tell me where I'm wrong :

- First error was :

-->exec('C:\Users\gpelfrene\AppData\Roaming\Scilab\scilab-5.4.1\atoms\scetoexe\0.1.1-1\demos\scetoexe.dem.sce',
-1)
 !--error 999
copyfile : Valeur erron?e de l'argument d'entr?e n?1 : Un nom de fichier ou un r?pertoire
valide attendu.
at line      15 of function copyTemplate called by :  
at line      54 of function scetoexe_generate called by :  
scetoexe_generate(scetoexe_getRootPath() + "/demos/example.sce", TMPDIR +
"/example");
at line       5 of exec file called by :    
4.1\atoms\scetoexe\0.1.1-1\demos\scetoexe.dem.sce', -1

- Going to the problematic function copyTemplate() in scetoexe_generate.sci, on line 22, I
found that there were missing files among the filesname list called FILESTOCOPY.
Actually, only 7 of them were present and not 9 as required by the size of FILESTOCOPY
variable.

- In order to check, I copied them manually from the downloaded directory :
-> C:\Program Files\scilab-5.4.1\contrib\scetoexe\src\c
- to the working directory :
-> C:\Users\gpelfrene\AppData\Roaming\Scilab\scilab-5.4.1\atoms\scetoexe\0.1.1-1\src\c

- then, executing scetoexe.dem.sce worked well but it seems that scetoexe_buildsln()
function just built nothing since no exe file is found by the command line :
dos("start
"+TMPDIR + "/example/example.exe");

and it returns the following error message :
Windows cannot find
'C:\Users\GPELFR~1\AppData\Local\Temp\SCI_TMP_5580_/example/example.exe'. Make sure you
typed the name correctly, and then try again.

- then, in the console, I tried to understand this error by executing the line in
scetoexe_buildsln.sci where compilation should occur :
[a,b,c]=dos("devenv " + TMPDIR + "/example/example.sln" + "
/Rebuild Release|Win32")

- but I get the following error :

 c  =
 
    255.  
 b  =
 
  F  
 a  =
 
!'devenv' is not recognized as an internal or external command,  !
!                                                                !
!operable program or batch file.                                 !

- then I have no idea anymore. Could anyone help me please ?

Thanks very much in advance,
Cheers,
Gilles. 
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.