OpenSubdiv icon indicating copy to clipboard operation
OpenSubdiv copied to clipboard

Visual Studio solution - 81 projects?

Open thomthom opened this issue 10 years ago • 9 comments
trafficstars

Is it intended that there is so many small projects in the VS solution? Or is this something wrong on my end?

image

thomthom avatar Jun 11 '15 18:06 thomthom

No, something wrong. According to the previous issues, you have cmake 3.0.1 and this command line, correct?

cmake ^ -G "Visual Studio 12 2013" ^ -DNO_EXAMPLES=1 ^ -DNO_TUTORIALS=1 ^ -DNO_REGRESSION=1 ^ -DNO_MAYA=1 ^ -DNO_PTEX=1 ^ -DNO_DOC=1 ^ -DNO_OMP=1 ^ -DNO_TBB=1 ^ -DNO_CUDA=1 ^ -DNO_OPENCL=1 ^ -DNO_OPENGL=1 ^ -DNO_CLEW=1 ^ ..

takahito-tejima avatar Jun 11 '15 18:06 takahito-tejima

Sorry - I should have included that info right away. That is the command I use, yes - however I have updated to CMake 3.3.0RC1.

I also tried with Win64 generated solution and I tried on both dev and master branch. I cleaned out my build dir between each attempt.

thomthom avatar Jun 11 '15 19:06 thomthom

Thanks, it looks like you have doxygen installed. Let me try to fix.

takahito-tejima avatar Jun 11 '15 19:06 takahito-tejima

On this particular machine, yes. I guess people more commonly build some the console instead of using the VS solution?

thomthom avatar Jun 11 '15 19:06 thomthom

Hi Thomas, I identified the cause of this issue in CMakeLists. It looks like we'll need a broader refactoring of cmake files so I'd like to defer to after 3.0 release. It looks messy indeed, but is functionally ok. If you don't need to build documents, -DNO_DOC=1 would avoid generating such many projects.

takahito-tejima avatar Jun 12 '15 01:06 takahito-tejima

Sure, no problem. I use the docs on the website anyway for reference. I added the docs to the build recently because of that _add_doxy_headers error I had earlier in #611. This also explain why I imagined I'd seen the solution much simpler - so I had to ask. Rebuilding with no docs and the solution is back to 14. :) I can figure out how to set up a combined 32bit and 64bit solution now that the solution is a bit more manageable. Thank you very much for looking into it.

thomthom avatar Jun 12 '15 07:06 thomthom

We should probably turn off the documentation build by default : it is not really intended to be cross-platform or really built outside of Pixar (with Linux) to publish on the public site.

I think i have fixed #611 a while back, but if you are still having a problem with this in the dev branch, then fixing that is probably going to be the simpler than improving the doc build.

manuelk avatar Dec 18 '15 22:12 manuelk

Filed as internal issue #151655.

jtran56 avatar Sep 30 '17 01:09 jtran56

Hi Thomas, I identified the cause of this issue in CMakeLists. It looks like we'll need a broader refactoring of cmake files so I'd like to defer to after 3.0 release. It looks messy indeed, but is functionally ok. If you don't need to build documents, -DNO_DOC=1 would avoid generating such many projects.

Is this the culprit?

https://github.com/PixarAnimationStudios/OpenSubdiv/blob/ff76e0f2dc9c9202b7d2f965f264bfd6f41866d5/CMakeLists.txt#L685-L716

thomthom avatar Oct 20 '21 18:10 thomthom