On 1/16/06, Olin Lathrop wrote: > This is great. I'm glad to see it is actually possible to rebuild from the > source given what I supplied on the web site. Do you have a list of all the > things you had to do to get to this point? If so, I'll add it to a > documentation file and give you credit for it. > > So what are you going to do with this? > Right now it is just for fun. ;-) I am improving my programming skills (PIC and host side using C) by learning from the existing codes (PIC related). The following are the steps to get all the build scripts working. I think the website provides enough information except the "slink /cognivision_links (cog)" part. 1. To install embedinc build environment and the host source package a) development software http://www.embedinc.com/picprg/sw.htm install_picprg_dev.exe b) Host source code http://www.embedinc.com/pic/dload.htm install_source_public.exe I actually install other packages as well following the procedures in the embedinc website. c) one extra step sine the soft link "/cognivision_links" is not set yet This can be solved by execute "slink /cognivision_links (cog)" 2. C compiler (now only supports Visual C++ 6) setup Right now the build environment only supports Visual C++ 6. I am not so sure if it supports the latest free Visual C++.Net Express Edition plus the free Platform SDK. 3. Environment variable set up a) Existing: INCLUDE=C:\Program Files\Microsoft Visual Studio\VC98\include;.... TEMP=C:\DOCUME~1\Test\LOCALS~1\Temp TMP=C:\DOCUME~1\Test\LOCALS~1\Temp c) Newly added by step 1 or manually added EMBEDINC=C:\embedinc COGNIVIS=C:\embedinc dsPICdir=C:\Program Files\Microchip\MPLAB ASM30 Suite 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; ... 4) testing the above setup by running through the build scripts in the c:\embedinc\com directory. The following is the recommened sequence. pre_a) backup the c:\embedinc directory a) EasyProg firmware > build_prg_expic.bat b) EasyProg/ProProg host software > build_pic_prog_prog.bat > build_pic_read_prog.bat > build_test_picprg_prog.bat > build_picprg_lib.bat c) Embedinc Libs > build_file_lib.bat > build_string_lib.bat > build_sys_lib.bat > build_util_lib.bat d) all the base utility > build_base.bat 5) If there are some problems, go back to the previous steps. I think I only met one warning message in the whole process. The tests are carried out on Windows XP SP2 and MPLAB 7.30. The environment variables depend on the install locations of the softwares. Regards, Xiaofan -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist