Skip to main content
Associate III
January 23, 2024
Solved

Where is the makefile generated by CubeIDE?

When I build a project I noticed that the command `make -j9 all` is run, which suggests me that there is Makefile somewhere, but it is not in my project folder. 

Does anybody know  where I can find it? 

I am working with a Nucleo-F446RE. 

    This topic has been closed for replies.
    ubaldotBest answer
    Associate III
    January 23, 2024

    Ok. I found them in ./Debug and ./Release, depending on how you build your project. 

    10 replies

    ubaldotAuthor
    Associate III
    January 23, 2024

    Found! 

    Andrew Neil
    Super User
    January 23, 2024

    For the benefit of others who may come along with the same question, please describe where you found it.

    And mark that as the Solution.

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    ubaldotAuthorBest answer
    Associate III
    January 23, 2024

    Ok. I found them in ./Debug and ./Release, depending on how you build your project. 

    ubaldotAuthor
    Associate III
    January 23, 2024

    ... however, when going into any of these two folders and running make all you get errors like 

    arm-none-eabi-gcc: command not found

     

    Andrew Neil
    Super User
    January 23, 2024

    Probably because the IDE runs the makefile from its own internal "shell" - so you'd have to replicate that to make it work.

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    ubaldotAuthor
    Associate III
    January 23, 2024

    Any idea on how to do that? 

    Andrew Neil
    Super User
    January 23, 2024

    None at all!

    Are you on Windows or Linux?

    I think the IDE uses a Linux-like "shell"...

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    AScha.3
    Super User
    January 23, 2024

    I found this :

    AScha3_0-1706028750975.png

    and setting in project :

    AScha3_1-1706028852888.png

    seems not lying here:

    AScha3_2-1706028894701.png

     

    If you feel a post has answered your question, please click on " Best Answer ".
    ubaldotAuthor
    Associate III
    January 23, 2024

    I am on macos. Yes, I also think so. Is there any way to open an interactive "cube shell" on CubeIDE? 

    AScha.3
    Super User
    January 23, 2024

    I am on Linux . Not so much different - right ?

    If you feel a post has answered your question, please click on " Best Answer ".