Jump to content

HDK getting started. Compile geoisosurface.C

Recommended Posts

Hello, devs,

I have compiled geoisosurface.C but running geoisosurface.exe raise an error:
Entry Point Not Found. The procedure entry point gzdirect could not be located in the dynamic link library C:\Program Files\Side Effects Software\Houdini 18.0.460\bin\libxml2.dll

If I place geoisosurface.exe  into the Houdini bin folder it is working and produce me sphere.bgeo.
If I copy libxml2.dll to the folder with exe file the error is:
The procedure entry point gzdirect could not be located in the dynamic link library D:/path_to_geoisosurface/libxml2.dll

I am pretty sure that exe file should work outside Houdini bin dir, but have no idea how to fix this.

Alex @Stalkerx777, anything comes into mind? 

Edited by kiryha
Link to comment
Share on other sites

This geoisosurface tool uses Houdini dynamic libraries and therefore must have access to them at runtime. 

Windows searches libraries in the PATH variable, so you need to set this variable before running the program:

set PATH="C:\path\to\houdini\bin;%PATH%"

Hope it helps.

  • Like 1
Link to comment
Share on other sites

Thanks, Alex!

I have a Houdini bin in the PATH Windows environment variable. 
Also, I tried to run 

set PATH="C:\Program Files\Side Effects Software\Houdini 18.0.460\bin;%PATH%"

before executing geoisosurface.exe, but it did not help as well. Ok, not a big deal since the executable is working from the Houdini bin.

Link to comment
Share on other sites

In the command line (C:\Windows\System32\cmd.exe) started from the folder with geoisosurface.C (E:\PROJECTS\HDK\samples\geoisosurface):

hcustom -s geoisosurface.C

I have a Visual Studio 2017 installed and MSVCDir environment variable set to C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023


Link to comment
Share on other sites

Are you running your example from Houdini shell like you were supposed to?

Unfortunately I don't have much experience with Windows either, but you should prepare yourself for using CMake anyway. hcustom is super minimalistic solution good for single file tests/projects. If your example doesn't work from within Houdini's shell, hcustom is probably broken. It used to be very handy sparing you fights with make. Nowadays it's less useful.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...