Ultimate MPD (SACD ISO, Native DSD, and more)

Status
Not open for further replies.
Hello from Germany,

i have a error:

src/mixer/plugins/AlsaMixerPlugin.cxx:290:40: error: ‘log’ was not declared in this scope
const float scale = 100.0/log(100/a);
^
src/mixer/plugins/AlsaMixerPlugin.cxx: In function ‘float {anonymous}::toLogVol(float)’:
src/mixer/plugins/AlsaMixerPlugin.cxx:294:36: error: ‘log’ was not declared in this scope
return x == 0 ? 0 : log(x/a) * scale;
^
src/mixer/plugins/AlsaMixerPlugin.cxx: In function ‘int {anonymous}::fromLogVol(float)’:
src/mixer/plugins/AlsaMixerPlugin.cxx:300:31: error: ‘exp’ was not declared in this scope
return a * exp(v/scale);
^
Makefile:10238: die Regel für Ziel „src/mixer/plugins/libmixer_plugins_a-AlsaMixerPlugin.o“ scheiterte
make[1]: *** [src/mixer/plugins/libmixer_plugins_a-AlsaMixerPlugin.o] Fehler 1
make[1]: Verzeichnis „/home/tom/share/MPD“ wird verlassen
Makefile:15628: die Regel für Ziel „install“ scheiterte
make: *** [install] Fehler 2

debian jessie sid on a pc

thanks for help.
a great job

Cliff
 
Hello again,

I can now successfully run make install, but still have 2 problems: 1. mpd only runs locally with mpd /etc/mpd.conf 2. No system service My system debian jessie on a pc. Is there something I overlook? Many thanks in advance
 
I really want to give this a try as I can't seem to get proper hiss-free dsd streaming to work.

But, I get an error when I make:

Code:
src/mixer/plugins/AlsaMixerPlugin.cxx:290:40: error: ‘log’ was not declared in this scope
     const float scale = 100.0/log(100/a);
                                        ^
src/mixer/plugins/AlsaMixerPlugin.cxx: In function ‘float {anonymous}::toLogVol(float)’:
src/mixer/plugins/AlsaMixerPlugin.cxx:294:36: error: ‘log’ was not declared in this scope
         return x == 0 ? 0 : log(x/a) * scale;
                                    ^
src/mixer/plugins/AlsaMixerPlugin.cxx: In function ‘int {anonymous}::fromLogVol(float)’:
src/mixer/plugins/AlsaMixerPlugin.cxx:300:31: error: ‘exp’ was not declared in this scope
         return a * exp(v/scale);
                               ^
Makefile:10238: recipe for target 'src/mixer/plugins/libmixer_plugins_a-AlsaMixerPlugin.o' failed

I noticed the poster above had the same error and resolved it. Just wondering how to get around that?

Thanks!
 
I was able to resolve the above error by adding

#include "math.h"

to the beginning of src/mixer/plugins/AlsaMixerPlugin.cxx

But, now I have a new series of errors when I run:

make install CPPFLAGS="$(pkg-config --cflags glib-2.0)"

Code:
/src/lib/sacdiso/sacd_disc.cpp:89: undefined reference to `g_free'
libdecoder.a(libdecoder_a-sacd_disc.o): In function `charset_convert':
/src/lib/sacdiso/sacd_disc.cpp:86: undefined reference to `g_convert'
/src/lib/sacdiso/sacd_disc.cpp:89: undefined reference to `g_free'
/src/lib/sacdiso/sacd_disc.cpp:86: undefined reference to `g_convert'
/src/lib/sacdiso/sacd_disc.cpp:89: undefined reference to `g_free'
/src/lib/sacdiso/sacd_disc.cpp:86: undefined reference to `g_convert'
/src/lib/sacdiso/sacd_disc.cpp:89: undefined reference to `g_free'
/src/lib/sacdiso/sacd_disc.cpp:86: undefined reference to `g_convert'

Some Google searching suggests is the order of specifying the library, but I have no idea how to correct it.

Any suggestions would be greatly appreciated!
 
I was able to resolve the above error by adding

#include "math.h"

to the beginning of src/mixer/plugins/AlsaMixerPlugin.cxx

But, now I have a new series of errors when I run:

make install CPPFLAGS="$(pkg-config --cflags glib-2.0)"

Code:
/src/lib/sacdiso/sacd_disc.cpp:89: undefined reference to `g_free'
libdecoder.a(libdecoder_a-sacd_disc.o): In function `charset_convert':
/src/lib/sacdiso/sacd_disc.cpp:86: undefined reference to `g_convert'
/src/lib/sacdiso/sacd_disc.cpp:89: undefined reference to `g_free'
/src/lib/sacdiso/sacd_disc.cpp:86: undefined reference to `g_convert'
/src/lib/sacdiso/sacd_disc.cpp:89: undefined reference to `g_free'
/src/lib/sacdiso/sacd_disc.cpp:86: undefined reference to `g_convert'
/src/lib/sacdiso/sacd_disc.cpp:89: undefined reference to `g_free'
/src/lib/sacdiso/sacd_disc.cpp:86: undefined reference to `g_convert'

Some Google searching suggests is the order of specifying the library, but I have no idea how to correct it.

Any suggestions would be greatly appreciated!

I was able to resolve this issue with some help from xxxbugxxx:

make CPPFLAGS="$(pkg-config --cflags glib-2.0)" LIBS="$(pkg-config --libs glib-2.0)"

make install
 
Hi there, great job!

I'm compiling it for Armbian Xenial on an Orange Pi Zero Plus but am getting this warning:

Code:
configure: WARNING: unrecognized options: --enable-sacdiso

Other than that, it compiles just fine but (of course) it doesn't end up supporting SACD ISO files.

Any idea what I'm missing?
 
Status
Not open for further replies.