kirknorthrop / squeezelite

Automatically exported from code.google.com/p/squeezelite
Other
0 stars 0 forks source link

FreeBSD Port #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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 commented 8 years ago
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 commented 8 years ago
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 commented 8 years ago
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 commented 8 years ago
Works

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

GoogleCodeExporter commented 8 years ago
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 commented 8 years ago
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 commented 8 years ago

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