aek Moderator
|
posted July 29, 2004 11:35
To all Salvo users:It appears that MPLAB v6.6 does not read the $(BINDIR) directory of previously-saved projects correctly. Therefore, when loading a Salvo MPLAB-C18 project (in the SYSE folders), MPLAB will fail to build the project properly: code:
Clean: Deleting intermediary and output files. Clean: Done. Executing: "c:\mcc18\bin\mcc18.exe" -p=18C452 "main.c" -fo="main.o" /i"" /i"\..\..\tu1" /i"\..\..\..\inc" -DSYSE -DMAKE_WITH_FREE_LIB -DUSE_INTERRUPTS -Opa- C:\salvo\tut\tu5\main.c:14: unable to locate 'main.h' C:\salvo\tut\tu5\main.c:15: unable to locate 'salvo.h' error 1 spawning c:\mcc18\bin\cpp18 Halting build on first failure as requested. BUILD FAILED: Thu Jul 29 11:32:38 2004
The solution is to define the $(BINDIR) directory to be the directory in which the project file (.mcp) resides. To do this, select Project -> Build Options... -> Project, click on Browse... for Output Directory, $(BINDIR), and click on Select, then OK.code:
Clean: Deleting intermediary and output files. Clean: Done. Executing: "c:\mcc18\bin\mcc18.exe" -p=18C452 "main.c" -fo="main.o" /i"C:\salvo\tut\tu5\syse" /i"C:\salvo\tut\tu5\syse\..\..\tu1" /i"C:\salvo\tut\tu5\syse\..\..\..\inc" -DSYSE -DMAKE_WITH_FREE_LIB -DUSE_INTERRUPTS -Opa- Executing: "c:\mcc18\bin\mcc18.exe" -p=18C452 "isr.c" -fo="isr.o" /i"C:\salvo\tut\tu5\syse" /i"C:\salvo\tut\tu5\syse\..\..\tu1" /i"C:\salvo\tut\tu5\syse\..\..\..\inc" -DSYSE -DMAKE_WITH_FREE_LIB -DUSE_INTERRUPTS -Opa- Executing: "c:\mcc18\bin\mcc18.exe" -p=18C452 "mem.c" -fo="mem.o" /i"C:\salvo\tut\tu5\syse" /i"C:\salvo\tut\tu5\syse\..\..\tu1" /i"C:\salvo\tut\tu5\syse\..\..\..\inc" -DSYSE -DMAKE_WITH_FREE_LIB -DUSE_INTERRUPTS -Opa-Executing: "C:\Program Files\MPLAB IDE\MCHIP_Tools\mplink.exe" /l"C:\mcc18\lib" /k"c:\mcc18\lkr" "C:\mcc18\lkr\18c452.lkr" "C:\salvo\tut\tu5\main.o" "C:\salvo\tut\tu1\isr.o" "C:\salvo\src\mem.o" "C:\salvo\lib\mcc18\sfc18sfa.lib" /m"C:\salvo\tut\tu5\syse\tu5lite.map" /o"tu5lite.cof" MPLINK 3.80, Linker Copyright (c) 2004 Microchip Technology Inc. Errors : 0 MP2COD 3.80, COFF to COD File Converter Copyright (c) 2004 Microchip Technology Inc. Errors : 0 MP2HEX 3.80, COFF to HEX File Converter Copyright (c) 2004 Microchip Technology Inc. Errors : 0 Loaded C:\salvo\tut\tu5\syse\tu5lite.cof BUILD SUCCEEDED: Thu Jul 29 11:35:08 2004
For example, to build the tu5lite project in salvo\tut\tu5\syse\tu5lite.mcp, set that project's $(BINDIR) to c:\salvo\tut\tu5\syse------------------
[This message has been edited by aek (edited July 29, 2004).] IP: 63.203.232.106 |