I'm building my project via the command line using something like this:
"C:\Program Files\Keil\UV4\Uv4.exe" -b ".\myProj.uvproj"
The problem is that this command does not send anything to the stdout. The only option I see is to output the results to a file, using the -o option. Is there any way of just showing the results in the same command prompt window without resorting to some ugly hack?
Also, is there any way to perform a clean on a project via the command line?
I don't really understand why it can't output directly to stdout.
Largely because Windows GUI programs (like uVision) don't have any stdout stream in the first place, so nothing to output to.
This is real pain in an automated build process / production software environment! Isn't there some other option?
Thanks for the answer; I'm doing roughly the same thing, but it feels like a hack. I don't really understand why it can't output directly to stdout. I though that I missed something in the documentation...
I ran into this when integrating my project with Eclipse. I have a batch file called "build.cmd" with the following contents:
c:\keil\uv4\uv4.exe -b RSN_BB0.uvproj -o errors.txt type errors.txt
Not sure if it's doable without an intermediate file, I tried various tricks with stdout to no avail.
View all questions in Keil forum