[Qt-creator] Building with a Custom Process Step

Tomás Ortí tomasorti at gmail.com
Mon Mar 1 15:03:22 CET 2010


Well, what I see is that if I set:

chmod 644 test.bash

QtCreator displays:

Running build steps for project mser...
Could not start process /home/notroot/test.bash
Error while building project mser
When executing build step 'Custom Process Step'

And if I set

chmod 777 test.bash

QtCreator displays:

Running build steps for project mser...
Starting: /home/notroot/test.bash
Exited with code 255.
Error while building project mser
When executing build step 'Custom Process Step'

The file test.bash contains:

echo "Hello!"
exit 0


Thanks,
Tomas

On Feb 23, 2010, at 9:08 AM, ext Tomás Ortí wrote:

> Yes, Eike.
> I tried different things, like setting "chmod 777 test.bash", with no luck.
> Feel free to ask me any test. I would like to have this working.

Well, I have no idea, it works for me, both with Qt Creator 1.3.1 and current
dev snapshot.
> Exited with code 255.
That means that the "exit code" of your test.bash is 255. Values != 0 are
usually for indicating an error in the script, that's why Qt Creator stops with
an error.
>From the bash man page:
"Bash's exit  status  is the exit status of the last command executed in the
script."

++ Eike

> Thank you,
> Tomas.
>
> On Feb 22, 2010, at 3:27 PM, ext Tomás Ortí wrote:
>
> >
>  Hi.
>
> >
>  I'm trying to build a project from QtCreator, with a "Custom Process Step".
>
> >
>  I want QtCreator to execute a script before the "make" execution.
>
> >
>  When I click on Build All, I get this Compile Output:
>
> >
>
>
> >
>  Running build steps for project mser...
>
> >
>  Starting: /home/notroot/test.bash
>
> >
>  Exited with code 255.
>
> >
>  Error while building project mser
>
> >
>  When executing build step 'Custom Process Step'
>
> >
>
>
> >
>  Currently the test.bash only has an echo "Compiling..."
>
> >
>
>
> >
>  How can I achieve that?
>
>
> Just to make sure: did you make the test.bash executable? (i.e. can you run
> it from a terminal)
>
> Br,
> --
> Eike Ziller
> Software Engineer
> Nokia, Qt Development Frameworks
>
> Nokia gate5 GmbH
> Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
> Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
> Umsatzsteueridentifikationsnummer: DE 812 845 193
> Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori
>
> <ATT00001..txt>

-- 
Eike Ziller
Software Engineer
Nokia, Qt Development Frameworks

Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20100301/28a14dbd/attachment.html 


More information about the Qt-creator-old mailing list