Author Topic: How behaves Build and Run F9 when making cross-compiling  (Read 4459 times)

Offline comsytec

  • Multiple posting newcomer
  • *
  • Posts: 58
    • www.comsytec.com
How behaves Build and Run F9 when making cross-compiling
« on: December 04, 2012, 05:01:03 pm »
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 ?

Offline comsytec

  • Multiple posting newcomer
  • *
  • Posts: 58
    • www.comsytec.com
Re: How behaves Build and Run F9 when making cross-compiling
« Reply #1 on: December 04, 2012, 05:25:12 pm »
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.


Offline comsytec

  • Multiple posting newcomer
  • *
  • Posts: 58
    • www.comsytec.com
Re: How behaves Build and Run F9 when making cross-compiling
« Reply #2 on: December 04, 2012, 07:56:18 pm »
I have an idea to solving this via dynamic event handlers but this does not seem to be system wide consistent way

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: How behaves Build and Run F9 when making cross-compiling
« Reply #3 on: December 04, 2012, 08:16:03 pm »
I don't have any idea what are you talking about...
(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!]

Offline comsytec

  • Multiple posting newcomer
  • *
  • Posts: 58
    • www.comsytec.com
Re: How behaves Build and Run F9 when making cross-compiling
« Reply #4 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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: How behaves Build and Run F9 when making cross-compiling
« Reply #5 on: December 05, 2012, 08:47:52 pm »
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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ