Sorry, I had to try/change so many things that I am not sure. Maybe you can try the same and check if anything is missing.
brew: apr, icu4c, xerces-c, gcc5 base.mak: # include directory for compile INCLUDES=-I/usr/local/uimacpp/include -I/usr/local/opt/apr/libexec/include/apr-1 -I/usr/local/opt/icu4c/include -I/usr/local/opt/xerces-c/include LINKFLAGS= $(DLL_LINKFLAGS) $(BIN_LINKFLAGS) \ $(USER_LINKFLAGS) $(BUILD_LFLAGS) \ -L/usr/local/uimacpp/lib -L/usr/local/opt/apr/libexec/lib -L/usr/local/opt/icu4c/lib -L/usr/local/opt/xerces-c/lib -lxerces-c -licuuc -licuio -licui18n -licudata -ldl -luima $(EXTRA_LINK_LIBS) # compiler to use CC=g++-5 2016-12-20 13:48 GMT-02:00 Fox, David <[email protected]>: > Great! > > Could you send a diff or patch of base.mak, and the list things you asked > BREW to install (if you have it)? > > David > > On 12/20/16, 10:39 AM, "William Colen" <[email protected]> wrote: > > >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.pla > >tform/Developer/SDKs/MacOSX10.12.sdk/System/ > Library/Frameworks/JavaVM.fram > >ework/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 > >> > >> > >
