Jump to content
jnoon1

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!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×