[MacPorts] #41610: portmidi @217: fatal error: 'jni.h' file not found
MacPorts
noreply at macports.org
Mon Nov 23 00:08:57 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 nomennudum):
I found a messy (largely because I couldn't get recursive symlinks to work
in os x) workaround in OS X 11.01.
/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/JavaVM.framework/
directory doesn't exist on my recently updated Macbook. Therefore
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaVM.framework/
which is linked to the current SDK 11.0 version doesn't exist. But
JavaVM.framework (and therefore jni.h) did exist in the MacOSX10.15
version of the above path.
Therefore I did the following:
cp -RLp
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/JavaVM.framework
/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/
then because jni.h still apparently could not be found in the MacOSX.sdk
branch (why the link didn't work IDK) I also did:
cp -RLp
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/JavaVM.framework
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/
This probably produced large amounts of unnecessary duplicated files, but
portmidi compiled and installed faultlessly. Obviously your pre 11 osx
version may not be 15.15 so would need altering.
--
Ticket URL: <https://trac.macports.org/ticket/41610#comment:11>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list