Microchip
直播中

秦涌安

7年用户 193经验值
私信 关注
[问答]

PIC18f66J94编译错误

嗨,我是新的PIC18F66 J94控制器,并试图编译它在MPLABX,但我正在获得编译错误如下:干净的成功(总时间:143MS)使-F NBPix/MaFixFiel-Debug。MK子项目=。建立混淆(2):***没有规则,使目标“构建/默认/生产/源/主。O”,NE由DIST/默认/生产/测试.X.生产。使[ 1 ]:**[构建BILF]错误2]使:[2]:进入目录'E//KNGHH/LUBE控制/输入/测试.X'使-nbPosi/Maun-Fiel-Deult.MK DIST/Deult/Dealth/Test.x.Puth.xHug(2):进入目录'E:/KNGHN/LUBE控制/输入/测试.X'使[2 ]:LeaviNG目录:E//KNGHH/LUBE控制/输入/测试.x'nbPosi/MaFaMeCurrase.MK: 78:目标''.Buffic CONF 'FultEdf[[ 1 ] ]:留下目录'E//KNGHH/LUBE控制/输入/Test.x'NbPosi/MaFix.IMP.MK:39:time'Buff.Buff-IMPL 'FrueBuffBug失败的配方(退出值2,总时间:18)我在Microchip中引用了一些关于这个问题的链接。WijoTo.com/TLS0101:Lab1,但是问题没有解决。有人能提出一些解决这个问题的方法吗?此外,我还安装了MPLAB XC8编译器V1.38编译器,但在添加新项目时,它不会显示在编译器列表中。我需要一些设置来添加XC8编译器,比如路径环境吗?斯库马

以上来自于百度翻译


      以下为原文

    Hi,
I am new to PIC18F66J94 Controller and trying to compile it in MPLABX but i am getting compilation error as following.
CLEAN SUCCESSFUL (total time: 143ms)
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[2]: *** No rule to make target 'build/default/production/Source/main.o', needed by 'dist/default/production/test.X.production.hex'. Stop.
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
make[1]: Entering directory 'E:/KNSINGH/Lube Control/Input/test.X'
make -f nbproject/Makefile-default.mk dist/default/production/test.X.production.hex
make[2]: Entering directory 'E:/KNSINGH/Lube Control/Input/test.X'
make[2]: Leaving directory 'E:/KNSINGH/Lube Control/Input/test.X'
nbproject/Makefile-default.mk:78: recipe for target '.build-conf' failed
make[1]: Leaving directory 'E:/KNSINGH/Lube Control/Input/test.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed

BUILD FAILED (exit value 2, total time: 182ms)


I had referred to some link about this problem in microchip.wikidot.com/tls0101:lab1 but the problem is not resolved.
Can anyone please suggest some solution to this problem?

Also i have installed MPLAB XC8 Compiler V1.38 compiler but it is not displayed in the list of compiler when adding new project. Do i need some setting for adding xc8 compiler like path environment?
Regards
Kumar
   Attached Image(s)

回帖(1)

杨阳

2019-6-10 12:20:53
我重新安装了编译器,在安装的时候检查了这些问题,解决了问题。谢谢。将设置应用到这台机器的所有用户。…向路径环境变量添加XC8。...将头文件路径添加到MCC_INCLUDE环境变量(由MPLAB C18工具使用)...更新MPLAB IDE,以便为所有现有的C18(mcc18)项目使用XC8编译器。……使用C18链接器、库管理员和汇编程序的XC8。

以上来自于百度翻译


      以下为原文

    I had reinstalled the compiler and checked these while installing and the problem is solved. Thanks.
Apply settings to all users of this machine. ...Add xc8 to the PATH environment variable. ...Add header file path to MCC_INCLUDE environment variable (used by the MPLAB C18 tools) ...Update MPLAB IDE to use the XC8 compiler for all existing C18 (mcc18) projects. ...Use XC8 for the C18 Linker, Librarian, and Assembler.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分