uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Colen <william.co...@gmail.com>
Subject UIMA C++ in a Mac
Date Fri, 25 Nov 2016 22:07:54 GMT
Hi,

I need to execute a NLTK based POS Tagger. I was trying to create a C++ AE
for that. Do you think it will work?

I installed UIMA C++ 2.4.0 on top of UIMA 2.9.0.

When I try to execute the installation instruction I get some compilation
errors, like follows:

$ make -f ExampleApplication.mak
g++ -Wall -x c++ -DDEBUG -g -fno-inline -fPIC  -fno-default-inline
-I/Users/user/programs/apache-uima/uimacpp/include
-I/Users/user/programs/apache-uima/uimacpp/include/apr-1  -Wno-deprecated
-c ExampleApplication.cpp
clang: warning: optimization flag '-fno-default-inline' is not supported
In file included from ExampleApplication.cpp:20:
In file included from
/Users/user/programs/apache-uima/uimacpp/include/uima/api.hpp:36:
In file included from
/Users/user/programs/apache-uima/uimacpp/include/uima/annotator_context.hpp:48:
In file included from
/Users/user/programs/apache-uima/uimacpp/include/uima/engine.hpp:47:
In file included from
/Users/user/programs/apache-uima/uimacpp/include/uima/exceptions.hpp:88:
/Users/user/programs/apache-uima/uimacpp/include/uima/strtools.hpp:731:14:
error: no member named 'operator void *' in 'std::__1::basic_istream<char>'
      if (!i.operator void*())
           ~ ^
/Users/user/programs/apache-uima/uimacpp/include/uima/strtools.hpp:737:18:
error: no member named 'operator void *' in 'std::__1::basic_istream<char>'
          if (!i.operator void*())
               ~ ^
/Users/user/programs/apache-uima/uimacpp/include/uima/strtools.hpp:1674:19:
warning: comparison of constant 18446744073709551615 with expression of
type 'unsigned int' is always true
[-Wtautological-constant-out-of-range-compare]
    if (envBegPos != STRING_NPOS) {
        ~~~~~~~~~ ^  ~~~~~~~~~~~
/Users/user/programs/apache-uima/uimacpp/include/uima/strtools.hpp:1676:21:
warning: comparison of constant 18446744073709551615 with expression of
type 'unsigned int' is always true
[-Wtautological-constant-out-of-range-compare]
      if (envEndPos != STRING_NPOS) {
          ~~~~~~~~~ ^  ~~~~~~~~~~~
In file included from ExampleApplication.cpp:20:
In file included from
/Users/user/programs/apache-uima/uimacpp/include/uima/api.hpp:36:
In file included from
/Users/user/programs/apache-uima/uimacpp/include/uima/annotator_context.hpp:48:
In file included from
/Users/user/programs/apache-uima/uimacpp/include/uima/engine.hpp:50:
In file included from
/Users/user/programs/apache-uima/uimacpp/include/uima/casiterator.hpp:37:
/Users/user/programs/apache-uima/uimacpp/include/uima/cas.hpp:1252:84:
error: default argument references parameter 'enAmbiguous'
    ANIterator subIterator( Type const & crType, EnIteratorAmbiguity
enAmbiguous = enAmbiguous ) const;

       ^~~~~~~~~~~
/Users/user/programs/apache-uima/uimacpp/include/uima/cas.hpp:1376:88:
error: default argument references parameter 'enAmbiguous'
    ANIterator subIterator( AnnotationFS const & an, EnIteratorAmbiguity
enAmbiguous = enAmbiguous ) const;

           ^~~~~~~~~~~
ExampleApplication.cpp:207:12: warning: unused variable 'numread'
[-Wunused-variable]
    size_t numread = fread(pBuffer,1,filesize,pFile);
           ^
In file included from ExampleApplication.cpp:20:
In file included from
/Users/user/programs/apache-uima/uimacpp/include/uima/api.hpp:59:
/Users/user/programs/apache-uima/uimacpp/include/uima/annotator_abase.hpp:138:24:
warning: private field 'iv_typeSystem' is not used [-Wunused-private-field]
    TypeSystem const * iv_typeSystem;
                       ^
4 warnings and 4 errors generated.
make: *** [ExampleApplication.o] Error 1




What I am missing?

Thank you,
William

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message