You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Eddie Epstein (Jira)" <de...@uima.apache.org> on 2019/11/09 19:37:00 UTC

[jira] [Commented] (UIMA-6140) Update of UIMA C++ to run with modern compilers

    [ https://issues.apache.org/jira/browse/UIMA-6140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16970923#comment-16970923 ] 

Eddie Epstein commented on UIMA-6140:
-------------------------------------

Tested this code on a RHEL 7.7 machine.

 1. cloned   [https://github.com/dgruhl/uima-uimacpp
] 2. yum installed apr, apr-devel, xerces-c, xerces-c-devel, icu, icu-devel, libicu (some were already there)
 3. followed instructions from README.4src starting with configure step
       ./configure --without-activemq --with-jdk=/usr/lib/jvm/java-1.8.0-oracle-1.8.0.221-1jpp.0.el7.x86_64/include 
   First problem was with jni.h. configure failed because it did not see linux/jni_md.h under the dir with jni.h. Copied this header up one dir.
   Second problem was: engine.cpp:274:7: error: ‘unique_ptr’ was not declared in this scope. Fixed by adding CXXFLAGS=-std=c++11 to the ./configure step:
   at this point 'make' and 'make check'  and 'make install' all completed
 4. created a uimacpp SDK by taking an existing SDK, replacing the bin, lib, include, and examples dir with those from /usr/local/uimacpp,s
   and adding /usr/include/apr-1 to the include directory
 5. built and ran the examples. This required 'USER_CFLAGS=-std=c++11' to be set in each example .mak

Still to do is build/test the scriptators and the activemq service driver, and do all this on a Windows platform. Unless there are objections, I am willing to merge these changes into the uimacpp master even before doing additional work

Nice job Dan!

> Update of UIMA C++ to run with modern compilers
> -----------------------------------------------
>
>                 Key: UIMA-6140
>                 URL: https://issues.apache.org/jira/browse/UIMA-6140
>             Project: UIMA
>          Issue Type: Bug
>          Components: C++ Framework
>            Reporter: Daniel Gruhl
>            Priority: Major
>   Original Estimate: 0.1h
>  Remaining Estimate: 0.1h
>
> The C++ codebase is getting a bit dated, and in fact will not compile and run on modern machines. This whole project needs to be brought back up to spec.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)