View Single Post
Old 08-07-2016, 11:45 PM   #3 (permalink)
thingstodo
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,456

ChargE (not yet running) - '92 Mazda MX6 LX
90 day: 33.89 mpg (US)

Ford Prefect - '18 Ford F150 XLT XTR
Thanks: 740
Thanked 535 Times in 430 Posts
Hi Paul,

I got the AC Controller to build. But the DC Controller gives me this message when the project opens

Warning: Project "testdc1" appears to have a CPP source file. The project may fail to build if you are using a C compiler.

And YES, it does fail to compile ... but not the way I'd expect?


make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory 'C:/Project/testdc1.X'
make -f nbproject/Makefile-default.mk dist/default/production/testdc1.X.production.hex
make[2]: Entering directory 'C:/Project/testdc1.X'
make[2]: Leaving directory 'C:/Project/testdc1.X'
nbproject/Makefile-default.mk:84: recipe for target '.build-conf' failed
make[1]: Leaving directory 'C:/Project/testdc1.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
make[2]: *** No rule to make target 'build/default/production/UART4011.o', needed by 'dist/default/production/testdc1.X.production.hex'. Stop.
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2

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

What did I miss? I've messed around with this for a few hours on and off. I went through some of the MPLab X docs on what to do to get rid of
'no rule to make target ...' but the include files are right, the external definitions are fine ...

And this line

nbproject/Makefile-default.mk:84: recipe for target '.build-conf' failed


confuses me.


What I did, after installing MPLab X and the XC16 compiler:
- add new project
- Microchip embedded - standalone - next
- select device - dsPIC30F4011 - next
- PICkit 3 - next
- XC16 (v1.26) in default directory - next
- testDC1 in project location C:\Project with only 'set as main project' checked

In the last step I have tried most combinations of check boxes.

Is it something obvious I did wrong? or missed?

Mike
  Reply With Quote