libglui / glui

GLUI is a GLUT-based C++ user interface library which provides controls such as buttons, checkboxes, radio buttons, and spinners to OpenGL applications. It is window-system independent, using GLUT or FreeGLUT.
Other
200 stars 81 forks source link

FAQ for Windows: Build error on windows #90

Open kinnefix opened 5 years ago

kinnefix commented 5 years ago

I'm not really sure how I can contribute to the source code, so I'm posting it here. I was trying to build glui using msbuild CLI. I first generated glui.sln using cmake command. I then issued msbuild glui.sln, but got the error complaining about errors in gl.h from windows sdk. As a solution, I added #include right before inclusion of GL/gl.h, but I got another error indicating that I needed to define NOMINMAX for some reason. Setting such macro seemed to have solved the problem, and I successfully got resulting library. Should I make a diff file so that someone with the right access to this repository can apply it?

nigels-com commented 5 years ago

I'd be happy to consider a pull request for better supporting the Windows build.

I could perhaps contribute by providing an AppVeyor build, but I don't tend to do much Windows development nowadays, generally.

nigels-com commented 5 years ago

I came across the same issue myself, visiting Windows recently.

I'll add some per-platform notes to include the advice about windows.h and NOMINMAX.

nigels-com commented 5 years ago

cmake-gui