Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-3589

[Gandiva] Make it possible to compile gandiva without JNI

    XMLWordPrintableJSON

    Details

      Description

      When trying to compile arrow with

      cmake -DARROW_PYTHON=on -DARROW_GANDIVA=on -DARROW_PLASMA=on ..

      I'm seeing the following error right now:

      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

      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).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                pcmoritz Philipp Moritz
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h