Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Accumulo >> mail # dev >> missing jni.h building native map


Copy link to this message
-
Re: missing jni.h building native map
Resolution for Ubuntu 10.04 and Accumulo 1.4.3:
  - export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
  - sudo apt-get install -y build-essential g++-multilib

On Sun, May 5, 2013 at 10:40 PM, John Vines <[EMAIL PROTECTED]> wrote:

> Also you need jdk installed and pointed to, not just the jre
>
> Sent from my phone, please pardon the typos and brevity.
> On May 5, 2013 10:38 PM, "John Vines" <[EMAIL PROTECTED]> wrote:
>
> > Java_home must be set
> >
> > Sent from my phone, please pardon the typos and brevity.
> > On May 5, 2013 10:29 PM, "David Medinets" <[EMAIL PROTECTED]>
> > wrote:
> >
> >> I'm fairly sure building the native map was working for me just
> yesterday.
> >> Today I open a brand new Ubuntu 10.04 VM, downloaded all the same
> packages
> >> and ran into a compilation issue.
> >>
> >> cd nativeMap ; make
> >> make[1]: Entering directory
> >>
> >>
> `/home/medined/bin/accumulo-assemble-1.6.0-SNAPSHOT/server/src/main/c++/nativeMap'
> >> mkdir -p ../../../../../lib/native/map
> >> g++ -g -fPIC -shared -O2 -fno-omit-frame-pointer -fno-strict-aliasing
> >> -Wall
> >> -I/include/linux -I/include -m32 -o libNativeMap-Linux-i386-32.so
> >> org_apache_accumulo_server_tabletserver_NativeMap.cc util.cc
> >> In file included from
> >> org_apache_accumulo_server_tabletserver_NativeMap.cc:17:
> >> org_apache_accumulo_server_tabletserver_NativeMap.h:18:17: error: jni.h:
> >> No
> >> such file or directory
> >> In file included from
> >> org_apache_accumulo_server_tabletserver_NativeMap.cc:17:
> >> org_apache_accumulo_server_tabletserver_NativeMap.h:31: error:
> ‘JNIEXPORT’
> >> does not name a type
> >> org_apache_accumulo_server_tabletserver_NativeMap.h:39: error: expected
> >> constructor, destructor, or type conversion before ‘void’
> >> org_apache_accumulo_server_tabletserver_NativeMap.h:47: error:
> ‘JNIEXPORT’
> >> does not name a type
> >> org_apache_accumulo_server_tabletserver_NativeMap.h:55: error: expected
> >> constructor, destructor, or type conversion before ‘void’
> >> org_apache_accumulo_server_tabletserver_NativeMap.h:63: error:
> ‘JNIEXPORT’
> >> does not name a type
> >> org_apache_accumulo_server_tabletserver_NativeMap.h:71: error:
> ‘JNIEXPORT’
> >> does not name a type
> >> org_apache_accumulo_server_tabletserver_NativeMap.h:79: error:
> ‘JNIEXPORT’
> >> does not name a type
> >> org_apache_accumulo_server_tabletserver_NativeMap.h:87: error:
> ‘JNIEXPORT’
> >> does not name a type
> >> org_apache_accumulo_server_tabletserver_NativeMap.h:95: error:
> ‘JNIEXPORT’
> >> does not name a type
> >> org_apache_accumulo_server_tabletserver_NativeMap.h:103: error:
> >> ‘JNIEXPORT’
> >> does not name a type
> >> org_apache_accumulo_server_tabletserver_NativeMap.h:111: error: expected
> >> constructor, destructor, or type conversion before ‘void’
> >> org_apache_accumulo_server_tabletserver_NativeMap.h:119: error:
> >> ‘JNIEXPORT’
> >> does not name a type
> >> org_apache_accumulo_server_tabletserver_NativeMap.h:127: error: expected
> >> constructor, destructor, or type conversion before ‘void’
> >> In file included from SubKey.h:19,
> >>                  from
> >> org_apache_accumulo_server_tabletserver_NativeMap.cc:18:
> >> Field.h:50: error: ‘JNIEnv’ has not been declared
> >> Field.h:50: error: ‘jbyteArray’ has not been declared
> >> Field.h:56: error: ‘JNIEnv’ has not been declared
> >> Field.h:56: error: ‘jbyteArray’ has not been declared
> >> Field.h:87: error: ‘JNIEnv’ has not been declared
> >> Field.h:87: error: ‘jbyteArray’ has not been declared
> >> Field.h:107: error: ‘JNIEnv’ has not been declared
> >> Field.h:107: error: ‘jbyteArray’ has not been declared
> >> Field.h:112: error: ‘jbyteArray’ does not name a type
> >> Field.h: In constructor ‘Field::Field(LinkedBlockAllocator*, int*, int,
> >> int)’:
> >> Field.h:53: error: request for member ‘GetByteArrayRegion’ in ‘* env’,
> >> which is of non-class type ‘int’
> >> Field.h:53: error: ‘jbyte’ was not declared in this scope
> >> Field.h:53: error: expected primary-expression before ‘)’ token