Closed MMMMMax closed 2 years ago
在我自己写的lite_ai.pc上添加 -llite.ai.toolkit 就编译成功了 prefix=/home/max/env/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf bindir=${prefix}/bin mandir=${prefix}/ docdir=${prefix}/ libdir=${prefix}/lib includedir=${prefix}/include
Name: lite.ai.toolkit Description: URL: Version: 10.0 Libs: -L${libdir} -llite.ai.toolkit Cflags: -I${includedir}
将test_lite_efficient_emotion8.cpp放在工程里面(lite.ai.toolkit),对整个工程可以编译成功,但是 单独拿出来 自己编译却失败了 报错如下: arm-none-linux-gnueabihf-g++ -o test_lite_efficient_emotion8 test_lite_efficient_emotion8.cpp, std::allocator > const&, unsigned int)'
/home/max/env/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc/arm-none-linux-gnueabihf/10.3.1/../../../../arm-none-linux-gnueabihf/bin/ld: test_lite_efficient_emotion8.cpp:(.text._ZN5ortcv17EfficientEmotion8C2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj[_ZN5ortcv17EfficientEmotion8C5ERKNSt7 cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj]+0x70): undefined reference to `vtable for ortcv::EfficientEmotion8'
pkg-config --libs opencv onnxruntime lite_ai
/home/max/env/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc/arm-none-linux-gnueabihf/10.3.1/../../../../arm-none-linux-gnueabihf/bin/ld: /tmp/ccFQrJNG.o: in functionortcv::EfficientEmotion8::EfficientEmotion8(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int)': test_lite_efficient_emotion8.cpp:(.text._ZN5ortcv17EfficientEmotion8C2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj[_ZN5ortcv17EfficientEmotion8C5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj]+0x14): undefined reference to
core::BasicOrtHandler::BasicOrtHandler(std::cxx11::basic_string<char, std::char_traits