Skip to content

fatal error: jni.h: No such file or directory #28

@mart-e

Description

@mart-e

Hello,

The install of javabridge-1.0.7 via pip fails. Done on Archlinux x86_64.
Seems like an issue with the version of numpy being incompatible.

gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -fPIC -I/usr/lib/python2.7/site-packages/numpy/core/include -I/usr/lib/jvm/java-7-openjdk/include -I/usr/lib/jvm/java-7-openjdk/include/linux -I/usr/include/python2.7 -c _javabridge.c -o build/temp.linux-x86_64-2.7/_javabridge.o

In file included from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1761:0,
                 from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                 from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from _javabridge.c:346:

/usr/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]

 #warning "Using deprecated NumPy API, disable it by " \
  ^

_javabridge.c:348:17: fatal error: jni.h: No such file or directory

 #include "jni.h"
                 ^

compilation terminated.

error: command 'gcc' failed with exit status 1

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions