[ https://issues.apache.org/jira/browse/ARROW-3589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17660612#comment-17660612 ]
Rok Mihevc commented on ARROW-3589: ----------------------------------- This issue has been migrated to [issue #19901|https://github.com/apache/arrow/issues/19901] on GitHub. Please see the [migration documentation|https://github.com/apache/arrow/issues/14542] for further details. > [Gandiva] Make it possible to compile gandiva without JNI > --------------------------------------------------------- > > Key: ARROW-3589 > URL: https://issues.apache.org/jira/browse/ARROW-3589 > Project: Apache Arrow > Issue Type: Improvement > Components: C++ - Gandiva > Reporter: Philipp Moritz > Priority: Major > Labels: pull-request-available > Fix For: 0.12.0 > > Time Spent: 0.5h > Remaining Estimate: 0h > > When trying to compile arrow with > {code:java} > cmake -DARROW_PYTHON=on -DARROW_GANDIVA=on -DARROW_PLASMA=on ..{code} > I'm seeing the following error right now: > {code:java} > CMake Error at > /home/ubuntu/anaconda3/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:137 > (message): > Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY > JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) > Call Stack (most recent call first): > > /home/ubuntu/anaconda3/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:378 > (_FPHSA_FAILURE_MESSAGE) > /home/ubuntu/anaconda3/share/cmake-3.12/Modules/FindJNI.cmake:356 > (FIND_PACKAGE_HANDLE_STANDARD_ARGS) > src/gandiva/jni/CMakeLists.txt:21 (find_package) > -- Configuring incomplete, errors occurred{code} > It should be possible to compile the C++ gandiva code without JNI bindings, > how about we introduce a new flag "-DARROW_GANDIVA_JAVA=off" (which could be > on by default if desired). -- This message was sent by Atlassian Jira (v8.20.10#820010)