-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile error on Windows system with VS2017 #150
Comments
Hi, @1. at the moment I don't have access to any windows machine with MSVC 2017, so if 1. is the same as in #118 and the detection segfaults I need someone with MSVC, to try and run the try_compiler executable in a debugger and find out why does it crash. @2 This message on itself is not a problem. OGLplus should be usable without the library, @3. Could you pls. paste the whole compiler output related to this error? |
@1. I can help the check but I'm not sure the steps. In my build/gl folder, i have "has_GL_3_1.cpp", "has_GL_3_2.cpp" ~ "has_GL_4_5.cpp". But I still get the detect version error. @3. For the oglplus (Library\OGLplus\oglplus) project, my error message is After I add #define OGLPLUS_NO_GLFUNC_CHECKS 1, that error disappear, but still have some others. |
@1: The configure script has the --debug-config and --debug-gl-ver-error When you use both, it will cause the configuration to exit at the first GL version detection error and it will leave the try_compile executables in the build directory. When the config fails go to the build directory and IIRC there are some MSVC solutions. Try to open them and build them. If there are any build errors please paste them here, if any executables are built then try to run them in the MSVC debugger and see what happens. @#: Paste the other error messages here please. |
My problem can be spited into three parts.
The cmake procedure cannot find my real opengl version. The error message is just like this issue: Could not detect GL version, assuming 3.0 #118
Maybe due to the wrong opengl version, the warning "CMake Warning at config/OGLplusLib.cmake:62 (message):
OGLplus library cannot be built!" would showed up during configuration.
I can ignore the warning and generate the solution. But will have compile error. Just like Compile Errors in VS2017 #149
"oglplus\include\oglplus/glfunc.hpp(34): error C2165: 'left-side modifier': cannot modify pointers to data"
Overall, I cannot successfully build the oglplus library. Is there any settings I should change to build the library? Thanks for your reply in advance.
The text was updated successfully, but these errors were encountered: