You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to build the maya plugin for maya2020 on windows 10.
I have done the following:
Installed VS 2017, CMake, vcpkg (already have Maya)
Installed dependencies using vcpkg as instructed in the readme and a few more I spotted in install_windows
Successfully built OpenVDB Print/View/Render
In an effort to understand more what I am doing and how these things work, I've actually built the executables in a few different ways by this point; with and without vcpkg, with a couple of different versions of openvdb.
When I turn on OPENVDB_BUILD_MAYA_PLUGIN and tweak some of the other variables to get the build to work I always seem to run into a wall with openvdb_maya/OpenVDBUtil.h(186): error C2065: 'GLchar': undeclared identifier. My experience with VS and cmake are limited to the headache this is giving me so we shouldn't rule out I'm doing something idiotic :p I'm assuming this error is happening because windows ships with an old version of OpenGL as I think I can see where the VS project is picking up these GL includes.
A quick look at the source code and vdb_view also uses GLchar ...\openvdb\viewer\RenderModules.h(67) but I don't have any problems building the viewer.
I'm hoping someone can point me in the right direction with this.
Update:
I've started messing around with the source code now (which probably means I'm way off track). I included GL/glew.h in OpenVDBUtil.h and as the maya headers are importing GL/gl.h I also moved my glew include above the maya includes.
At least I get a new set of errors 🤷♂️ some of which are unresolved external symbols to glew so I'm back to scratching my head over this.
Update:
It looks to me that this must be related to an outdated OpenGL dependency or a missing loading library (glew). Now these include lines are 8 years old and it doesn't look like others have had this issue building on Windows. Since the maya headers (MGL.h) are importing GL I'm guessing the issue has more to with with how a maya plugin is built rather than it being openvdb specific.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I am trying to build the maya plugin for maya2020 on windows 10.
I have done the following:
In an effort to understand more what I am doing and how these things work, I've actually built the executables in a few different ways by this point; with and without vcpkg, with a couple of different versions of openvdb.
When I turn on
OPENVDB_BUILD_MAYA_PLUGIN
and tweak some of the other variables to get the build to work I always seem to run into a wall withopenvdb_maya/OpenVDBUtil.h(186): error C2065: 'GLchar': undeclared identifier
. My experience with VS and cmake are limited to the headache this is giving me so we shouldn't rule out I'm doing something idiotic :p I'm assuming this error is happening because windows ships with an old version of OpenGL as I think I can see where the VS project is picking up these GL includes.A quick look at the source code and vdb_view also uses GLchar
...\openvdb\viewer\RenderModules.h(67)
but I don't have any problems building the viewer.I'm hoping someone can point me in the right direction with this.
Update:
I've started messing around with the source code now (which probably means I'm way off track). I included GL/glew.h in OpenVDBUtil.h and as the maya headers are importing GL/gl.h I also moved my glew include above the maya includes.
At least I get a new set of errors 🤷♂️ some of which are
unresolved external symbol
s to glew so I'm back to scratching my head over this.Update:
It looks to me that this must be related to an outdated OpenGL dependency or a missing loading library (glew). Now these include lines are 8 years old and it doesn't look like others have had this issue building on Windows. Since the maya headers (MGL.h) are importing GL I'm guessing the issue has more to with with how a maya plugin is built rather than it being openvdb specific.
Beta Was this translation helpful? Give feedback.
All reactions