Compile error HDK example

   3005   5   0
User Avatar
Member
2123 posts
Joined: Sept. 2015
Offline
Hello,

I was following along the HDK documentation and tried to compile one of the examples, but it errors out saying it's a perrmission issue.

The command to compile was,

hcustom SOP_Star.C

I looked at the SOP_Star.C file and read-only is unchecked for the file.

Any one have any ideas as to how the issue may be resolved?

Here's the readout from doing the above command:


C:\Program Files\Side Effects Software\Houdini 16.0.705\toolkit\samples\SOP>hcustom SOP_Star.C

Making 'SOP_Star.o' and 'C:/Users/Me/Documents/houdini16.0/dso\SOP_Star.dll' from 'SOP_Star.C'
SOP_Star.C
C:\Program Files\Side Effects Software\Houdini 16.0.705\toolkit\samples\SOP\SOP_Star.C : fatal error C1083: Cannot open compiler generated file: 'C:\Program Fil
es\Side Effects Software\Houdini 16.0.705\toolkit\samples\SOP\SOP_Star.o': Permission denied

Help is appreciated, thanks.
User Avatar
Member
1921 posts
Joined: Nov. 2006
Online
My guess is that $HFS is set to read only for your user. If you copy the examples somewhere else you can write to then I'd expect it to work
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
2123 posts
Joined: Sept. 2015
Offline
Thanks graham.

Yeah, moving it to another folder does work.

The whole thing is a bit ‘odd’ to me though.

I am running my windows as admistrative user.

But also in hconsole I can't do something like

cd $HFS

because it says the ‘the system cannot find the path specified’

Although I can ‘cd’ manually like

cd CProgram Files/Side Effects Software/Houdini X.X.X.

or any variation of that - deeper into other folders.

So I tried changing the read attribute of the main folder - Side Effects Software - to uncheck read only attribute for all folders and files in it.

but ‘cd $HFS’ still gives the same message saying it can't find it.
User Avatar
Member
1390 posts
Joined: July 2005
Offline
Windows doesn't know $HFS, it's probably %HFS% or something similar (sorry long time no Windows around).
User Avatar
Member
2123 posts
Joined: Sept. 2015
Offline
Thanks for pointing that out symek.

Yes as you have it works.

Going back over some of the HDK documentation I see I must have overlooked a section that was pertaining to linux usage, thinking it applied to windows.

I do see in the windows sections it uses %HFS%.
User Avatar
Member
17 posts
Joined: May 2021
Offline
By default, the toolkit diretory is not writable in Windows. You can right-click the directory in Windows Explorer, and grant access to your user on the Security tab.

Also - as mentioned above - On Windows use %HFS% instead of $HFS
  • Quick Links