HDK

   5668   8   2
User Avatar
Member
88 posts
Joined: March 2006
Offline
I'm getting an error using hcustom to compile a .cpp script. The error reads, MSVCDir environment variable not set. Where do I find this variable to change and what do I change it to? Also, can I run hcustom on .cpp files as well as .c?
User Avatar
Member
7753 posts
Joined: July 2005
Offline
http://www.odforce.net/wiki/index.php/HDKFrequentlyAskedQuestions [odforce.net]
User Avatar
Member
88 posts
Joined: March 2006
Offline
Thanks. But which version of Visual c++ will work. There's a couple – Visual Studio 2005 Professional Edition and Visual Studio 2005 Standard Edition.

Thanks.
User Avatar
Member
2199 posts
Joined: July 2005
Online
I was under the impression it only works with Microsoft Visual Studio .NET 2003, that's the one I use anyhow.

Very first line of that Wiki link

For Houdini 7.0 or Houdini 8.X, you must use Microsoft's Visual C++ .NET 2003.
The trick is finding just the right hammer for every screw
User Avatar
Member
166 posts
Joined: Feb. 2006
Offline
I confirm, on windows, the HDK will only work with VC++ 2003. There are few thread on the forum about how to configure it. VC++ 2005 or free editions do not work unfortunately.
Time to get out of this messy world.
User Avatar
Member
88 posts
Joined: March 2006
Offline
Thanks. Wanted to know if the newer verions would work. ops:
User Avatar
Member
166 posts
Joined: Feb. 2006
Offline
Concerning the setting of the HDK on Windows, I posted a new version of the HDK presentation. It has nothing more but an extra page explaining how to setup on Windows and which VC++ version to use as well as how to setup the MCVDir variable.
Again any problem, post a message or a word on the forum.
Time to get out of this messy world.
User Avatar
Member
88 posts
Joined: March 2006
Offline
Thank you. That's awesome. I've got it working now. So .dll is what gets compiled and thrown into the dso directory? And this is the operator file that Houdini reads in?
User Avatar
Member
166 posts
Joined: Feb. 2006
Offline
The .dll, will be compiled and thrown to the DSO directory, usually the user local one. But you can specify the directory you want your DSO to be installed with the flag -i (ie: -i . for current directory, or anything you wish ).
As long you declare properly in the operator table function in your DSO, Houdini will pick your DSO. Also you have to make sure that your DSO path is in the Houdini Path as explained in the intro.
Time to get out of this messy world.
  • Quick Links