armnn icon indicating copy to clipboard operation
armnn copied to clipboard

Error.. How to test Tfmobilnet in Tests file

Open gosick237 opened this issue 7 years ago • 2 comments

Hi. I'm sorry for my ignorance. I'm just beginner.

I'm trying to test armnn now.

-Bananaboard M64(No supporting OpenCL) -Ubuntu 16.04 Mate -with TfParser.

I successfully built armnn with

cmake .. -DARMCOMPUTE_ROOT=/home/pi/ComputeLibrary
-DARMCOMPUTE_BUILD_DIR=/home/pi/ComputeLibrary/build
-DBOOST_ROOT=/home/pi/boost_1_64_0
-DPROTOBUF_ROOT=/home/pi/protobuf
-DTF_GENERATED_SOURCES=/home/pi/tensorflow_protobuf
-DBUILD_TF_PARSER=1 \

### I also checked 'so' files with 'ldd UnitTest' libpthread.so->/lib/arm-linux-gnueabihf libarmnn.so0>/home/pi/armnn/build libarmnnTfParser.so->/home/pi/armnn/build libprotobuf.so.15->/home/pi/protobuf/lib

All process seems fine..

Problem is.. For test I tested SimpleSample and Mnist without error. But when I tried sources in 'tests' file I got this error

Can I just compile with those code because that is test?

root@bpi-iot-ros-ai:/home/pi# g++ -std=c++14 TfMobileNet-Armnn.cpp -o mobile -larmnn -larmnnTfParser -I/home/pi/armnn/include -L/home/pi/armnn/build -lpthread -L/home/pi/boost_1_64_0/lib -I/home/pi/armnn/tests /tmp/ccHLEafs.o: In function int armnn::test::ClassifierInferenceTestMain<ImagePreprocessor<float>, armnnTfParser::ITfParser, main::{lambda(char const*, InferenceModel<armnnTfParser::ITfParser, float> const&)#1}>(int, char**, char const*, bool, char const*, char const*, std::vector<unsigned int, std::allocator<unsigned int> > const&, main::{lambda(char const*, InferenceModel<armnnTfParser::ITfParser, float> const&)#1}, armnn::TensorShape const*)::{lambda()#1}::operator()() const::{lambda(armnn::test::InferenceTestOptions const&, InferenceModel<armnnTfParser::ITfParser, float>::CommandLineOptions)#1}::operator()(armnn::test::InferenceTestOptions, armnn::test::InferenceTestOptions const) const': TfMobileNet-Armnn.cpp:(.text+0x63c): undefined reference to armnn::test::ValidateDirectory(std::__cxx11::basic_string<char, std::char_traits, std::allocator >&)' /tmp/ccHLEafs.o: In function int armnn::test::InferenceTestMain<int armnn::test::ClassifierInferenceTestMain<ImagePreprocessor<float>, armnnTfParser::ITfParser, main::{lambda(char const*, InferenceModel<armnnTfParser::ITfParser, float> const&)#1}>(int, char**, char const*, bool, char const*, char const*, std::vector<unsigned int, std::allocator<unsigned int> > const&, main::{lambda(char const*, InferenceModel<armnnTfParser::ITfParser, float> const&)#1}, armnn::TensorShape const*)::{lambda()#1}>(int, char*, std::vector<unsigned int, std::allocator<unsigned int> > const, int armnn::test::ClassifierInferenceTestMain<ImagePreprocessor<float>, armnnTfParser::ITfParser, main::{lambda(char const*, InferenceModel<armnnTfParser::ITfParser, float> const&)#1}>(int, char**, char const*, bool, char const*, char const*, std::vector<unsigned int, std::allocator<unsigned int> > const&, main::{lambda(char const*, InferenceModel<armnnTfParser::ITfParser, float> const&)#1}, armnn::TensorShape const*)::{lambda()#1})': TfMobileNet-Armnn.cpp:(.text+0xae8): undefined reference to armnn::test::ParseCommandLine(int, char**, armnn::test::IInferenceTestCaseProvider&, armnn::test::InferenceTestOptions&)' TfMobileNet-Armnn.cpp:(.text+0xb10): undefined reference to armnn::test::InferenceTest(armnn::test::InferenceTestOptions const&, std::vector<unsigned int, std::allocator<unsigned int> > const&, armnn::test::IInferenceTestCaseProvider&)' /tmp/ccHLEafs.o: In function boost::program_options::error_with_option_name::~error_with_option_name()': TfMobileNet-Armnn.cpp:(.text._ZN5boost15program_options22error_with_option_nameD2Ev[_ZN5boost15program_options22error_with_option_nameD5Ev]+0x58): undefined reference to vtable for boost::program_options::error_with_option_name' /tmp/ccHLEafs.o: In function boost::program_options::value_semantic_codecvt_helper::value_semantic_codecvt_helper()': TfMobileNet-Armnn.cpp:(.text._ZN5boost15program_options29value_semantic_codecvt_helperIcEC2Ev[_ZN5boost15program_options29value_semantic_codecvt_helperIcEC5Ev]+0x20): undefined reference to vtable for boost::program_options::value_semantic_codecvt_helper<char>' /tmp/ccHLEafs.o: In function boost::program_options::value_semantic_codecvt_helper::~value_semantic_codecvt_helper()': TfMobileNet-Armnn.cpp:(.text._ZN5boost15program_options29value_semantic_codecvt_helperIcED2Ev[_ZN5boost15program_options29value_semantic_codecvt_helperIcED5Ev]+0x30): undefined reference to vtable for boost::program_options::value_semantic_codecvt_helper<char>' /tmp/ccHLEafs.o: In function boost::program_options::error_with_option_name::error_with_option_name(boost::program_options::error_with_option_name const&)': TfMobileNet-Armnn.cpp:(.text.ZN5boost15program_options22error_with_option_nameC2ERKS1[ZN5boost15program_options22error_with_option_nameC5ERKS1]+0xa8): undefined reference to vtable for boost::program_options::error_with_option_name' /tmp/ccHLEafs.o: In function InferenceModel<armnnTfParser::ITfParser, float>::InferenceModel(InferenceModelInternal::Params const&, bool, std::shared_ptrarmnn::IRuntime const&)': TfMobileNet-Armnn.cpp:(.text._ZN14InferenceModelIN13armnnTfParser9ITfParserEfEC2ERKN22InferenceModelInternal6ParamsEbRKSt10shared_ptrIN5armnn8IRuntimeEE[_ZN14InferenceModelIN13armnnTfParser9ITfParserEfEC5ERKN22InferenceModelInternal6ParamsEbRKSt10shared_ptrIN5armnn8IRuntimeEE]+0x302): undefined reference to boost::filesystem::path::replace_extension(boost::filesystem::path const&)' /tmp/ccHLEafs.o:(.rodata._ZTVN5boost15program_options11typed_valueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEE[_ZTVN5boost15program_options11typed_valueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEE]+0x20): undefined reference to boost::program_options::value_semantic_codecvt_helper::parse(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&, bool) const' /tmp/ccHLEafs.o:(.rodata._ZTVN5boost15program_options20invalid_option_valueE[_ZTVN5boost15program_options20invalid_option_valueE]+0x10): undefined reference to boost::program_options::error_with_option_name::what() const' /tmp/ccHLEafs.o:(.rodata._ZTVN5boost15program_options20invalid_option_valueE[_ZTVN5boost15program_options20invalid_option_valueE]+0x18): undefined reference to boost::program_options::error_with_option_name::substitute_placeholders(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) const' /tmp/ccHLEafs.o:(.rodata._ZTVN5boost15program_options16validation_errorE[_ZTVN5boost15program_options16validation_errorE]+0x10): undefined reference to boost::program_options::error_with_option_name::what() const' /tmp/ccHLEafs.o:(.rodata._ZTVN5boost15program_options16validation_errorE[_ZTVN5boost15program_options16validation_errorE]+0x18): undefined reference to boost::program_options::error_with_option_name::substitute_placeholders(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) const' /tmp/ccHLEafs.o:(.rodata._ZTIN5boost15program_options11typed_valueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEE[_ZTIN5boost15program_options11typed_valueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEE]+0x10): undefined reference to typeinfo for boost::program_options::value_semantic_codecvt_helper<char>' /tmp/ccHLEafs.o:(.rodata._ZTIN5boost15program_options16validation_errorE[_ZTIN5boost15program_options16validation_errorE]+0x8): undefined reference to typeinfo for boost::program_options::error_with_option_name' /tmp/ccHLEafs.o: In function armnn::test::ClassifierTestCaseProvider<ImagePreprocessor<float>, InferenceModel<armnnTfParser::ITfParser, float> >::AddCommandLineOptions(boost::program_options::options_description&)': TfMobileNet-Armnn.cpp:(.text._ZN5armnn4test26ClassifierTestCaseProviderI17ImagePreprocessorIfE14InferenceModelIN13armnnTfParser9ITfParserEfEE21AddCommandLineOptionsERN5boost15program_options19options_descriptionE[_ZN5armnn4test26ClassifierTestCaseProviderI17ImagePreprocessorIfE14InferenceModelIN13armnnTfParser9ITfParserEfEE21AddCommandLineOptionsERN5boost15program_options19options_descriptionE]+0x18): undefined reference to boost::program_options::options_description::add_options()' TfMobileNet-Armnn.cpp:(.text._ZN5armnn4test26ClassifierTestCaseProviderI17ImagePreprocessorIfE14InferenceModelIN13armnnTfParser9ITfParserEfEE21AddCommandLineOptionsERN5boost15program_options19options_descriptionE[_ZN5armnn4test26ClassifierTestCaseProviderI17ImagePreprocessorIfE14InferenceModelIN13armnnTfParser9ITfParserEfEE21AddCommandLineOptionsERN5boost15program_options19options_descriptionE]+0x6e): undefined reference to boost::program_options::options_description_easy_init::operator()(char const*, boost::program_options::value_semantic const*, char const*)' TfMobileNet-Armnn.cpp:(.text._ZN5armnn4test26ClassifierTestCaseProviderI17ImagePreprocessorIfE14InferenceModelIN13armnnTfParser9ITfParserEfEE21AddCommandLineOptionsERN5boost15program_options19options_descriptionE[_ZN5armnn4test26ClassifierTestCaseProviderI17ImagePreprocessorIfE14InferenceModelIN13armnnTfParser9ITfParserEfEE21AddCommandLineOptionsERN5boost15program_options19options_descriptionE]+0xc0): undefined reference to boost::program_options::options_description_easy_init::operator()(char const*, boost::program_options::value_semantic const*, char const*)' TfMobileNet-Armnn.cpp:(.text._ZN5armnn4test26ClassifierTestCaseProviderI17ImagePreprocessorIfE14InferenceModelIN13armnnTfParser9ITfParserEfEE21AddCommandLineOptionsERN5boost15program_options19options_descriptionE[_ZN5armnn4test26ClassifierTestCaseProviderI17ImagePreprocessorIfE14InferenceModelIN13armnnTfParser9ITfParserEfEE21AddCommandLineOptionsERN5boost15program_options19options_descriptionE]+0xec): undefined reference to boost::program_options::options_description_easy_init::operator()(char const*, boost::program_options::value_semantic const*, char const*)' /tmp/ccHLEafs.o: In function armnn::test::ClassifierTestCaseProvider<ImagePreprocessor, InferenceModel<armnnTfParser::ITfParser, float> >::ProcessCommandLineOptions(armnn::test::InferenceTestOptions const&)': TfMobileNet-Armnn.cpp:(.text._ZN5armnn4test26ClassifierTestCaseProviderI17ImagePreprocessorIfE14InferenceModelIN13armnnTfParser9ITfParserEfEE25ProcessCommandLineOptionsERKNS0_20InferenceTestOptionsE[_ZN5armnn4test26ClassifierTestCaseProviderI17ImagePreprocessorIfE14InferenceModelIN13armnnTfParser9ITfParserEfEE25ProcessCommandLineOptionsERKNS0_20InferenceTestOptionsE]+0x1c): undefined reference to armnn::test::ValidateDirectory(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)' /tmp/ccHLEafs.o: In function armnn::test::ClassifierTestCaseProvider<ImagePreprocessor, InferenceModel<armnnTfParser::ITfParser, float> >::GetTestCase(unsigned int)': TfMobileNet-Armnn.cpp:(.text._ZN5armnn4test26ClassifierTestCaseProviderI17ImagePreprocessorIfE14InferenceModelIN13armnnTfParser9ITfParserEfEE11GetTestCaseEj[_ZN5armnn4test26ClassifierTestCaseProviderI17ImagePreprocessorIfE14InferenceModelIN13armnnTfParser9ITfParserEfEE11GetTestCaseEj]+0x2c): undefined reference to ImagePreprocessor<float>::GetTestCaseData(unsigned int)' /tmp/ccHLEafs.o: In function InferenceModel<armnnTfParser::ITfParser, float>::AddCommandLineOptions(boost::program_options::options_description&, InferenceModel<armnnTfParser::ITfParser, float>::CommandLineOptions&)': TfMobileNet-Armnn.cpp:(.text._ZN14InferenceModelIN13armnnTfParser9ITfParserEfE21AddCommandLineOptionsERN5boost15program_options19options_descriptionERNS2_18CommandLineOptionsE[_ZN14InferenceModelIN13armnnTfParser9ITfParserEfE21AddCommandLineOptionsERN5boost15program_options19options_descriptionERNS2_18CommandLineOptionsE]+0xea): undefined reference to boost::program_options::options_description::add_options()' TfMobileNet-Armnn.cpp:(.text._ZN14InferenceModelIN13armnnTfParser9ITfParserEfE21AddCommandLineOptionsERN5boost15program_options19options_descriptionERNS2_18CommandLineOptionsE[_ZN14InferenceModelIN13armnnTfParser9ITfParserEfE21AddCommandLineOptionsERN5boost15program_options19options_descriptionERNS2_18CommandLineOptionsE]+0x118): undefined reference to boost::program_options::options_description_easy_init::operator()(char const*, boost::program_options::value_semantic const*, char const*)' TfMobileNet-Armnn.cpp:(.text._ZN14InferenceModelIN13armnnTfParser9ITfParserEfE21AddCommandLineOptionsERN5boost15program_options19options_descriptionERNS2_18CommandLineOptionsE[_ZN14InferenceModelIN13armnnTfParser9ITfParserEfE21AddCommandLineOptionsERN5boost15program_options19options_descriptionERNS2_18CommandLineOptionsE]+0x172): undefined reference to boost::program_options::options_description_easy_init::operator()(char const*, boost::program_options::value_semantic const*, char const*)' TfMobileNet-Armnn.cpp:(.text._ZN14InferenceModelIN13armnnTfParser9ITfParserEfE21AddCommandLineOptionsERN5boost15program_options19options_descriptionERNS2_18CommandLineOptionsE[_ZN14InferenceModelIN13armnnTfParser9ITfParserEfE21AddCommandLineOptionsERN5boost15program_options19options_descriptionERNS2_18CommandLineOptionsE]+0x196): undefined reference to boost::program_options::options_description_easy_init::operator()(char const*, boost::program_options::value_semantic const*, char const*)' TfMobileNet-Armnn.cpp:(.text._ZN14InferenceModelIN13armnnTfParser9ITfParserEfE21AddCommandLineOptionsERN5boost15program_options19options_descriptionERNS2_18CommandLineOptionsE[_ZN14InferenceModelIN13armnnTfParser9ITfParserEfE21AddCommandLineOptionsERN5boost15program_options19options_descriptionERNS2_18CommandLineOptionsE]+0x1cc): undefined reference to boost::program_options::options_description_easy_init::operator()(char const*, boost::program_options::value_semantic const*, char const*)' TfMobileNet-Armnn.cpp:(.text._ZN14InferenceModelIN13armnnTfParser9ITfParserEfE21AddCommandLineOptionsERN5boost15program_options19options_descriptionERNS2_18CommandLineOptionsE[_ZN14InferenceModelIN13armnnTfParser9ITfParserEfE21AddCommandLineOptionsERN5boost15program_options19options_descriptionERNS2_18CommandLineOptionsE]+0x202): undefined reference to boost::program_options::options_description_easy_init::operator()(char const*, boost::program_options::value_semantic const*, char const*)' /tmp/ccHLEafs.o:(.rodata._ZTVN5boost15program_options11typed_valueIbcEE[_ZTVN5boost15program_options11typed_valueIbcEE]+0x20): undefined reference to boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool) const' /tmp/ccHLEafs.o:(.rodata._ZTVN5boost15program_options11typed_valueISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EEcEE[_ZTVN5boost15program_options11typed_valueISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EEcEE]+0x20): undefined reference to boost::program_options::value_semantic_codecvt_helper::parse(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&, bool) const' /tmp/ccHLEafs.o:(.rodata._ZTIN5boost15program_options11typed_valueIbcEE[_ZTIN5boost15program_options11typed_valueIbcEE]+0x10): undefined reference to typeinfo for boost::program_options::value_semantic_codecvt_helper<char>' /tmp/ccHLEafs.o:(.rodata._ZTIN5boost15program_options11typed_valueISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EEcEE[_ZTIN5boost15program_options11typed_valueISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EEcEE]+0x10): undefined reference to typeinfo for boost::program_options::value_semantic_codecvt_helper' /tmp/ccHLEafs.o: In function boost::program_options::typed_value<bool, char>::name() const': TfMobileNet-Armnn.cpp:(.text._ZNK5boost15program_options11typed_valueIbcE4nameEv[_ZNK5boost15program_options11typed_valueIbcE4nameEv]+0x26): undefined reference to boost::program_options::arg[abi:cxx11]' TfMobileNet-Armnn.cpp:(.text._ZNK5boost15program_options11typed_valueIbcE4nameEv[_ZNK5boost15program_options11typed_valueIbcE4nameEv]+0x2a): undefined reference to boost::program_options::arg[abi:cxx11]' /tmp/ccHLEafs.o: In function boost::program_options::typed_value<bool, char>::xparse(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&) const': TfMobileNet-Armnn.cpp:(.text._ZNK5boost15program_options11typed_valueIbcE6xparseERNS_3anyERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISB_EE[_ZNK5boost15program_options11typed_valueIbcE6xparseERNS_3anyERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISB_EE]+0x4e): undefined reference to boost::program_options::validate(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool*, int)' /tmp/ccHLEafs.o: In function boost::program_options::typed_value<std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > >, char>::name() const': TfMobileNet-Armnn.cpp:(.text._ZNK5boost15program_options11typed_valueISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EEcE4nameEv[_ZNK5boost15program_options11typed_valueISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EEcE4nameEv]+0x26): undefined reference to boost::program_options::arg[abi:cxx11]' TfMobileNet-Armnn.cpp:(.text._ZNK5boost15program_options11typed_valueISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EEcE4nameEv[_ZNK5boost15program_options11typed_valueISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EEcE4nameEv]+0x2a): undefined reference to boost::program_options::arg[abi:cxx11]' /tmp/ccHLEafs.o: In function boost::program_options::typed_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>::name() const': TfMobileNet-Armnn.cpp:(.text._ZNK5boost15program_options11typed_valueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcE4nameEv[_ZNK5boost15program_options11typed_valueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcE4nameEv]+0x26): undefined reference to boost::program_options::arg[abi:cxx11]' TfMobileNet-Armnn.cpp:(.text._ZNK5boost15program_options11typed_valueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcE4nameEv[_ZNK5boost15program_options11typed_valueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcE4nameEv]+0x2a): undefined reference to boost::program_options::arg[abi:cxx11]' /tmp/ccHLEafs.o: In function boost::program_options::typed_value<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, char>::xparse(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&) const': TfMobileNet-Armnn.cpp:(.text._ZNK5boost15program_options11typed_valueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcE6xparseERNS_3anyERKSt6vectorIS7_SaIS7_EE[_ZNK5boost15program_options11typed_valueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcE6xparseERNS_3anyERKSt6vectorIS7_SaIS7_EE]+0x4e): undefined reference to boost::program_options::validate(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, int)' /tmp/ccHLEafs.o: In function void boost::program_options::validate<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, char>(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > >*, int)': TfMobileNet-Armnn.cpp:(.text._ZN5boost15program_options8validateINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEEvRNS_3anyERKSt6vectorINS3_IT0_S4_ISB_ESaISB_EEESaISE_EEPSA_IT_SaISJ_EEi[_ZN5boost15program_options8validateINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEEvRNS_3anyERKSt6vectorINS3_IT0_S4_ISB_ESaISB_EEESaISE_EEPSA_IT_SaISJ_EEi]+0xe0): undefined reference to boost::program_options::validate(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, int)' TfMobileNet-Armnn.cpp:(.text._ZN5boost15program_options8validateINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEEvRNS_3anyERKSt6vectorINS3_IT0_S4_ISB_ESaISB_EEESaISE_EEPSA_IT_SaISJ_EEi[_ZN5boost15program_options8validateINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEEvRNS_3anyERKSt6vectorINS3_IT0_S4_ISB_ESaISB_EEESaISE_EEPSA_IT_SaISJ_EEi]+0x186): undefined reference to boost::program_options::invalid_option_value::invalid_option_value(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /tmp/ccHLEafs.o:(.rodata._ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options20invalid_option_valueEEEEE[_ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options20invalid_option_valueEEEEE]+0x14): undefined reference to boost::program_options::error_with_option_name::what() const' /tmp/ccHLEafs.o:(.rodata._ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options20invalid_option_valueEEEEE[_ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options20invalid_option_valueEEEEE]+0x1c): undefined reference to boost::program_options::error_with_option_name::substitute_placeholders(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) const' /tmp/ccHLEafs.o:(.rodata._ZTVN5boost16exception_detail19error_info_injectorINS_15program_options20invalid_option_valueEEE[_ZTVN5boost16exception_detail19error_info_injectorINS_15program_options20invalid_option_valueEEE]+0x10): undefined reference to boost::program_options::error_with_option_name::what() const' /tmp/ccHLEafs.o:(.rodata._ZTVN5boost16exception_detail19error_info_injectorINS_15program_options20invalid_option_valueEEE[_ZTVN5boost16exception_detail19error_info_injectorINS_15program_options20invalid_option_valueEEE]+0x18): undefined reference to boost::program_options::error_with_option_name::substitute_placeholders(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) const' collect2: error: ld returned 1 exit status

As I see, there are two kind of errors with respect to 'armnn::test' and 'boost::programoption' (I tried to add environment paths by 'etc/ls.so.conf.d or './bashrc'. It didn't work, so I compiled with a lot of -I -L instructions...)

That seems linking problem... even though I passed library and include PATH... All build was fine.... what did I miss...

Thanks.

gosick237 avatar Jun 08 '19 09:06 gosick237

Hi @gosick237 the tests in the tests directory are not samples programs, they are part of the regression tests of the Arm NN library itself. I.e. they are used by Arm NN developers to make sure that we don't break anything when we add features. They are probably not useful for you to run as a user of Arm NN.

However, if you would still like to try building them, simply add -DBUILD_TESTS=1 to your CMake command.

MatthewARM avatar Jun 10 '19 09:06 MatthewARM

@gosick237 hope this worked for you, please get back in touch if you are still having trouble.

MatthewARM avatar Oct 14 '19 09:10 MatthewARM