Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » "No rule to make file" after moving a directory
"No rule to make file" after moving a directory [message #1841792] Sun, 30 May 2021 02:15
Jason Gauthier is currently offline Jason GauthierFriend
Messages: 1
Registered: May 2021
Junior Member
Greetings,

I created a project using STM32CubeMX, and I'm using STM32CubeIDE as the IDE for the project. The directory structure consists of some of the files generated by CubeMX. and then the eclipse project.

For portability, I moved all the directories that were outside of the eclipse project environment into it. I then changed al the includes to be 'workspace' includes (and libraries as well)
This way when I pull the source to different machines they don't have to be in the same folder structure.

However, upon doing so I realized that something is generating the Makefiles with the wrong directory references. When I attempt to build I get this error:

make: *** No rule to make target 'C:/Users/jagau/Documents/stm32-adc-imu/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c', needed by 'Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.o'.  Stop.


C:/Users/jagau/Documents/stm32-adc-imu/ is the old path.
I've moved the Drivers directory to C:/Users/jagau/Documents/stm32-adc-imu/STM32CubeIDE.

I cannot figure out where this reference is!

Thanks for any help.
Previous Topic:Preserve whitespace between code and comment doesn't?
Next Topic:True post-build actions
Goto Forum:
  


Current Time: Tue Dec 07 16:40:18 GMT 2021

Powered by FUDForum. Page generated in 0.02110 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top