Closed shaoxiang closed 4 years ago
ubuntu16.04 编译显示找不到 libMNN.so undefined reference to MNN::Tensor::shape() const' undefined reference toMNN::Tensor::copyFromHostTensor(MNN::Tensor const)' undefined reference to `MNN::Interpreter::getSessionInput(MNN::Session const, char const)' undefined reference to MNN::Tensor::size() const' undefined reference toMNN::Tensor::create(std::vector<int, std::allocator > const&, halide_type_t, void, MNN::Tensor::DimensionType)' undefined reference to MNN::Interpreter::releaseSession(MNN::Session*)' undefined reference toMNN::Interpreter::getBackend(MNN::Session const, MNN::Tensor const) const' undefined reference to MNN::Tensor::getDimensionType() const' undefined reference toMNN::Tensor::~Tensor()' undefined reference to MNN::Interpreter::releaseModel()' undefined reference toMNN::Interpreter::getSessionOutput(MNN::Session const, char const)' undefined reference to MNN::Interpreter::runSession(MNN::Session*) const' undefined reference toMNN::Interpreter::createFromFile(char const)' undefined reference to `MNN::Tensor::copyToHostTensor(MNN::Tensor) const' undefined reference to MNN::Interpreter::~Interpreter()' undefined reference toMNN::Interpreter::createSession(MNN::ScheduleConfig const&)'
MNN::Tensor::shape() const' undefined reference to
MNN::Tensor::size() const' undefined reference to
MNN::Interpreter::releaseSession(MNN::Session*)' undefined reference to
MNN::Tensor::getDimensionType() const' undefined reference to
MNN::Interpreter::releaseModel()' undefined reference to
MNN::Interpreter::runSession(MNN::Session*) const' undefined reference to
MNN::Interpreter::~Interpreter()' undefined reference to
解决方法: https://www.yuque.com/mnn/cn/build_linux 编译后将libMNN.so 拷贝到 IMSEE-SDK/lib 下
ubuntu16.04 编译显示找不到 libMNN.so undefined reference to > const&, halide_type_t, void , MNN::Tensor::DimensionType)'
undefined reference to
MNN::Tensor::shape() const' undefined reference to
MNN::Tensor::copyFromHostTensor(MNN::Tensor const)' undefined reference to `MNN::Interpreter::getSessionInput(MNN::Session const, char const)' undefined reference toMNN::Tensor::size() const' undefined reference to
MNN::Tensor::create(std::vector<int, std::allocatorMNN::Interpreter::releaseSession(MNN::Session*)' undefined reference to
MNN::Interpreter::getBackend(MNN::Session const, MNN::Tensor const) const' undefined reference toMNN::Tensor::getDimensionType() const' undefined reference to
MNN::Tensor::~Tensor()' undefined reference toMNN::Interpreter::releaseModel()' undefined reference to
MNN::Interpreter::getSessionOutput(MNN::Session const, char const)' undefined reference toMNN::Interpreter::runSession(MNN::Session*) const' undefined reference to
MNN::Interpreter::createFromFile(char const)' undefined reference to `MNN::Tensor::copyToHostTensor(MNN::Tensor) const' undefined reference toMNN::Interpreter::~Interpreter()' undefined reference to
MNN::Interpreter::createSession(MNN::ScheduleConfig const&)'