Nathan Mooth

NFX

About Me

Expertise
Technical Director
Location
United States of America
Website

Connect

Recent Forum Posts

documentation for toolutils May 30, 2018, 10:13 a.m.

*Cue Hallelujah chorus*

Compiling the Pixar USD Houdini plugin on Windows May 30, 2018, 10:09 a.m.

So this is probably not the best forum to post this, but I thought I would ask anyway and see if I get any answers. I've been fiddling around with getting USD installed on my home Windows machine (yes I know the windows version is still experimental) and while I am able to get it to build at default settings, I haven't had any luck building it with the Houdini Plugin. Looking into the cmake files for the plugin it seems like the issue is that the file is designed with the Linux install of Houdini in mind (it's looking for .so files, it seems to think the dsolib is in the root install directory…). Currently the line that I think is the biggest culprit is this

find_path(HOUDINI_LIB_DIRS 
    libHoudiniGEO.so
    HINTS
        "${HOUDINI_ROOT}"
        "$ENV{HOUDINI_ROOT}"        
        "${HOUDINI_BASE_DIR}"
    PATH_SUFFIXES
        dsolib/
    DOC
        "Houdini Development Kit Library Path"
)

I'm no cmake expert, but I think this is using “libHoudiniGEO.so” as a target to build a path to the dso library, not sure if this is a recursive find or if it just searches direct children of the root directory. However, since it seems that libHoudiniGEO.so doesn't exist in the Windows install, this fails. I tried changing it to look for libGEO.a instead since that seemed the most likely Windows equivalent in my mind, but it still failed.

Any one have any success doing this? Any cmake gurus out there? Anyone know what the Windows equivalent of libHoudiniGEO.so is? I've attached USD's FindHoudini.cmake file in case you want the full context without having to go to the git repo.

Custom code in .hip file throw errors before startup scripts have had a chance to add needed libraries to the Python Path. May 15, 2018, 2:59 p.m.

The pythonrc method worked like a charm! Thanks graham!