Path to parser model compile problem


I am currently writing a piece of software that uses MeTA’s parser and POS tagger. I have it set up with cmake and make to the point where I can include header files, but I’m having issues with the following line of code.

meta::parser::sr_parser parser{"beam-parser"};

I suspect I need to place the beam-parser folder in the correct directory, however I don’t know where that correct directory is or how to find it. When I have this line in my code it doesn’t work and I get the following output when running make.

[  1%] Building CXX object parseInput/CMakeFiles/parseInput.dir/parseInput.cpp.o
[  1%] Linking CXX static library libparseInput.a
[  1%] Built target parseInput
[  1%] Linking CXX executable build/TextAdv
parseInput/libparseInput.a(parseInput.cpp.o): In function `parseInput(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
parseInput.cpp:(.text+0x4d4): undefined reference to `meta::parser::sr_parser::sr_parser(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
CMakeFiles/TextAdv.dir/build.make:95: recipe for target 'build/TextAdv' failed
make[2]: *** [build/TextAdv] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/TextAdv.dir/all' failed
make[1]: *** [CMakeFiles/TextAdv.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

My file structure is as follows.

    |_/build/<-where the executable goes
    |_/metaBuild/ <-where the meta executables go
        |_parseInput.cpp <-the problem file


It’s fixed. Two things.

I need to register the analyzers before the “meta::parser::sr_parser” lines, as pointed out here.

And I needed this line in my cmake

target_compile_definitions(u1 -DNUSE_OPAQUE_IDENTIFIERS=1)

Along with this block of text instead of “add_subdirectory(meta)”

target_link_libraries(Core meta-classify meta-corpus meta-crf 
meta-embeddings meta-eval meta-features meta-filters meta-greedy-tagger 
meta-index meta-io meta-kernel meta-language-model meta-learn 
meta-lm-analyzers meta-loss meta-parser-analyzers 
meta-parser-featurizers meta-parser-io meta-parser-trees meta-parser 
meta-ranker meta-regression meta-sequence-analyzers meta-sequence 
meta-stats meta-succinct meta-tokenizers meta-topics meta-tree-visitors 
meta-utf meta-util)