Files
UnrealEngine/Engine/Source/ThirdParty/portmidi/build/BUILDING.md
2025-05-18 13:04:45 +08:00

772 B

Summary

We don't have to build this library often. But when we do, we need to unzip the TPS approved version (/Engine/Source/ThirdParty/portmidi/build/portmidi-src-217.zip) and update it to work.

Notes

The last time we did this, we had to:

  • Write a BuildForMac.command script
  • Install a JDK (either from Oracle, or using brew)
  • Modify pm_common/CMakeLists.txt to
    • Find JDK headers
    • Link against the JavaNativeFoundation.framework (instead of JavaVM.framework)
  • Modify/update pm_mac/pm_mac.xcodeproj
    • Lots of Xcode project file related updates, all done by Xcode itself.
  • Manually copy the resulting library from /usr/local/lib/libportmidi_s.a to lib/Mac/libportmidi.a

These modifications were then archived as portmidi-src-217-xcode-12_4.tgz