I have been trying to setup ORB Slam3 on a virtual machine but am unable to compile the main gcc file. Essentially, gcc is unable to include any of the header files that are not in the same directory as the file itself. All header files are present in the include directory of the project folder. When I copy the header files from the include folder to the directory of the code file I want to compile, gcc is able to compile. I'm guessing this has something to do with environment variables or the gcc config but not sure. I am trying to run this on a Ubuntu 22.04 virtual machine.
I copied the header files to the directory of the cc file, and it works.