Comments (4)
Thanks for the explanation. Now I get the problem. I just installed Csound via Brew, and then I was able to install csound-api
via npm. Success! Thanks!
Jason
from csound-api.
I don’t have an M1 Mac on which I can reproduce this, but on Apple Silicon, Homebrew installs into /opt/homebrew rather than /usr/local, so Clang needs to be told where to find Homebrew-installed headers and libraries.
Can you try running—
CPATH="$(brew --prefix)/include" \
LIBRARY_PATH="$(brew --prefix)/lib" \
npm install https://github.com/nwhetsell/csound-api.git
—and if that still results in an error about boost/lockfree/queue.hpp not being found—
export CPATH="$(brew --prefix)/include"
export LIBRARY_PATH="$(brew --prefix)/lib"
npm install https://github.com/nwhetsell/csound-api.git
I’m hoping that one or both of those will resolve the boost/lockfree/queue.hpp error, but I’m willing to bet you’ll end up with an error that csound/cwindow.h isn’t found. Csound’s installers put headers in a non-standard location, and the simplest way to resolve this is to reinstall Csound from Homebrew:
brew install csound
Rerunning one of the above npm install
commands should then install csound-api.
from csound-api.
Thanks so much for the fast response, Nate! export CPATH="$(brew --prefix)/include"
and export LIBRARY_PATH="$(brew --prefix)/lib"
did the trick with finding the Boost library. You're also correct that I'm now getting an error due to the cwindow.h
header.
I noticed that the Csound headers appear to be installed on my computer at /Library/Frameworks/CsoundLib64.framework/Headers
. Would I be able to use the same export CPATH=
command to include this directory? If that's a solution I'd prefer to do that over installing another Csound instance via Brew. Otherwise, I can bite the bullet and do what you suggested.
Thanks!
Jason
from csound-api.
@jasonhallen You’re welcome, happy to help!
Would I be able to use the same
export CPATH=
command to include this directory?
Yes, but that wouldn’t resolve the issue with Clang being able to find csound/cwindow.h. The problem is that on Linux and Windows, Csound puts headers in a folder named csound
, so #include <csound/cwindow.h>
works. However, Csound’s macOS installer puts headers in the folder you mention—/Library/Frameworks/CsoundLib64.framework/Headers
—so #include <csound/cwindow.h>
wouldn’t work even if that folder was added to CPATH
(but #include <cwindow.h>
would work).
The simplest fix for this—by far—is to install Csound using Homebrew. Csound from Homebrew has everything that the “official” installer includes, plus more (like the opcodes that were relegated to https://github.com/csound/plugins).
from csound-api.
Related Issues (17)
- Broken in Node 4.x HOT 7
- Allow working from global install HOT 3
- undefined symbol: __atomic_load_16** HOT 12
- undefined symbol on node 10.7 HOT 2
- Possibility of supressing stdout/stderr writes? HOT 2
- Problems installing HOT 5
- npm install csound-api not working HOT 17
- csdebug.h missing when installing on Debian Linux Jessie HOT 2
- Errors running csound-api and Electron HOT 3
- Throttling in `.GetControlChannel()` method? HOT 7
- error with boost when installing csound-api HOT 4
- Stopping/Resetting an instance of PerformAsync causes crash HOT 3
- Feature request and version error HOT 7
- Async .InputMessage? HOT 21
- Add CompileOrc and EvalCode to CsoundEventType HOT 3
- CSound subprocess stopped with SIGINT does not terminate properly HOT 10
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 csound-api.