Page 1 of 2
no such file or directory
Posted: Tue Aug 03, 2021 5:40 pm
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.
Re: no such file or directory
Posted: Tue Aug 03, 2021 8:25 pm
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
Re: no such file or directory
Posted: Tue Aug 03, 2021 9:11 pm
by annmillikin
Adding build output screenshots.
Re: no such file or directory
Posted: Tue Aug 03, 2021 9:16 pm
by annmillikin
Here are my general settings.
Re: no such file or directory
Posted: Tue Aug 03, 2021 9:34 pm
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/ ?
Re: no such file or directory
Posted: Tue Aug 03, 2021 9:49 pm
by annmillikin
Here are my compiler settings, in case that helps...
Re: no such file or directory
Posted: Tue Aug 03, 2021 9:54 pm
by annmillikin
added another compiler option...
Re: no such file or directory
Posted: Tue Aug 03, 2021 10:08 pm
by annmillikin
Not sure what I did but now when I try to start CodeLite, it crashes a couple of seconds later...
Re: no such file or directory
Posted: Tue Aug 03, 2021 10:40 pm
by annmillikin
sudo rm -rf $(xcode-select -print-path)
xcode-select --install
Re: no such file or directory
Posted: Tue Aug 03, 2021 10:50 pm
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.