gordonklaus / portaudio

Go bindings for the PortAudio audio I/O library
MIT License
704 stars 95 forks source link

Compiling a static library #32

Closed cor-bos closed 2 years ago

cor-bos commented 4 years ago

Hi, I'm trying to compile a portaudio.dll but that gives me a lot of headache. So I was wondering if threre's a way to compile a static go library instead of a shared one. I'm not very familiar with the whole cgo process and my knowledge of c/c++ is very basic. I know that rtaudio has a way to create a static go library. Maybe someone can get me in the right direction to do it with go-portaudio Regards, Cor

wbourne0 commented 4 years ago

Hey- I had this same issue, I made a fork, This should work fine, if not feel free to create an issue on my fork.

MagicalTux commented 3 years ago

If you need I made a static version at https://github.com/KarpelesLab/static-portaudio (doc)

It's the same go code as this repo, but embeds portaudio.