Skip to main content



      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] Sat, 29 May 2021 22:15 Go to next message
Eclipse UserFriend
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 09:23 Go to previous messageGo to next message
Eclipse UserFriend
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 18:25 Go to previous message
Eclipse UserFriend
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: Tue Jul 01 01:11:29 EDT 2025

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

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

Back to the top