OCC 7.0.0: cannot load project files for VS2013 or VS2015

When trying to use Visual Studio 2013 or 2015, I can load the solution files (*.sln), but it fails to load any of the (pregenerated) project files (*.vcxproj):
Unsupported
This version of Visual Studio is unable to open the following projects. The project types may not be installed or this version of Visual Studio may not support them.
For more information on enabling these project types or otherwise migrating your assets, please see the details in the "Migration Report" displayed after clicking OK.
- TKernel, "C:\OpenCASCADE7.0.0_Src\adm\msvc\vc14\TKernel.vcxproj"
[...]
- DRAWEXE, "C:\OpenCASCADE7.0.0_Src\adm\msvc\vc14\DRAWEXE.vcxproj"

I don't quite understand what the problem is. I used the genconf tool to create a custom.bat file and ran it, followed by running msvc.bat. Is there anything else I need to do?

Shai Balassiano's picture

I have the same problem with visual studio 2015 - have you solved it?

Thanks

Michael Ruth's picture

Yes, I've been able to solve it. Actually, it didn't have anything to do with OpenCascade.
The problem was that I had several environment variables set to use Visual Studio 2012: VCHOME, VCINSTALLDIR, VCARCH, VCVER, and VCVARS.
After deleting them (and rebooting), I was able to build the OCC libraries using VS2013 and VS2015.

Rahman Abber Tahir's picture

Hi Michael, can you please tell me how to build opencascade on visual studio 2015??

Uwe Matthaeus's picture

Load the external libraries, call 'genproj.bat' and start VS2015. Thats all.

 

Michael Ruth's picture

Yep, as UweM already said:

After removing the environment variables, I just followed the procedure outlined in the Help file located in the Developer Guides - Building OCCT from sources.

The required 3rd party libraries can be downloaded here:

https://www.opencascade.com/content/3rd-party-components