This error, usually appearing as:
make[2]: *** No rule to make target `../Path/To/HeaderFile.h', needed by `build/Embedded/production/_ext/_DOTDOT/Path/To/ObjectFile.o'. Stop.
make[2]: Leaving directory `/c/Project/Directory'
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory `/c/Project/Directory'
make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 6s)
can mean several things. However, one common cause of this is in projects where making a change to a single header file can trigger changes in many other files in the project due to conditional compilation statements. In this situation, the regular Build or Debug buttons only build files that have been physically changed by you since the last build. In other words, you need make to rebuild all files in your project to ensure that conditional includes are picked up based on the one change you made to the header file.
To fix the problem, click the Clean and Build button before you click the Debug button.
Some other common ways to run into this message are:
•Locked files or access permissions problems with MPLAB X project files
•Missing or corrupted primary Makefile in a project (can be remedied by making a new project if the primary Makefile was accidentally deleted)
•Specifying no build configuration, or an invalid build configuration (more likely to occur when writing your own make command line with CONF=configuration name)
•Copying a project from one PC to another or one operating system to another.
Favorieten/bladwijzers