User forums > Using Code::Blocks

NewLine spaces in Build Log window

(1/2) > >>

Tim:
Hi People,

When Building an ARM project with the following setting:-

Global Compiler settings/ Compiler Logging / "Full Command Line"

I see the "Build Log" window has the full command lines as expected, but
the text has no line space between each command line, making it difficult for me
to read the output. I would like to have a "NewLine" inserted before or after each
command line.

I did look at the compiler reference manual to see if their was a switch/option for a
newline but didn't notice one, So I presume it needs inserting before or after CodeBlocks
spawns the process.

Could somebody point me in the right direction to making this happen please.

I am using Windows XP.

Tim

oBFusCATed:
1. Can you show us the log?
2. Generally every command of the output is on a separate line. Isn't this the case for you?
3. Which compiler are you using?
4. Are you using the C::B build system or your project is using custom makefile?

Tim:
Hi,

Logs I see now and Logs I would like to see are below:
Yes, every command of the output is on a separate line.
I am using the C::B build system.

 


**********This is the output I get normally************

-------------- Build: Debug in Base-429-00 (compiler: GNU ARM GCC Compiler)---------------

arm-none-eabi-g++.exe  -mcpu=cortex-m4 -mthumb -g  -DDEBUG=1    -IInc -I"C:\emIDE V2.20\arm\arm-none-eabi\include"  -c c:\EM_workspace\Base-429-00\Setup\startup.S -o obj\Debug\Setup\startup.o
arm-none-eabi-gcc.exe  -mcpu=cortex-m4 -mthumb -g  -DDEBUG=1    -IInc -I"C:\emIDE V2.20\arm\arm-none-eabi\include"  -c c:\EM_workspace\Base-429-00\Src\main.c -o obj\Debug\Src\main.o
arm-none-eabi-gcc.exe  -o bin\Debug\Base-429-00.elf @obj\Debug\objects.obj  -Wl,-Map -Wl,bin\Debug\Base-429-00.elf.map -Wl,--gc-sections -n -Wl,-cref -mcpu=cortex-m4 -mthumb  -TSetup/Flash.ld 
Output size is 6.61 KB
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings (0 minutes, 0 seconds)
 

**********This is the output I would like to see************

-------------- Build: Debug in Base-429-00 (compiler: GNU ARM GCC Compiler)---------------

arm-none-eabi-g++.exe  -mcpu=cortex-m4 -mthumb -g  -DDEBUG=1    -IInc -I"C:\emIDE V2.20\arm\arm-none-eabi\include"  -c c:\EM_workspace\Base-429-00\Setup\startup.S -o obj\Debug\Setup\startup.o

arm-none-eabi-gcc.exe  -mcpu=cortex-m4 -mthumb -g  -DDEBUG=1    -IInc -I"C:\emIDE V2.20\arm\arm-none-eabi\include"  -c c:\EM_workspace\Base-429-00\Src\main.c -o obj\Debug\Src\main.o

arm-none-eabi-gcc.exe  -o bin\Debug\Base-429-00.elf @obj\Debug\objects.obj  -Wl,-Map -Wl,bin\Debug\Base-429-00.elf.map -Wl,--gc-sections -n -Wl,-cref -mcpu=cortex-m4 -mthumb  -TSetup/Flash.ld

Output size is 6.61 KB
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings (0 minutes, 0 seconds)

oBFusCATed:
Log it as a feature request then.
For me such log would look odd given that I've used to the normal log, but who knows it might be a good idea.

Tim:
Yes, I could Log it as a feature request, I did this with EmBitz years ago, but no
updates were released and the app wasn't open source. This time I was hoping
to try and make the change myself and use the experience as a "way in" to gain
a better understanding of the way CodeBlocks takes control of the compiling
process. Hence the request for a pointer in the right direction.  "Such as" is this
compiling process control "hard coded" in c++ or maybe controlled by an
intermediate script? And which script or c++ file to look at first ?

CodeBlocks is so large and complex from an outsiders point of view, that without a
pointer in the right direction, it's easier to give up at the first hurdle and go back to using
Eclipse, which I really don't want to do without at least "having a go" at something simple
like adding a newline in the right place.

As it stands for me, I could probably write a stand alone win32 app to generate an STM32 project,
but such a generator won't help me or others if I can't also integrate a remote server such as J-link
or Eblink into CodeBlocks. To start looking into such integration is way to complex for me to
test the water with, But  'looking' into adding a 'newline' seems about the right place to start.

'If' any code comes out of the 'looking', I would put it up on Github.

Tim

Navigation

[0] Message Index

[#] Next page

Go to full version