News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

How behaves Build and Run F9 when making cross-compiling

Started by comsytec, December 04, 2012, 05:01:03 PM

Previous topic - Next topic

comsytec

How behaves Build and Run F9 when making cross-compiling ?
Normally it runs the EXE but what it will do when e.g. want to compile ELF for embedded system ?

comsytec

Log from run:

Checking for existence: C:\Work\IDEalCodeStudio\TestProjects\stm32f4-1\default\stm32f4-1.elf
Executing: "C:\Work\IDEalCodeStudio\TestProjects\stm32f4-1\default\stm32f4-1.elf"  (in C:\Work\IDEalCodeStudio\TestProjects\stm32f4-1\.)
Execution of '"C:\Work\IDEalCodeStudio\TestProjects\stm32f4-1\default\stm32f4-1.elf" ' in 'C:\Work\IDEalCodeStudio\TestProjects\stm32f4-1' failed.
Nothing to be done.


I think if not building for native system or in any other case the running request should be passed first to event handler and then try run as on native system
if not vetoed.


comsytec

I have an idea to solving this via dynamic event handlers but this does not seem to be system wide consistent way

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

comsytec

Simply I'm using ARM toolchain. Building can be achieved via Build and RUN menu item also.  But what does the RUN in this case. Using CB on Windows so surely cannot run obtained binary as native EXE.

MortenMacFly

Quote from: comsytec on December 05, 2012, 08:40:36 AM
Simply I'm using ARM toolchain. Building can be achieved via Build and RUN menu item also.  But what does the RUN in this case. Using CB on Windows so surely cannot run obtained binary as native EXE.
Build and run assumes you have a runnable target. If thats not the case, use just "Build". You can still do whatever you like (including move it to another target, run commands etc.) in the post-build steps.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]