cisc3620 / docs

cisc3620 website and docs
https://cisc3620.github.io/docs/
0 stars 0 forks source link

"No such file or directory" error #4

Open Alalo1 opened 7 years ago

Alalo1 commented 7 years ago

hwissue

Does this for all the files included in main.cpp

TIA

jelmani commented 7 years ago

Try downloading/using Visual Studio. Cmake works a lot better with Visual Studio compared to Codeblocks in my experience

rivlev commented 7 years ago

You need to open the .cbp, not main.cpp

Alalo1 commented 7 years ago

I've been looking in every folder and can't seem to find any .cbp files.

rivlev commented 7 years ago

If you ran cmake with a codeblocks generator, it should have created one in the Build directory

Alalo1 commented 7 years ago

hwissue3

I searched for .cbp files in the build directory and these are the only two that appeared, and when I open either of them, it's just a blank project.

rivlev commented 7 years ago

The project file that you should open is called Glitter. When you open it you should be able to navigate through subfolders to Sources/main.cpp

Alalo1 commented 7 years ago

hwissue4

This is what my screen looks like after I open the glitter project file. It doesn't load up.

rivlev commented 7 years ago

It says "Glitter" on the top; that means your project is open. You can now open main.cpp using File->Open

Alalo1 commented 7 years ago

hwissue5

I was able to build the program, but when trying to run it, it says I "can't run a commands only target" -- sorry for taking up this much time but I just want to be able to do the homeworks already.

rivlev commented 7 years ago

The executable will be somewhere like Build/Glitter/Debug and will be called Glitter. You can double click it from a file manager or do something like ./Glitter from the command line. When it runs you should see a new gray window.

Alalo1 commented 7 years ago

There is no such file in my build folder, and there is no debug file either

rivlev commented 7 years ago

Did you compile the program?

Alalo1 commented 7 years ago

Yes

rivlev commented 7 years ago

These are directories. Follow the path Build/Glitter/Debug

Alalo1 commented 7 years ago

There is no debug directory for me

rivlev commented 7 years ago

It should have been created by cmake and compiling. Try compiling again to make sure it works. You may have to remove everything from the build directory and start over.