Yeah, that works. Thanks a lot Martin!
2010/3/2 Martin Aumueller <[email protected]> > Hi Tomás, > > according to what you write below it seems that Creator tries to execute > your test.bash without the help of a shell. You should be able to fix it by > indicating to your kernel that test.bash has to be interpreted by bash: just > add > #! /bin/bash > as the first line to test.bash (and still make it executable with chmod). > Then your kernel will call '/bin/bash test.bash' for executing the custom > buildstep and it should work. > > Regards, > Martin > > > On Monday 01 March 2010 15:03:22 Tomás Ortí wrote: > > 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> > > > > >
_______________________________________________ Qt-creator mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-creator
