Open AlexProtoss opened 11 months ago
Do you see any error messages when calling "./shaderpipeline ../data/test-01.json"? I'm assuming there's no error message and you just see a blank output window? In this case, the most likely cause is your that your executable can't find the required input files. Try to update the location of your executable (e.g. copy it to the build folder and run it from there).
./shaderpipeline ../data/test-01.json Indeed there's no erroe message, but i am sure that there exist such data in ../data/test-01.json: And i also tried to access some other file that does not exist, it also show me the same blank output, so i am not sure what's going on
I think this is an issue with the relative path of the data to the executable (i.e. the data does exist, but the application can't find it). One potential fix is to change location of the "shaderpipeline" executable (e.g. move it from .../build/Debug to .../build and run it from there).
I don't think it's an issue with relative path. I put the test-01.json in the same folder as shaderpipeline.exe, but I did not get anything either. I successfully ran the command in the BA teaching lab machine. Here is my output in windows:
I am wondering if there is some instruction on how we could set up remote connection to desktop in CDF? The link in post #12 is outdated
The relative paths in the .json files are hard-coded and they assume you run the command from the build folder. So you can try to move the .exe to build folder or call the test cases from the build folder (see #2 here).
Ok, I see. Now it works
As required, i run ./shaderpipeline ../data/test-01.json the program show nothing like here I have tried other test-02.json and same nothing shows here.
And additionally, when i check the main.cpp, it shows there exist include bugs "cannot open source file "sys/time.h" (dependency of "last_modification_time.h")" i have checked on the internet, it said sys/time.h is the head file of C and cannot apply in C++, which confused me. When i try to disable that include, the part that seems for linux system report error I am using C++23 for this assignment, and the IntelliSense mode is windoes-msvc-x64. I haven't setup anything about openGL or the glfw shader. Can anyone explain how to setup the enviroment correctly on windows using vscode?