Page 1 of 1
Error Message while trying to compile
Posted: Sun Jun 07, 2015 1:26 pm
by AbhiKap55
I just installed CodeLite for my Mac running OS X 10.8 Mountain Lion. I tried running a simple hello world program just to test it. I right clicked on the main.cpp file where I wrote the code and clicked "compile" and it compiled successfully with 0 errors. Then I clicked on "Build and Run" and it gave me an errors saying: "Code lite terminal error. could not set current working directory (error 2: no such file or directory)" I have tried deleting and creating new workspaces and tried re installing the whole thing many times, but it gives the same error.
Any help would be greatly appreciated as I really need this working! Thanks!
Re: Error Message while trying to compile
Posted: Sun Jun 07, 2015 2:04 pm
by eranif
please see the how to post thread (my signature)
Eran
Re: Error Message while trying to compile
Posted: Sun Jun 07, 2015 2:45 pm
by AbhiKap55
eranif wrote:please see the how to post thread (my signature)
Eran
I did. I'm sorry, what exactly would you like included?
Re: Error Message while trying to compile
Posted: Sun Jun 07, 2015 6:42 pm
by eranif
The build log?
Eran
Re: Error Message while trying to compile
Posted: Wed Aug 10, 2016 2:21 am
by dirkmausf
Hello Eran,
i have the same problem on 10.11. After i started the nicely build executable with "Run", it starts the codelite-terminal and the output is ok, but theres always a message box that says:
codelite-terminal ERROR
Could not set current working directory (error 2: Not such file or directory)
Since the executable is working, the message is bit annoying...
Any idea, why this happens?
Re: Error Message while trying to compile
Posted: Wed Aug 10, 2016 7:44 am
by eranif
codelite-terminal ERROR
Could not set current working directory (error 2: Not such file or directory)
Can you post the command that CodeLite executes? You can find it in the "Output" tab, it starts like this:
"Running program: /usr/bin/open"
Eran
Re: Error Message while trying to compile
Posted: Sun Nov 20, 2016 6:59 pm
by dev
Hi, sorry if I'm writing in an old topic, but this problem is getting me mad.
This is my output:
Code: Select all
Current working directory: /Users/dev/Documents/Prova
Running program: /usr/bin/open /Applications/codelite.app/Contents/MacOS/codelite-terminal.app --args --exit --wait --working-directory "/Users/dev/Documents/Prova/Debug/" --title "./fsdds " --cmd ./fsdds
Program exited with return code: 0
Can you guys help me, thanks in advice.
Re: Error Message while trying to compile
Posted: Sun Nov 20, 2016 7:34 pm
by eranif
what happens if you run the command from a Terminal shell?
Does it work?
Do you get any outstanding error message?
This is the command I am refering to:
Code: Select all
/usr/bin/open /Applications/codelite.app/Contents/MacOS/codelite-terminal.app --args --exit --wait --working-directory "/Users/dev/Documents/Prova/Debug/" --title "./fsdds " --cmd ./fsdds
Re: Error Message while trying to compile
Posted: Sun Nov 20, 2016 7:54 pm
by dev
eranif wrote:what happens if you run the command from a Terminal shell?
Does it work?
Do you get any outstanding error message?
This is the command I am refering to:
Code: Select all
/usr/bin/open /Applications/codelite.app/Contents/MacOS/codelite-terminal.app --args --exit --wait --working-directory "/Users/dev/Documents/Prova/Debug/" --title "./fsdds " --cmd ./fsdds
When I try to run the program this pops out
Code: Select all
codelite-terminal Error
Could not set current working directory (error 2: No such file or directory)
and I get this on the terminal
Code: Select all
/bin/sh: ./FirstProject: No such file or directory
where FirstProject is the name of the project.
I get no error messages.
BTW I'm on OS X
EDIT: I food the solution, had just to install Xcode and all now works.