conda-forge / portaudio-feedstock

A conda-smithy repository for portaudio.
BSD 3-Clause "New" or "Revised" License
2 stars 9 forks source link

Put DLL on Windows path? #1

Closed mgeier closed 6 years ago

mgeier commented 6 years ago

Currently, when installing https://anaconda.org/conda-forge/portaudio on Windows, the PortAudio DLL is placed in bin\libportaudio-2.dll.

Is it possible to copy the DLL to some directory that is on the Windows %PATH%? For example Library\bin\libportaudio-2.dll?

If the DLL is in the %PATH%, I could change my module https://anaconda.org/conda-forge/python-sounddevice to search for the right DLL, because as it is now, it doesn't work for Windows.

mgeier commented 6 years ago

Of course, I've found out how if works right after submitting this issue:

Since the main directory of the conda environment is on the %PATH%, I can use a subdirectory when trying to find the DLL, e.g.

find_library('bin\\libportaudio-2.dll')

This works fine, no need to move the DLL, sorry for the noise!