Cannot compile example in flex_scicos_0_30.pdf

Forum related to the FLEX boards

Moderator: paolo.gai

Locked
BlindSight
Newbie
Posts: 4
Joined: Mon Mar 10, 2008 5:40 am

Cannot compile example in flex_scicos_0_30.pdf

Post by BlindSight » Mon Mar 10, 2008 6:46 am

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

paolo.gai
Administrator
Posts: 875
Joined: Thu Dec 07, 2006 12:11 pm

Re:Cannot compile example in flex_scicos_0_30.pdf

Post by paolo.gai » Mon Mar 10, 2008 9:11 am

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

BlindSight
Newbie
Posts: 4
Joined: Mon Mar 10, 2008 5:40 am

Re:Cannot compile example in flex_scicos_0_30.pdf

Post by BlindSight » Tue Mar 11, 2008 5:30 pm

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

paolo.gai
Administrator
Posts: 875
Joined: Thu Dec 07, 2006 12:11 pm

Re:Cannot compile example in flex_scicos_0_30.pdf

Post by paolo.gai » Tue Mar 11, 2008 6:32 pm

Good to know! I will add a note in the next version of the EE tutorials...

PJ

Locked