Open foreverlovematrix opened 3 years ago
I met the same problem, and don't know how to deal with it. These is the error imformation: include/learnopengl/filesystem.h:24:69: error: 'logl_root' was not declared in this scope 24 | static char const * givenRoot = (envRoot != nullptr ? envRoot : logl_root);
This looks similar to issue #187
Can you please try the suggestion presented in that issue and report back what happens? Thanks.
thanks a lot! I am using windows, and I solved this problem by building for Visual Studio 16 2019. I guess platform problems are always troublesome.
thanks a lot! I am using windows, and I solved this problem by building for Visual Studio 16 2019. I guess platform problems are always troublesome.
how can build it?? can you teach cmake building path?? im really really stuck of this issue haha><
In case anyone still has the problem: you don't need to use getPath functions, just comment out the filesystem.h include line, and in the stbi_load() replace the getPath functions with the directory in quotation marks.
This problem had me paranoid of my compiler. I thought it was an official C++ filesystem. I tried to get the latest compiler but also hit a wall there for a while too. This was troublesome for me. Why do it like this, when you could wrap all examples in one place with access to shaders and resources locally?
when I use this Model ourModel(FileSystem::getPath("resources/objects/backpack/backpack.obj"));
it tells me that Cannot open include file:"root_directory" No such file or directory
how can find this .h and how should i implement it in my source code ?