-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation issues on macOS Sonoma 14.5 with GHC 9.4.8 and Cabal 3.10.3.0 #59
Comments
This is a new error to me. Unfortunately it will be a bit before I can dig into this. At a glance this looks like it may be outside the scope of Euterpea's code base and therefore might not be something I can fix directly. Since it's a failure within PortMidi I would suggest also creating an issue here: https://github.com/PortMidi/PortMidi-haskell In the mean time, I don't know if this will help or not with what you're trying to do with Euterpea, but if you don't mind writing MIDI files and playing them through another program (like MuseScore or a DAW) instead of using the "play" function to do it directly through a synth, you can try EuterpeaLite instead and avoid the whole PortMidi installation. Also it's unclear to me if you used the --allow-newer flag? If not, give that a try. |
I actually just fixed this issue in PortMidi, and my PR has been approved, but its not merged yet. PortMidi/PortMidi-haskell#21 |
@ludflu Were you able to fix this? I am experiencing the same issue. |
I also ran into this issue running MacOS Sonoma 14.6.1, Cabal 3.12.1.0, and GHC 9.4.8. After reading the Euterpea website, the Cabal docs, and the issues on this repo I think I found a solution for my use case and figured I would share it in the case it may be useful to others. In order to get up and running I did the following.
This all allowed me to run All the changes in the Euterpea and HSoM forks are related to either expanding the allowed versions for dependencies or changing the build type in the Cabal file. All that being said my solution has been very lightly tested on only one machine. I am planning to work my way through the Haskell School of Music textbook so I wanted to have the HSoM package available in my project. If you just want to use Euterpea you can remove the fork and build dependency for HSoM. Once PortMidi/PortMidi-haskell#22 is merged and a new version released we should no longer need the fork for PortMidi-haskell in Perhaps some of the above is helpful to @amordahl @Quarkstar.
|
@charleswaddell Thank you so much! This worked for me on an M4 Macbook Pro. |
Hi! I'm experiencing issues while installing the Euterpea Haskell package on my macOS Sonoma 14.5 system with GHC 9.4.8 and Cabal 3.10.3.0.
The initial issue is a compilation error in the PortMidi 0.2.0.0 package, specifically in the portmidi/pm_mac/pmmacosxcm.c:60:22 file. The error is:
To resolve this, I followed the instructions in the PortMidi (https://github.com/PortMidi/portmidi/blob/8efac0cfe6c245aeb2ce5122aa2b82fb79e91463/pm_mac/pmmacosxcm.c#L187), downloaded the PortMidi-Haskell package, and added
#define NULL 0
to the portmidi/pm_mac/pmmacosxcm.c file. After doing this, I was able to successfully install the PortMidi-Haskell and Euterpea usingcabal v1-install
.However, when I try to import the Euterpea package in GHCi, I encounter a different issue:
I'm new to Haskell and I found this parse error in the Euterpea/IO/MIDI/MidiIO.lhs file really confusing. Any advice or suggestions would be greatly appreciated.
The text was updated successfully, but these errors were encountered: