Page 1 of 1

Cannot compile example in flex_scicos_0_30.pdf

Posted: Mon Mar 10, 2008 6:46 am
by BlindSight
Hi all,

I have not been able to successfully compile the example shown in flex_scicos_0_30.pdf even after re-installing both Cygwin and Erika Enterprise Basic. Below is a screen capture:

./compile.sh: line 1: reg: command not found
Usage: cygpath (-d|-m|-u|-w|-t TYPE) [-f FILE] [OPTION]... NAME...
cygpath [-c HANDLE]
cygpath [-ADHPSW]
Convert Unix and Windows format paths, or output system path information

Perhaps there are some other settings that need to be modified. I can successfully compile the example project for RT-Druid. Thanks.

David

Re:Cannot compile example in flex_scicos_0_30.pdf

Posted: Mon Mar 10, 2008 9:11 am
by paolo.gai
Hi David,

This is quite strange... and it\'s the first time I see it...

basically the line which is failing in the script is the following:

export EE_INSTALLDIR=`cygpath -ms \\`reg query HKEY_LOCAL_MACHINE\\\\\\\\\\\\\\\\SOFTWARE\\\\\\\\\\\\\\\\Evidence /v EE_InstallPath | awk \'/EE_InstallPath/{ print $3 }\'\\` | xargs cygpath`

Apart from its complexity, it basically calls the \"reg\" executable which is provided by every windows installation to query the Windows registry.

On my Win Vista installation, it stays into c:\\Windows\\System32\\reg.exe, and it is reachable from both the windows \"cmd\" commandline and from the cygwin bash.

That is the reason why the script is failing.

If for some reason you are missing the reg executable, you can still modify the first line of c:\\...\\Scilab-4.1.2\\contrib\\dspic\\compile.sh script with

export EE_INSTALLDIR=installpath

where installpath is the dir where you installed the Evidence tools. On my machine, where I installed the ERIKA Package in c:\\Evidence\\Evidence, it would have been:

export EE_INSTALLDIR=/cygdrive/c/Evidence/Evidence

I hope this helps...

bye

PJ

Re:Cannot compile example in flex_scicos_0_30.pdf

Posted: Tue Mar 11, 2008 5:30 pm
by BlindSight
Hello PJ,

Thanks for that. It now works. The program \'reg\' is not installed in my copy of Windows 2000 by default and needs to be selected from the \'Support\' directory in the Windows 2000 install CD.

David

Re:Cannot compile example in flex_scicos_0_30.pdf

Posted: Tue Mar 11, 2008 6:32 pm
by paolo.gai
Good to know! I will add a note in the next version of the EE tutorials...

PJ