thank you, I got it to work with this command:
g++ -std=c++11 -O2 -fPIC -I$TVM_PATH/tvm/include -I$TVM_PATH/tvm/dmlc-core/include -I$TVM_PATH/tvm/dlpack/include -o lib/cpp_deploy_normal cpp_deploy.cc lib/test_addone_sys.o -L$TVM_PATH/tvm/build -ldl -lpthread -ltvm_runtime
there’s also a helpful script in tvm/apps/howto_deploy/run_example.sh
However, it doesn’t actually execute due to undefined references
/tvm/build/libtvm_runtime.so: undefined reference to pthread_create' /tvm/build/libtvm_runtime.so: undefined reference to
dlopen’
/tvm/build/libtvm_runtime.so: undefined reference to dlclose' /tvm/build/libtvm_runtime.so: undefined reference to
dlerror’
/tvm/build/libtvm_runtime.so: undefined reference to dlsym' /tvm/build/libtvm_runtime.so: undefined reference to
pthread_setaffinity_np’