Skip to content
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

FreeBSD Port #21

Closed
GoogleCodeExporter opened this issue Dec 24, 2015 · 7 comments
Closed

FreeBSD Port #21

GoogleCodeExporter opened this issue Dec 24, 2015 · 7 comments

Comments

@GoogleCodeExporter
Copy link

Is it possible to get this working on FreeBSD.  I do not know much about 
programming, but am more than willing to test it on my machines.  Squeezelite 
on Freebsd would make a very small installation.

Thanks 

Original issue reported on code.google.com by iffla...@gmail.com on 18 Apr 2013 at 9:48

@GoogleCodeExporter
Copy link
Author

I don't know because I don't run FreeBSD, but it builds with port audio on OSX, 
so its possible it may build ok with some tweeks to the makefile.  It will need 
someone familar with compiling on FreeBSD to do this though.

Original comment by trio...@btinternet.com on 19 Apr 2013 at 9:38

@GoogleCodeExporter
Copy link
Author

Here's a patch to get it to work on FreeBSD 9 with PortAudio.

The main issue was that locking the audio buffer mutex both in pa_callback() 
and before calling _pa_open() doesn't work on FreeBSD, because Pa_OpenStream() 
ends up calling pa_callback()  in a different thread before returning, which 
causes a deadlock.  I've "fixed" it by removing the lock around _pa_open(), but 
I don't know the code base well enough to determine whether or not that can 
cause problems.

Original comment by znxfire...@gmail.com on 13 Mar 2014 at 9:38

Attachments:

@GoogleCodeExporter
Copy link
Author

Thanks - I've commited a variant of this to master.  Please can you check this 
works for you.  The makefile will need turning to your locations for portaudio.

Original comment by trio...@btinternet.com on 15 Mar 2014 at 4:21

@GoogleCodeExporter
Copy link
Author

Works

Original comment by haar...@gmail.com on 15 Mar 2014 at 8:19

@GoogleCodeExporter
Copy link
Author

It compiled, but i had to add the following directly to the Makefile. 

CPPFLAGS = -I/usr/local/include -I/usr/local/include/portaudio2
LDFLAGS = -L/usr/local/lib -L/usr/local/lib/portaudio2 -lportaudio -lpthread -lm

Is something suppose to reference the Makefile.freebsd?

Other than that it compiled and is working.  Still more playing to be done with 
it.

Original comment by iffla...@gmail.com on 17 Mar 2014 at 12:26

@GoogleCodeExporter
Copy link
Author

Its intended that you build with:

gmake -f Makefile.freebsd

Should work from the git version without modification in this case?

Original comment by trio...@btinternet.com on 17 Mar 2014 at 9:23

@GoogleCodeExporter
Copy link
Author

Original comment by trio...@btinternet.com on 9 Aug 2014 at 9:41

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant