Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D9E82200BE7 for ; Tue, 20 Dec 2016 16:39:55 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D86CE160B29; Tue, 20 Dec 2016 15:39:55 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 062CE160B12 for ; Tue, 20 Dec 2016 16:39:54 +0100 (CET) Received: (qmail 8365 invoked by uid 500); 20 Dec 2016 15:39:54 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 8353 invoked by uid 99); 20 Dec 2016 15:39:53 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Dec 2016 15:39:53 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 40692180255 for ; Tue, 20 Dec 2016 15:39:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.842 X-Spam-Level: ** X-Spam-Status: No, score=2.842 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, HTML_OBFUSCATE_10_20=1.162, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 4O8_NCBWDUvJ for ; Tue, 20 Dec 2016 15:39:51 +0000 (UTC) Received: from mail-it0-f43.google.com (mail-it0-f43.google.com [209.85.214.43]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 7A3375FBBB for ; Tue, 20 Dec 2016 15:39:50 +0000 (UTC) Received: by mail-it0-f43.google.com with SMTP id x2so26501935itf.1 for ; Tue, 20 Dec 2016 07:39:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=OsIVwGOfQC0v2jZ0sGlpQncJPPJkqurP4hmPTZFjHOQ=; b=T3LobFHuDzGAFulaZeA+j9+nc7JFf9OjYsReu5Ow/wFicugLK49a9vXvhVdGlWuigK 1226fYGS7DwpRm5VRaQLTAcdofbgvNY1UGOcLE39bRJj5cszuNoKvbjQtWn52UaAn4VO FudPv+huoZZw387AJnPTZH2POHp7hQ6ECnvAiB57AWq5W8ylguDpegy9kTExa4lNQvt9 kGt1nS9cPB1QFa3PSV8jCM9qSyqsfKe6KIHiJLlhOSXYMec5dKNusTHbQUZDp/HLu6BS CoXg6Rc7zJDjfJWMcs8uNUHfC0Gt02OJAVK33Q9qeQuvoyQmNVO3+NC3noMZdY70bx19 qySg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=OsIVwGOfQC0v2jZ0sGlpQncJPPJkqurP4hmPTZFjHOQ=; b=LHOdObWYvr+FPi32PxRyf5MQqan/rV7xfKs25SsI51E6o17IssbRfVnxoj9/MNvjuu 83llSUgDK8ChadKNPW0pSc4FnrJvPODbqKi+U2Ba1G0nYgfDQbgLNhYIV2IpTnrT4ME+ xQY54R0sj7nb93fNkBk4KgSqgLn6zP5AQN9mROYTf5cX3p7WPsZ37JgdROXAt2Q2nl/D +ey5NHk/rUol3BjeeYxtxGdD2JutRuRBuTrE6L+IwkFe3cQ237XZ6ztDoGL+eo5+rWXf XqLbie2sRU2oszYF+4dJ4V8Y+NzpTRz4vUjUiFjM2qpeM6aUHec8jSk99hc8jdsEd9CD uX/g== X-Gm-Message-State: AIkVDXL7CKew6bibv29jYiI+TsaXg3lhwvOYBXpQB1/+vTEuJMLzr9q5ADIDaEY7DsLPNEnI/O766oHF83B0dQ== X-Received: by 10.36.1.67 with SMTP id 64mr606345itk.121.1482248387296; Tue, 20 Dec 2016 07:39:47 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.47.151 with HTTP; Tue, 20 Dec 2016 07:39:26 -0800 (PST) In-Reply-To: References: From: William Colen Date: Tue, 20 Dec 2016 13:39:26 -0200 Message-ID: Subject: Re: UIMA C++ in a Mac To: user@uima.apache.org Content-Type: multipart/alternative; boundary=001a1143ed0c98246e054418d8be archived-at: Tue, 20 Dec 2016 15:39:56 -0000 --001a1143ed0c98246e054418d8be Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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=3Dgcc-5 CXX=3Dg++-5 ../configure --with-jdk=3D/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.pl= atform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/JavaVM.fram= ework/Versions/A/Headers --with-apr=3D/usr/local/opt/apr --with-icu=3D/usr/local/opt/icu4c --with-activemq=3D/usr/local/opt/activemq-cpp --with-apr-util=3D/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 : > 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=C2=B9t a big deal and I didn=C2=B9t pursue it furt= her. 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" 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 compilatio= n > >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-deprecate= d > >-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' > > 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' > > 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 !=3D 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 !=3D 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 =3D 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 =3D enAmbiguous ) const; > > > > ^~~~~~~~~~~ > >ExampleApplication.cpp:207:12: warning: unused variable 'numread' > >[-Wunused-variable] > > size_t numread =3D 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 > > --001a1143ed0c98246e054418d8be--