Comments (4)
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.
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.
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.
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)
- Event buffers are causing much garbage, improve if there is a latency problem HOT 1
- Channel filtering doesn't look right ... HOT 1
- Why "portmidi.CountDevices()" always return 0?
- Event struct doesn't expose entire Message slice HOT 4
- How to install libportmidi on OSX? HOT 16
- Could not determine kind of name HOT 1
- no debian package for version 217 available HOT 9
- Distribute portmidi and porttime headers as a part of the repo
- Crash on Pm_Write HOT 10
- Golang MIDI collaboration HOT 3
- go signal killed when running example
- Duplicate symbol messages on Apple Mac HOT 2
- Segv when reading and writing a storm of events HOT 1
- Listen() has no stop mechanism.
- Issue sending midi messages on Mac OS Montery HOT 4
- Read(max int) errors on system real time messages
- ReadSysExBytes panics with array overflow if no event was read
- How to send output and have the timestamps be honored?
- Using ch := in.Listen() seems to lose data HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from portmidi.