no such file or directory

CodeLite installation/troubleshooting forum
annmillikin
CodeLite Enthusiast
Posts: 12
Joined: Tue Aug 03, 2021 5:23 pm
Genuine User: Yes
IDE Question: C++
Contact:

no such file or directory

Post by annmillikin »

Good morning! I am brand new to CodeLite and I believe I have a setup issue.

CodeLite version 15.0.6

I don’t know if it is self-compiled. How do I determine this? I just started a C++ course on Udemy “Beginning C++ Programming - From Beginner to Beyond”.

macOS Big Sur Version 11.4

Compiler: gnu gcc

I am getting a No such file or directory which is not surprising given that when I navigate to the Debug folder, there isn't a Project1 file there.

Once again, I do not know why CodeLite is looking for a Project1 directory within the Debug directory because it doesn't exist - hence the error.

You do not have the required permissions to view the files attached to this post.
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: no such file or directory

Post by DavidGH »

Hi,

(Warning: I use Linux, not OSX, so expect me to be talking nonsense.)

CodeLite version 15.0.6
I don’t know if it is self-compiled.

If you don't remember building it, it's somewhat unlikely to be self-compiled!

macOS Big Sur Version 11.4
Compiler: gnu gcc

That's fine if it's true, and gcc is installed; but doesn't OSX mostly use clang...?

I do not know why CodeLite is looking for a Project1 directory within the Debug directory because it doesn't exist - hence the error.

Presumably your Project Settings are wrong. Have a look: click the spanner (wrench) icon, 4th from the left at the top of the Workspace View, and check the paths; especially 'Intermediate Directory'.

Regards,

David

annmillikin
CodeLite Enthusiast
Posts: 12
Joined: Tue Aug 03, 2021 5:23 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: no such file or directory

Post by annmillikin »

Adding build output screenshots.

You do not have the required permissions to view the files attached to this post.
annmillikin
CodeLite Enthusiast
Posts: 12
Joined: Tue Aug 03, 2021 5:23 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: no such file or directory

Post by annmillikin »

Here are my general settings.

You do not have the required permissions to view the files attached to this post.
annmillikin
CodeLite Enthusiast
Posts: 12
Joined: Tue Aug 03, 2021 5:23 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: no such file or directory

Post by annmillikin »

Thank you, David! Hopefully my screenshot helped. My Intermediate Directory is set to $(ConfigurationName). Should I set that to a path such as /Users/annmillikin/cpp/cppWorkspace/ ?

annmillikin
CodeLite Enthusiast
Posts: 12
Joined: Tue Aug 03, 2021 5:23 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: no such file or directory

Post by annmillikin »

Here are my compiler settings, in case that helps...

You do not have the required permissions to view the files attached to this post.
annmillikin
CodeLite Enthusiast
Posts: 12
Joined: Tue Aug 03, 2021 5:23 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: no such file or directory

Post by annmillikin »

added another compiler option...

You do not have the required permissions to view the files attached to this post.
annmillikin
CodeLite Enthusiast
Posts: 12
Joined: Tue Aug 03, 2021 5:23 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: no such file or directory

Post by annmillikin »

Not sure what I did but now when I try to start CodeLite, it crashes a couple of seconds later... :(

annmillikin
CodeLite Enthusiast
Posts: 12
Joined: Tue Aug 03, 2021 5:23 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: no such file or directory

Post by annmillikin »

sudo rm -rf $(xcode-select -print-path)
xcode-select --install

DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: no such file or directory

Post by DavidGH »

Not sure what I did but now when I try to start CodeLite, it crashes a couple of seconds later...

Impossible for either of us to guess. Try running it in a terminal, and look for error messages. If that's no help, try running it (in a terminal) inside lldb.

Your 'Intermediate Directory' and other settings look much the same as a recent template Project of mine. That project also failed to build correctly at first. Then I switched to Release, built it and it ran; back to 'Debug', built it and it too ran :/

So that's worth trying. If it fails, then yes: try changing 'Intermediate Directory' to something that exists. A relative path should be good enough.

Post Reply