Hello! Good news! I managed to build UIMA C++ in macOS Sierra.
I downloaded the UIMA C++ source code and followed the README. I had to install all dependencies and GCC 5 using BREW. The final configure command was like this: CC=gcc-5 CXX=g++-5 ../configure --with-jdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers --with-apr=/usr/local/opt/apr --with-icu=/usr/local/opt/icu4c --with-activemq=/usr/local/opt/activemq-cpp --with-apr-util=/usr/local/opt/apr-util --without-activemq I also had to change the base.mak, fixing the includes and libs. Thank you, William 2016-11-28 15:06 GMT-02:00 David Fox <[email protected]>: > I tried this a couple of months back and got the same error. > > Eventually I gave up on Mac OS X and got it working on linux. In our > case, we use Mac OS X laptops for testing, but our production environment > is linux, so this wasn¹t a big deal and I didn¹t pursue it further. If I > really did need to test on Mac OS X, my plan was to install virtual box > and run a linux VM on my Mac laptop. > > > David > > > > On 11/25/16, 5:07 PM, "William Colen" <[email protected]> wrote: > > >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/annot > ator_context.hp > >p: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/strto > ols.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/strto > ols.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/strto > ols.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/strto > ols.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/annot > ator_context.hp > >p: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/annot > ator_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 > >
