Special thanks go to Xiaofan Chen for getting the environment set up on his system and adding to the checklist below.
COGNIVIS=C:\embed EmbedInc=C:\embed include=c:\apps\msvc\include lib_sys=c:\apps\msvc\lib MSVCDir=c:\apps\msvc Path=... c:\apps\vstudio\common\msdev98\bin ... temp=c:\temp tmp=c:\temp
COGNIVIS and EMBEDINC should have been created by the installation procedure. Both should contain the pathname of where you installed the software to. In the example above, the software installation directory was C:\embed. The installation procedure should also have added the COM directory within the installation directory to the PATH variable.
MSVCDIR must contain the installation directory name of the Visual C++ compiler. The compiler installation will put the Visual Studio part of the compiler in a different place. The common\msdev98\bin directory within the Visual Studio installation directory must also be added to the command search path (PATH variable).
INCLUDE is the list of directories where system include files are stored. It would usually contain the full name of the INCLUDE directory within the Visual C++ installation directory.
LIB_SYS is the list of directories where system libraries are stored. You need not set LIB since it will be created each time when needed by the build scripts. It will contain the complete list of directories to search for linkable library files. This will be the list needed to find the Embed Inc libraries, which the build scripts know about, plus whatever you put in LIB_SYS.
TEMP and TMP should already be present on your system.
As another example, below are these environment variables on Xiaofan's system. He also installed the PIC development environment, which requires MPLABDIR and DSPICDIR:
COGNIVIS=C:\embedinc
dsPICdir=C:\Program Files\Microchip\MPLAB ASM30 Suite
EMBEDINC=C:\embedinc
INCLUDE=C:\Program Files\Microsoft Visual Studio\VC98\include;....
lib_sys=C:\Program Files\Microsoft Visual Studio\VC98\lib
MPLABDIR=C:\Program Files\Microchip\MPASM Suite
MSVCDir=C:\Program Files\Microsoft Visual Studio\VC98
Path=C:\embedinc\com;C:\Program Files\Microsoft Visual Studio\VC98\bin; ...
TEMP=C:\DOCUME~1\Test\LOCALS~1\Temp
TMP=C:\DOCUME~1\Test\LOCALS~1\Temp
Symbolic links are manipulated with the SLINK command, and are shown with the directory list command L.
The only required symbolic link is COGNIVISION_LINKS in the system root directory ("/" using Embed Inc portable pathnames) pointing to the software installation directory ("(cog)" using Embed Inc portable pathnames). This link should have been created by the software installation procedure. You can verify this by running l /. If the link is not present, you can create it by running the command slink /cognivision_links (cog).
If you want to try the "big bang" test, try running build_base. If that works, everything is fine and you've just rebuilt all the "base" libraries and utility programs.
If that doesn't work or you want to test things incrementally, follow these steps:
If that doesn't work, you can decompose BUILD_PAS into smaller steps. BUILD_PAS is a script, so running "doc build_pas" will display its contents. You can see that the first thing BUILD_PAS does is to run COMPILE_PAS, which runs SST. Try running SST directly for starters: sst hello.pas. This should produce HELLO.C. Once that is working, run compile_c hello which should produce HELLO.OBJ from HELLO.C. Keep following the cookie crumbs in the BUILD_PAS script until you find out what the problem is and fix it. Most likely one or more environment variables are not set up correctly.