Code Monkey home page Code Monkey logo

Comments (4)

rakyll avatar rakyll commented on July 20, 2024

Brew installs the header files as well, they should be under /usr/local/Cellar/portmidi/217/include.

Is there a possibility that your brew install failed? What is in /usr/local/Cellar/portmidi?

from portmidi.

 avatar commented on July 20, 2024

I have the same issue, brew install those files but it is still throwing the error. I'm still looking for a solution, if I find one Ill post it.

from portmidi.

 avatar commented on July 20, 2024

Turns out I needed the command line tools from xcode (xcode-select). Works now, I recommend jonsie check if it is installed on their system.

from portmidi.

lucianthorr avatar lucianthorr commented on July 20, 2024

Just in case anyone stumbles onto this thread and is running into the portmidi.h not found issue on a Apple Silicon Mac, you just have to change the CFLAGS/LDFLAGS because Homebrew installs to a different location.

In portmidi.go:

// #cgo CFLAGS:  -I/opt/homebrew/include
// #cgo LDFLAGS: -lportmidi -L/opt/homebrew/lib

or setup some aliases, for example:

sudo ln -s /opt/homebrew/lib /usr/local/lib
sudo ln -s /opt/homebrew/lib/libportmidi.dylib /usr/local/lib/libportmidi.dylib
sudo ln -s /opt/homebrew/lib/libportmidi.2.dylib /usr/local/lib/libportmidi.2.dylib
sudo ln -s /opt/homebrew/lib/libportmidi.2.0.3.dylib /usr/local/lib/libportmidi.2.0.3.dylib

from portmidi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.