[MacPorts] #41610: portmidi @217: fatal error: 'jni.h' file not found

MacPorts noreply at macports.org
Tue Dec 29 01:42:49 UTC 2020


#41610: portmidi @217: fatal error: 'jni.h' file not found
------------------------------+--------------------------------
  Reporter:  ray.degennaro@…  |      Owner:  macports-tickets@…
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.2.1
Resolution:                   |   Keywords:
      Port:  portmidi         |
------------------------------+--------------------------------

Comment (by exaos):

 I tried to build `portmidi` by hand and found that the
 **JavaVM.framework** is missing in **MacOSX11.1.sdk**, i.e., the path
 `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/JavaVM.framework/Headers`
 does not exist.

 {{{
 [ 21%] Building C object
 pm_common/CMakeFiles/pmjni.dir/__/pm_java/pmjni/pmjni.c.o
 cd /Volumes/Bohai/lageto/marĉo/build/portmidi/portmidi/work/pm_common &&
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
 -Dpmjni_EXPORTS
 -I/Volumes/Bohai/lageto/marĉo/build/portmidi/portmidi/files/portmidi/pm_common
 -I/Volumes/Bohai/lageto/marĉo/build/portmidi/portmidi/files/portmidi/porttime
 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/Developer/Headers/FlatCarbon
 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/JavaVM.framework/Headers
 -O3 -DNDEBUG  -isysroot
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk
 -fPIC -o CMakeFiles/pmjni.dir/__/pm_java/pmjni/pmjni.c.o -c
 /Volumes/Bohai/lageto/marĉo/build/portmidi/portmidi/files/portmidi/pm_java/pmjni/pmjni.c
 In file included from
 /Volumes/Bohai/lageto/marĉo/build/portmidi/portmidi/files/portmidi/pm_java/pmjni/pmjni.c:3:
 /Volumes/Bohai/lageto/marĉo/build/portmidi/portmidi/files/portmidi/pm_java/pmjni/jportmidi_JportMidiApi.h:2:10:
 fatal error:
       'jni.h' file not found
 #include <jni.h>
          ^~~~~~~
 1 error generated.
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/41610#comment:15>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list