Hello,
I’m currently facing some challenges while trying to build a C++ project that uses OpenGL, GLFW, and GLEW on a Windows machine. I am working with MSYS2/MinGW as the build environment and VSCode as a text editor (without relying on IDEs). My goal is to manually configure the environment, set up the necessary variables, and automate the build process using a custom script (run.sh
). Eventually, I plan to run the project within a Docker container to ensure a consistent and portable environment.
Here’s a summary of the issues I’ve encountered so far:
glfw3.h
Not Found:
The most significant issue I am facing is that the compiler cannot locate glfw3.h
, even though I’ve explicitly set the include path in my build script (run.sh
). Despite verifying that the header file exists in ./Dependencies/GLFW/include/GLFW/glfw3.h
, the compiler returns a “No such file or directory” error.Manual Setup:
I prefer not to depend on IDEs, so I’m setting up everything manually: environment variables, include paths, and libraries. The run.sh
script is designed to automate the build process, but it is still not functioning as expected. I’ve tried to set up the environment in MSYS2, manually defining paths for GLFW and GLEW.
VSCode Setup:
While I am using VSCode as a text editor, it’s not being used as an IDE. I only use it for editing the source code, and I’m avoiding relying on any built-in build systems that might be provided by the editor.
My next steps are to resolve these issues and get the project building successfully. Once that’s done, I plan to try running the project in Docker to ensure a portable and consistent environment, making the setup reproducible across different machines.
I would greatly appreciate any assistance or advice on resolving the “file not found” issue for glfw3.h
and making the build process work smoothly with the manual setup and automation I’ve described.
Here is the link to my GitHub project for reference:
Thank you in advance for your help!