Git Product home page Git Product logo

Comments (15)

marcoc1712 avatar marcoc1712 commented on July 17, 2024

I had a first and fast try some time ago, I've noticoied I have to
complile some library frst, then I gave up. Please report hre your
findings If you arrange to compile squeezelite on mac OS X.

thanks, Marco

2015-12-08 15:49 GMT+01:00 Rainer M Krug [email protected]:

Hi

I get the following error when trying to compile on OS X:

$ make all
cc -Wall -fPIC -O2 main.c -c -o main.o
cc -Wall -fPIC -O2 slimproto.c -c -o slimproto.o
slimproto.c:672:57: warning: use of logical '||' with constant operand [-Wconstant-logical-operand]
if (_start_output && (output.state == OUTPUT_STOPPED || OUTPUT_OFF)) {
^ ~~~~~~~~~~
slimproto.c:672:57: note: use '|' for a bitwise operation
if (_start_output && (output.state == OUTPUT_STOPPED || OUTPUT_OFF)) {
^~
|
1 warning generated.
cc -Wall -fPIC -O2 buffer.c -c -o buffer.o
cc -Wall -fPIC -O2 stream.c -c -o stream.o
cc -Wall -fPIC -O2 utils.c -c -o utils.o
cc -Wall -fPIC -O2 output.c -c -o output.o
output.c:154:22: warning: comparison of constant 'FADE_ACTIVE' (2) with boolean expression is always false [-Wtautological-constant-out-of-range-compare]
if (!output.fade == FADE_ACTIVE || !output.fade_mode == FADE_CROSSFADE) {
~~~~~~~~~~~~ ^ ~~~~~~~~~~~
1 warning generated.
cc -Wall -fPIC -O2 output_alsa.c -c -o output_alsa.o
cc -Wall -fPIC -O2 output_pa.c -c -o output_pa.o
cc -Wall -fPIC -O2 output_stdout.c -c -o output_stdout.o
cc -Wall -fPIC -O2 output_pack.c -c -o output_pack.o
cc -Wall -fPIC -O2 decode.c -c -o decode.o
cc -Wall -fPIC -O2 flac.c -c -o flac.o
cc -Wall -fPIC -O2 pcm.c -c -o pcm.o
cc -Wall -fPIC -O2 mad.c -c -o mad.o
cc -Wall -fPIC -O2 vorbis.c -c -o vorbis.o
cc -Wall -fPIC -O2 faad.c -c -o faad.o
cc -Wall -fPIC -O2 mpg.c -c -o mpg.o
cc main.o slimproto.o buffer.o stream.o utils.o output.o output_alsa.o output_pa.o output_stdout.o output_pack.o decode.o flac.o pcm.o mad.o vorbis.o faad.o mpg.o -lasound -lpthread -lm -lrt -o squeezelite
ld: library not found for -lasound
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [squeezelite] Error 1

I can't find any asound on homebrew - how can I compile squeezelite on
os-x?

Thanks,

Rainer


Reply to this email directly or view it on GitHub
#1.

from squeezelite.

rkrug avatar rkrug commented on July 17, 2024

OK - I tried to compile using the Linux makefile.

One has to do:

$ make -f Makefile.osx
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include   main.c -c -o main.o
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include   slimproto.c -c -o slimproto.o
slimproto.c:672:57: warning: use of logical '||' with constant operand [-Wconstant-logical-operand]
                        if (_start_output && (output.state == OUTPUT_STOPPED || OUTPUT_OFF)) {
                                                                             ^  ~~~~~~~~~~
slimproto.c:672:57: note: use '|' for a bitwise operation
                        if (_start_output && (output.state == OUTPUT_STOPPED || OUTPUT_OFF)) {
                                                                             ^~
                                                                             |
1 warning generated.
slimproto.c:672:57: warning: use of logical '||' with constant operand [-Wconstant-logical-operand]
                        if (_start_output && (output.state == OUTPUT_STOPPED || OUTPUT_OFF)) {
                                                                             ^  ~~~~~~~~~~
slimproto.c:672:57: note: use '|' for a bitwise operation
                        if (_start_output && (output.state == OUTPUT_STOPPED || OUTPUT_OFF)) {
                                                                             ^~
                                                                             |
1 warning generated.
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include   buffer.c -c -o buffer.o
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include   stream.c -c -o stream.o
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include   utils.c -c -o utils.o
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include   output.c -c -o output.o
output.c:154:22: warning: comparison of constant 'FADE_ACTIVE' (2) with boolean expression is always false [-Wtautological-constant-out-of-range-compare]
                                if (!output.fade == FADE_ACTIVE || !output.fade_mode == FADE_CROSSFADE) {
                                    ~~~~~~~~~~~~ ^  ~~~~~~~~~~~
1 warning generated.
output.c:154:22: warning: comparison of constant 'FADE_ACTIVE' (2) with boolean expression is always false [-Wtautological-constant-out-of-range-compare]
                                if (!output.fade == FADE_ACTIVE || !output.fade_mode == FADE_CROSSFADE) {
                                    ~~~~~~~~~~~~ ^  ~~~~~~~~~~~
1 warning generated.
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include   output_alsa.c -c -o output_alsa.o
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include   output_pa.c -c -o output_pa.o
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include   output_stdout.c -c -o output_stdout.o
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include   output_pack.c -c -o output_pack.o
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include   decode.c -c -o decode.o
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include   flac.c -c -o flac.o
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include   pcm.c -c -o pcm.o
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include   mad.c -c -o mad.o
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include   vorbis.c -c -o vorbis.o
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include   faad.c -c -o faad.o
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include   mpg.c -c -o mpg.o
cc main.o slimproto.o buffer.o stream.o utils.o output.o output_alsa.o output_pa.o output_stdout.o output_pack.o decode.o flac.o pcm.o mad.o vorbis.o faad.o mpg.o -arch x86_64 -arch i386 -lpthread libportaudio.a -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon -o squeezelite-osx
clang: error: no such file or directory: 'libportaudio.a'
make: *** [squeezelite-osx] Error 1

And now the libportaudio is missing - but I guess the path is not found as I installed it via homebrew.

Will give feedback later.

from squeezelite.

marcoc1712 avatar marcoc1712 commented on July 17, 2024

I gave up at the same point: Portaudo was missing, I think you have to
compile it first.

Many thanks for your feedback, is greatly appreciated.

Marco

2015-12-08 17:48 GMT+01:00 Rainer M Krug [email protected]:

OK - I tried to compile using the Linux makefile.

One has to do:

$ make -f Makefile.osx
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include main.c -c -o main.o
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include slimproto.c -c -o slimproto.o
slimproto.c:672:57: warning: use of logical '||' with constant operand [-Wconstant-logical-operand]
if (_start_output && (output.state == OUTPUT_STOPPED || OUTPUT_OFF)) {
^ ~~~~~~~~~~
slimproto.c:672:57: note: use '|' for a bitwise operation
if (_start_output && (output.state == OUTPUT_STOPPED || OUTPUT_OFF)) {
^~
|
1 warning generated.
slimproto.c:672:57: warning: use of logical '||' with constant operand [-Wconstant-logical-operand]
if (_start_output && (output.state == OUTPUT_STOPPED || OUTPUT_OFF)) {
^ ~~~~~~~~~~
slimproto.c:672:57: note: use '|' for a bitwise operation
if (_start_output && (output.state == OUTPUT_STOPPED || OUTPUT_OFF)) {
^~
|
1 warning generated.
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include buffer.c -c -o buffer.o
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include stream.c -c -o stream.o
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include utils.c -c -o utils.o
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include output.c -c -o output.o
output.c:154:22: warning: comparison of constant 'FADE_ACTIVE' (2) with boolean expression is always false [-Wtautological-constant-out-of-range-compare]
if (!output.fade == FADE_ACTIVE || !output.fade_mode == FADE_CROSSFADE) {
~~~~~~~~~~~~ ^ ~~~~~~~~~~~
1 warning generated.
output.c:154:22: warning: comparison of constant 'FADE_ACTIVE' (2) with boolean expression is always false [-Wtautological-constant-out-of-range-compare]
if (!output.fade == FADE_ACTIVE || !output.fade_mode == FADE_CROSSFADE) {
~~~~~~~~~~~~ ^ ~~~~~~~~~~~
1 warning generated.
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include output_alsa.c -c -o output_alsa.o
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include output_pa.c -c -o output_pa.o
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include output_stdout.c -c -o output_stdout.o
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include output_pack.c -c -o output_pack.o
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include decode.c -c -o decode.o
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include flac.c -c -o flac.o
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include pcm.c -c -o pcm.o
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include mad.c -c -o mad.o
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include vorbis.c -c -o vorbis.o
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include faad.c -c -o faad.o
cc -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include mpg.c -c -o mpg.o
cc main.o slimproto.o buffer.o stream.o utils.o output.o output_alsa.o output_pa.o output_stdout.o output_pack.o decode.o flac.o pcm.o mad.o vorbis.o faad.o mpg.o -arch x86_64 -arch i386 -lpthread libportaudio.a -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon -o squeezelite-osx
clang: error: no such file or directory: 'libportaudio.a'
make: *** [squeezelite-osx] Error 1

And now the libportaudio is missing - but I guess the path is not found as
I installed it via homebrew.

Will give feedback later.


Reply to this email directly or view it on GitHub
#1 (comment)
.

from squeezelite.

rkrug avatar rkrug commented on July 17, 2024

I lahe it installed through homebrew and the file is at /usr/local/lib - I just don't know how to specify the path to the library libportaudio.a.

from squeezelite.

marcoc1712 avatar marcoc1712 commented on July 17, 2024

If libportaudio.a is in /usr/local/lib (please explain me how you get to
have it there) you should use the -i option in make. Have a look at the
makefile.osx for details, but is something like this:

CFLAGS = -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include $(OPTS) that
has to become

CFLAGS = -arch x86_64 -arch i386 -Wall -fPIC -O2 -I /usr/local/lib $(OPTS)

I suppose.

2015-12-08 20:31 GMT+01:00 Rainer M Krug [email protected]:

I lahe it installed through homebrew and the file is at /usr/local/lib - I
just don't know how to specify the path to the library libportaudio.a.


Reply to this email directly or view it on GitHub
#1 (comment)
.

from squeezelite.

rkrug avatar rkrug commented on July 17, 2024

I have added the -v flag for debugging and I get finally the following:

...
clang -cc1 version 7.0.0 based upon LLVM 3.7.0svn default target x86_64-apple-darwin15.0.0
ignoring nonexistent directory "C_INCLUDE_PATH"
ignoring nonexistent directory "C_INCLUDE_PATH"
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/local/include"
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/Library/Frameworks"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/lib
 /usr/local/include
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.0/include
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks (framework directory)
End of search list.
 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo" -create -output mpg.o /var/folders/50/wcr5bjwn75q595n6x82gxj280000gn/T/mpg-13a268.o /var/folders/50/wcr5bjwn75q595n6x82gxj280000gn/T/mpg-cda094.o
cc main.o slimproto.o buffer.o stream.o utils.o output.o output_alsa.o output_pa.o output_stdout.o output_pack.o decode.o flac.o pcm.o mad.o vorbis.o faad.o mpg.o -arch x86_64 -arch i386 -lpthread libportaudio.a -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon -o squeezelite-osx
clang: error: no such file or directory: 'libportaudio.a'
make: *** [squeezelite-osx] Error 1

libportaudio.a is in /usr/local/lib:

 ls -la /usr/local/lib/libportaudio.*
lrwxr-xr-x  1 rainerkrug  admin  56 Dec  8 15:42 /usr/local/lib/libportaudio.2.dylib -> ../Cellar/portaudio/19.20140130/lib/libportaudio.2.dylib
lrwxr-xr-x  1 rainerkrug  admin  50 Dec  8 15:42 /usr/local/lib/libportaudio.a -> ../Cellar/portaudio/19.20140130/lib/libportaudio.a
lrwxr-xr-x  1 rainerkrug  admin  54 Dec  8 15:42 /usr/local/lib/libportaudio.dylib -> ../Cellar/portaudio/19.20140130/lib/libportaudio.dylib

According your question how I got it there, I used homebrew:

brew install portaudio

from squeezelite.

rkrug avatar rkrug commented on July 17, 2024

As a last resort, I used

CFLAGS  = -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include -v $(OPTS)
LDFLAGS = -arch x86_64 -arch i386 -lpthread /usr/local/lib/libportaudio.a -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon 

and it finds the liportaudio.a file, but it seems to be of the wrong architecture:

cc main.o slimproto.o buffer.o stream.o utils.o output.o output_alsa.o output_pa.o output_stdout.o output_pack.o decode.o flac.o pcm.o mad.o vorbis.o faad.o mpg.o -arch x86_64 -arch i386 -lpthread /usr/local/lib/libportaudio.a -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon  -o squeezelite-osx
ld: warning: ignoring file /usr/local/lib/libportaudio.a, file was built for archive which is not the architecture being linked (i386): /usr/local/lib/libportaudio.a
Undefined symbols for architecture i386:
  "_PaMacCore_SetupStreamInfo", referenced from:
      __pa_open in output_pa.o
  "_Pa_AbortStream", referenced from:
      _output_close_pa in output_pa.o
  "_Pa_CloseStream", referenced from:
      _test_open in output_pa.o
      __pa_open in output_pa.o
  "_Pa_GetDefaultOutputDevice", referenced from:
      _pa_device_id in output_pa.o
  "_Pa_GetDeviceCount", referenced from:
      _list_devices in output_pa.o
      _pa_device_id in output_pa.o
  "_Pa_GetDeviceInfo", referenced from:
      _list_devices in output_pa.o
      _test_open in output_pa.o
      _pa_device_id in output_pa.o
      __pa_open in output_pa.o
  "_Pa_GetErrorText", referenced from:
      _list_devices in output_pa.o
      __pa_open in output_pa.o
      _output_init_pa in output_pa.o
      _output_close_pa in output_pa.o
  "_Pa_GetHostApiInfo", referenced from:
      _list_devices in output_pa.o
      _pa_device_id in output_pa.o
  "_Pa_GetStreamInfo", referenced from:
      __pa_open in output_pa.o
  "_Pa_GetStreamTime", referenced from:
      _pa_callback in output_pa.o
  "_Pa_Initialize", referenced from:
      _list_devices in output_pa.o
      _output_init_pa in output_pa.o
      _pa_monitor in output_pa.o
  "_Pa_OpenStream", referenced from:
      _test_open in output_pa.o
      __pa_open in output_pa.o
  "_Pa_SetStreamFinishedCallback", referenced from:
      __pa_open in output_pa.o
  "_Pa_StartStream", referenced from:
      __pa_open in output_pa.o
  "_Pa_Terminate", referenced from:
      _list_devices in output_pa.o
      _output_close_pa in output_pa.o
      _pa_monitor in output_pa.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [squeezelite-osx] Error 1

Any suggestions from here?

from squeezelite.

rkrug avatar rkrug commented on July 17, 2024

Solved: by excluding the i386 architecture, I managed to compile squeezelite. Here is the diff:

1 file changed, 2 insertions(+), 2 deletions(-)
Makefile.osx | 4 ++--

modified   Makefile.osx
@@ -1,6 +1,6 @@
 # OSX build - adjust -I to point to header files for codecs and portaudio
-CFLAGS  = -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include $(OPTS)
-LDFLAGS = -arch x86_64 -arch i386 -lpthread libportaudio.a -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon
+CFLAGS  = -arch x86_64 -Wall -fPIC -O2 -I./include -v $(OPTS)
+LDFLAGS = -arch x86_64 -lpthread /usr/local/lib/libportaudio.a -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon 

 EXECUTABLE ?= squeezelite-osx

I don't like that I specified the path directly for libportaudio.a, but I did not manage otherwise.

There is one issue still, which possibly has nothing to do with the compilation itself: When running squeezelite, I get the following warning:

 ./squeezelite-osx
2015-12-08 22:05:41.827 squeezelite-osx[45025:1358559] 22:05:41.826 WARNING:  140: This application, or a library it uses, is using the deprecated Carbon Component Manager for hosting Audio Units. Support for this will be removed in a future release. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h.

from squeezelite.

marcoc1712 avatar marcoc1712 commented on July 17, 2024

NO idea about the runtime message, other than some lib shoud be rebulilded,
but is a warning message and maybe is there since long time...

I'll have a try with your file tomorrow, now is too late (half past
midnight here). Tankyou very much, shal I ask your support just in case?

Marco

2015-12-08 22:17 GMT+01:00 Rainer M Krug [email protected]:

Solved: by excluding the i386 architecture, I managed to compile
squeezelite. Here is the diff:

1 file changed, 2 insertions(+), 2 deletions(-)
Makefile.osx | 4 ++--

modified Makefile.osx
@@ -1,6 +1,6 @@

OSX build - adjust -I to point to header files for codecs and portaudio

-CFLAGS = -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include $(OPTS)
-LDFLAGS = -arch x86_64 -arch i386 -lpthread libportaudio.a -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon
+CFLAGS = -arch x86_64 -Wall -fPIC -O2 -I./include -v $(OPTS)
+LDFLAGS = -arch x86_64 -lpthread /usr/local/lib/libportaudio.a -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon

EXECUTABLE ?= squeezelite-osx

I don't like that I specified the path directly for libportaudio.a, but I
did not manage otherwise.

There is one issue still, which possibly has nothing to do with the
compilation itself: When running squeezelite, I get the following warning:

./squeezelite-osx
2015-12-08 22:05:41.827 squeezelite-osx[45025:1358559] 22:05:41.826 WARNING: 140: This application, or a library it uses, is using the deprecated Carbon Component Manager for hosting Audio Units. Support for this will be removed in a future release. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h.


Reply to this email directly or view it on GitHub
#1 (comment)
.

from squeezelite.

marcoc1712 avatar marcoc1712 commented on July 17, 2024

First stop here... How to get brew?

2015-12-09 0:44 GMT+01:00 Marco Curti [email protected]:

NO idea about the runtime message, other than some lib shoud be
rebulilded, but is a warning message and maybe is there since long time...

I'll have a try with your file tomorrow, now is too late (half past
midnight here). Tankyou very much, shal I ask your support just in case?

Marco

2015-12-08 22:17 GMT+01:00 Rainer M Krug [email protected]:

Solved: by excluding the i386 architecture, I managed to compile
squeezelite. Here is the diff:

1 file changed, 2 insertions(+), 2 deletions(-)
Makefile.osx | 4 ++--

modified Makefile.osx
@@ -1,6 +1,6 @@

OSX build - adjust -I to point to header files for codecs and portaudio

-CFLAGS = -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include $(OPTS)
-LDFLAGS = -arch x86_64 -arch i386 -lpthread libportaudio.a -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon
+CFLAGS = -arch x86_64 -Wall -fPIC -O2 -I./include -v $(OPTS)
+LDFLAGS = -arch x86_64 -lpthread /usr/local/lib/libportaudio.a -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon

EXECUTABLE ?= squeezelite-osx

I don't like that I specified the path directly for libportaudio.a, but I
did not manage otherwise.

There is one issue still, which possibly has nothing to do with the
compilation itself: When running squeezelite, I get the following warning:

./squeezelite-osx
2015-12-08 22:05:41.827 squeezelite-osx[45025:1358559] 22:05:41.826 WARNING: 140: This application, or a library it uses, is using the deprecated Carbon Component Manager for hosting Audio Units. Support for this will be removed in a future release. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h.


Reply to this email directly or view it on GitHub
#1 (comment)
.

from squeezelite.

marcoc1712 avatar marcoc1712 commented on July 17, 2024

My system is too old and I'm unable to download TigerBrew, something wrong
with raw.github.

Could I ask You to kindly build for me a little modified version of
squeezelite you could find here:https://github.com/marcoc1712/squeezelite-R2
just to have a try if it works also on OS X as it's supposed to do?

If so, maybe is better move hourseft there instead of here.

Tank you very much.

Marco

2015-12-09 8:29 GMT+01:00 Marco Curti [email protected]:

First stop here... How to get brew?

2015-12-09 0:44 GMT+01:00 Marco Curti [email protected]:

NO idea about the runtime message, other than some lib shoud be
rebulilded, but is a warning message and maybe is there since long time...

I'll have a try with your file tomorrow, now is too late (half past
midnight here). Tankyou very much, shal I ask your support just in case?

Marco

2015-12-08 22:17 GMT+01:00 Rainer M Krug [email protected]:

Solved: by excluding the i386 architecture, I managed to compile
squeezelite. Here is the diff:

1 file changed, 2 insertions(+), 2 deletions(-)
Makefile.osx | 4 ++--

modified Makefile.osx
@@ -1,6 +1,6 @@

OSX build - adjust -I to point to header files for codecs and portaudio

-CFLAGS = -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include $(OPTS)
-LDFLAGS = -arch x86_64 -arch i386 -lpthread libportaudio.a -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon
+CFLAGS = -arch x86_64 -Wall -fPIC -O2 -I./include -v $(OPTS)
+LDFLAGS = -arch x86_64 -lpthread /usr/local/lib/libportaudio.a -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon

EXECUTABLE ?= squeezelite-osx

I don't like that I specified the path directly for libportaudio.a, but
I did not manage otherwise.

There is one issue still, which possibly has nothing to do with the
compilation itself: When running squeezelite, I get the following warning:

./squeezelite-osx
2015-12-08 22:05:41.827 squeezelite-osx[45025:1358559] 22:05:41.826 WARNING: 140: This application, or a library it uses, is using the deprecated Carbon Component Manager for hosting Audio Units. Support for this will be removed in a future release. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h.


Reply to this email directly or view it on GitHub
#1 (comment)
.

from squeezelite.

rkrug avatar rkrug commented on July 17, 2024

Sure. Done. Where should I upload it or mail it to?

Final question:
What is the status of all these different squeezelite player? Which one is the original? Is it only on google code which is / will shut down? I am completely confused about this.

from squeezelite.

marcoc1712 avatar marcoc1712 commented on July 17, 2024

Thanks, the easy way could be just email it at [email protected] and
I'll add to the release if you agree, tath way other people could use it
and test it.

Too bad, Triode is not responding to e-mail or others since last year , I
heard some rumors, but I don't really know what 's really going on, so i
prefer to retain my self to comment, sure you understand.

In the meanwile, google code is closig down, so we needed to 'save' in
gitHub the last version of Squeezelite. I was in touch with Ralph and
others in order to have just one repository here, but I failed.

My mod is very simple, it make Squeezelite always check the stream header
when receiving PCM and NOT trust on the slimproto message sent from the
server, that could be wrong if the stream is the result of resampling and
trascoding.

That way, You could upsample and decode i.e. flac files using SOX on the
server, reducing by a factor of 20 the hardware requirement of the player,
at the cost of an higher network usage.

I've just released also a Plugin that manage resampling and transcoding on
the server in a easier way than using convert.conf or similar.

It's actualy in beta test phase, but seems stable, you could find the repo
in gitHub beside the squeezelite one. It needs works to handle more codecs
and applications, and in Windows suffers by Perl portability issues and the
requirement to use 'compiled' self contained excutables, so its huge but
works.

You are welcome to download and try both, if you perform transcoding and
upsampling. I'm always intrested in other people opinions and i'm open to
advices.

Thanks, Marco

.

2015-12-09 9:49 GMT+01:00 Rainer M Krug [email protected]:

Sure. Done. Where should I upload it or mail it to?

Final question:
What is the status of all these different squeezelite player? Which one is
the original? Is it only on google code which is / will shut down? I am
completely confused about this.


Reply to this email directly or view it on GitHub
#1 (comment)
.

from squeezelite.

rkrug avatar rkrug commented on July 17, 2024

OK - Which build options should I use for the build? Fine with me - no problem.

I'll look at the plugin some time later - for the moment it seems to be working.

This is a kind of an unsatisfying situation for squeezelite - but let's see what happens in the future.

from squeezelite.

marcoc1712 avatar marcoc1712 commented on July 17, 2024

Ah, well .don't know... the versions on my mac is marked i386, v. 1.6.5

build options:

OSX PORTAUDIO SELFPIPE RESAMPLE DSD LINKALL

I think you could keep same options.

Not sure why is i386 when the mac is a CORE 2 DUO, so 64 bit... was
downloadeb by the local player plugin I think,

Thanks a lot.

2015-12-09 13:40 GMT+01:00 Rainer M Krug [email protected]:

OK - Which build options should I use for the build? Fine with me - no
problem.

I'll look at the plugin some time later - for the moment it seems to be
working.

This is a kind of an unsatisfying situation for squeezelite - but let's
see what happens in the future.


Reply to this email directly or view it on GitHub
#1 (comment)
.

from squeezelite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.