Page 1 of 1

Trouble finding file.

Posted: Fri Feb 06, 2009 9:18 am
by JEIhrig
I have written a program that reads from one file and writes to another. It works fine on the command line but when I run it in codelite I get the message:
/usr/local/bin/le_exec.sh: 22: pipes.pgm: not found

pipes.pgm is an input file to my program, it might also be helpful to know that it is getting that filename through a command line argument I set by right clicking a folder in workspace view, selecting "settings", and typed "pipes.pgm myOutput.pgm 1" (without the quotes) into the Command Arguments entry. I then tried changing the Working Directory to the absolute path but it still did not find the file.
I then went to the "Custom Build" tab (Still within settings) and put the absolute path into the Working Directory. I am sure that I am missing something simple here. If I can figure this out I will probably switch over to CodeLite more permanently... I've been using KDevelop, but I really like some of the features this has that I don't see in KDevelop.

Anyway, any advice anyone can give me would be much appreciated!

Jim

Re: Trouble finding file.

Posted: Fri Feb 06, 2009 10:58 pm
by eranif
The exact command line that codelite ran cab be found in the 'Output' tab, make sure that the paths are correct there.

Eran

Re: Trouble finding file.

Posted: Sat Feb 07, 2009 9:43 pm
by JEIhrig
Oh, ok.. The command is:

xterm -title ' pipes.pgm myOutput.pgm 1' -e /bin/sh -f /usr/local/bin/le_exec.sh pipes.pgm myOutput.pgm 1
But I think it should be:
xterm -title ' pipes.pgm myOutput.pgm 1' -e /bin/sh -f /usr/local/bin/le_exec.sh ./Assignment2 pipes.pgm myOutput.pgm 1

So I have added ./Assignment2 to the "Command" text box in "settings". It seems to work now. I wonder if it was there by default and I accidentally deleted it...

Anyway, thanks! Problem solved!
Jim

Re: Trouble finding file.

Posted: Sat Feb 07, 2009 9:51 pm
by eranif
By default the 'Command' contain:

Code: Select all

./$(ProjectName)
You might have deleted it...
Eran