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 Go to next message
Jason Gauthier is currently offline Jason GauthierFriend
Messages: 2
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.
Re: "No rule to make file" after moving a directory [message #1855483 is a reply to message #1841792] Mon, 17 October 2022 13:23 Go to previous messageGo to next message
Albi SHAHU is currently offline Albi SHAHUFriend
Messages: 1
Registered: October 2022
Junior Member
Hello Jason,

I have the same issue as you. Did you solve it ?

Thanks for your help
Re: "No rule to make file" after moving a directory [message #1855487 is a reply to message #1855483] Mon, 17 October 2022 22:25 Go to previous message
Jason Gauthier is currently offline Jason GauthierFriend
Messages: 2
Registered: May 2021
Junior Member
I'm not sure. It was quite awhile back. However, it seems that I've caught STM32CubeMX projects making eclipse reference links instead of copying the files. I've fixed this by making sure "Copy only necessary library files" is selected in code generation and not "Add necessary library files as reference.."
Previous Topic:Start GDB with "target extended-remote"
Next Topic:Is there a way to modify GNU Linker Error Parser options for a headless build?
Goto Forum:
  


Current Time: Wed Feb 05 09:55:49 GMT 2025

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

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

Back to the top