[Users-fr] Création d'un executable à partir d'un script

redgil77 gpelfrene at varelintl.com
Mar 20 Aou 17:37:09 CEST 2013


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 <http://atoms.scilab.org/toolboxes/scetoexe/0.1>  
scetoexe/0.1.1 <http://atoms.scilab.org/toolboxes/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.



--
View this message in context: http://mailinglists.scilab.org/Creation-d-un-executable-a-partir-d-un-script-tp3899995p4027256.html
Sent from the Liste utilisateur (en français) mailing list archive at Nabble.com.



Plus d'informations sur la liste de diffusion users-fr