cancel
Showing results for 
Search instead for 
Did you mean: 

H750-DISCO error: no rule to make altcp.c; needed by altcp.o

HMSEdinburge
Associate II

 

21:56:14 **** Incremental Build of configuration Debug for project H745_Ethernet_PING_CM7 ****
make -j8 all 
make: *** No rule to make target 'C:/Users/STM32CubeIDE/workspace_1.10.1/H745_Ethernet_PING/Middlewares/Third_Party/LwIP/src/core/altcp.c', needed by 'Middlewares/Third_Party/LwIP/altcp.o'.  Stop.
"make -j8 all" terminated with exit code 2. Build might be incomplete.

21:56:15 Build Failed. 1 errors, 0 warnings. (took 706ms)

 

Hello... i entered this error on H750-DISCO running on Ethernet MII , anyone can pls help, TQ!

9 REPLIES 9

So how did you get to this point?

Are you working from an example, or what?

 

How to write your question to maximize your chances to find a solution

mƎALLEm
ST Employee

This means altcp.c is missing in this path: Middlewares/Third_Party/LwIP/src/core or may be you don't need it, so try to remove it from your project tree.

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Yes its from an example...

ok i see what u mean, it is in the folder, albeit in a different path, could u advise how to point to the correct path? TQ!


@HMSEdinburge wrote:

Yes its from an example...


Which example? how you did get it? and did you modify it?

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

hello.. could anyone advise how to set the correct path:  .. LWIP\Middleware\Third_Party_LwIP\altcp.c?

TQ!

Hello,

This is a c file. You need to:

1- Ensure that this file is actually used in your project.

2- Ensure it's present physically in your drive (especially in the project folder).

3- Ensure it's added in your project i.e. in the project explorer in STM32CubeIDE (as shown in the figure you shared).

That's it.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Hello.. i have checked yes the file is there, but the path is wrong, its  in /Third_Party/LwIP/altcp.c  instead of /Third_Party/LwIP/src/core/altcp.c!  i think its something to set at file, property , C/C++ build/ Settings. Can anyone please help? TQ!

Remove it from your project tree and add it again using drag and drop.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.