Jump to content

Compiling with VDB Unresloved Externals


Recommended Posts

I'm trying to work on a VDB SOP but I'm having problems compiling. I'm windows with Houdini 16.5 and I'm getting "unresolved externals". Along with the usual inclusions I have:

#include <GU/GU_PrimVDB.h>
#include <openvdb/openvdb.h>
#include <openvdb/Grid.h>

I'm compiling with cmake which looks like this

cmake_minimum_required( VERSION 3.6 )

project( HDK_VolumeDeform )

list( APPEND CMAKE_PREFIX_PATH "$ENV{HFS}/toolkit/cmake" )

find_package( Houdini REQUIRED )

set( library_name SOP_VolumeDeform )

add_library( ${library_name} SHARED
    SOP_Volume_Deform.C
    SOP_Volume_Deform.h
)

target_link_libraries( ${library_name} Houdini)

SET(COMPILE_FLAGS "-TP -std=c++11 -DOPENVDB_3_ABI_COMPATIBLE")
add_definitions(${COMPILE_FLAGS})
SET(CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} ${COMPILE_FLAGS}")

target_include_directories( ${library_name} PRIVATE
    ${CMAKE_CURRENT_BINARY_DIR}
)

houdini_configure_target( ${library_name} )

Strangely enough, the program does compile if I don't try use iterators, though I'm sure there is a lot that would break it.

I've also tried with Hcustom, but running with that yields the same problems. Does anyone have any suggestions?

Thank you very much!

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.

Guest
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...