karansher / computer-graphics-raster-images

Computer Graphics Assignment about Raster Images
1 stars 0 forks source link

nothing showing up in build folder #76

Open ValentinaManferrari opened 1 year ago

ValentinaManferrari commented 1 year ago

I have successfully compiled and written the first two functions rgba_to_rgband write_ppm however I don't see the ppm files showing up in the build folder...I noticed that from Visual Studio the build folder is empty even though from the file explorer I can see the files that were generated when I run the cmake .. command. Does this mean that the ppm files could have been saved somewhere else I don't see?

image

abhimadan commented 1 year ago

The Visual Studio file viewer just shows source files, or other files that the sln file recognizes. If you don't see them in the file explorer, it's possible your program isn't executing correctly. Please check out the FAQ for possible fixes, but two likely possibilities are:

  1. you're trying to run ALL_BUILD from Visual Studio instead of raster
  2. You're not running the program from the correct path
ValentinaManferrari commented 1 year ago

I am doing exactly as explained in issue #51 but I still can not see any ppm in the build folder. However, the fact that I don't get any type of error makes me confident the write_ppm function should at least create the ppm files... I really don't know how to debug this further, any other suggestions? image

abhimadan commented 1 year ago

File I/O can often fail silently so the fact that you're not seeing any errors unfortunately doesn't imply that it's working. Here's a stack overflow post that describes some ways to check the internal state of the file stream.