Play sounds with nsa320s?

Marvell Kirkwood based
barmalej2
Posts: 2382
Joined: Sun Apr 29, 2012 5:24 pm

Re: Play sounds with nsa320s?

Post by barmalej2 » Mon Mar 14, 2016 5:02 pm

MrDini wrote:root@NSA320S:~# pkg-config --libs libavformat
-lavformat
The output above doesn't corresponds to your cmus configuration output below:
checking for FFMPEG_LIBS (pkg-config)... -lavformat -lavcodec
Seems like you didn't used mine ffmpeg that time!

cmus configure script incorrectly searches for opus libs. Correct that:

Code: Select all

sed -i 's|opusfile|opus|g' configure 

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Play sounds with nsa320s?

Post by MrDini » Mon Mar 14, 2016 5:15 pm

I'm using your ffmpeg! I tried a reinstall, but the issue is still the same...

Here are the last lines of configure:

Code: Select all

checking for OPUS_LIBS (pkg-config)... -lopus
checking for OPUS_CFLAGS (pkg-config)... -I/ffp/include/opus
checking for WAVPACK_LIBS (pkg-config)... no
checking for WAVPACK_LIBS (-lwavpack)... no
checking for header <mp4v2/mp4v2.h>... no
checking for header <mp4.h>... no
checking for header <neaacdec.h>... yes
checking for AAC_LIBS (-lfaad -lm)... yes
checking for FFMPEG_LIBS (pkg-config)... -lavformat -lavcodec
checking for FFMPEG_CFLAGS (pkg-config)...
checking for header <libavcodec/avcodec.h>... yes
checking for successful build of ffmpeg.c... no
configure failed.
Thanks nas-central the lot of help! :)

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Play sounds with nsa320s?

Post by MrDini » Mon Mar 14, 2016 5:17 pm

Oh! I have libav too. I think that is worse thing... :oops:

I'm goin' to try without av.
Thanks nas-central the lot of help! :)

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Play sounds with nsa320s?

Post by MrDini » Mon Mar 14, 2016 5:21 pm

Unfortunatelly with removed libav and reinstalled ffmpeg the issue is the same...
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2382
Joined: Sun Apr 29, 2012 5:24 pm

Re: Play sounds with nsa320s?

Post by barmalej2 » Mon Mar 14, 2016 5:39 pm

Paste full config output after libav remove and ffmpeg reinstallation.

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Play sounds with nsa320s?

Post by MrDini » Mon Mar 14, 2016 6:01 pm

Okay, a minute...

Regarding xmms. I compiled the whole glib-1.3 and I installed all of required dependecies, but it isn't contains glib-config... :(

I read at another topic the glib-config is came from gtk+ package. But it is not logic... (I think...)
Thanks nas-central the lot of help! :)

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Play sounds with nsa320s?

Post by MrDini » Mon Mar 14, 2016 6:13 pm

I Can't believe it! It works! (The configure) I reinstalled your ffmpeg and I deleted the cmus source(github version --> development) After it, I downloaded the stable relase from cmus homepage and I tried the configure. Now it works!!! (only the configure) The libav is not important. If installed it also works.

But the make says:

Code: Select all

  CC     opus.lo
opus.c:25:22: fatal error: opusfile.h: No such file or directory #include <opusfile.h>
                      ^
compilation terminated.
scripts/lib.mk:76: recipe for target 'opus.lo' failed
make: *** [opus.lo] Error 1
I will change the opusfile.h to opus.h, but now I've to go out... :/
Thanks nas-central the lot of help! :)

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Play sounds with nsa320s?

Post by MrDini » Mon Mar 14, 2016 6:18 pm

I changed the opusfile.h to simple opus.h...:

Code: Select all

root@NSA320S:/i-data/bf835951/build/cmus-2.7.1# make
   CC     opus.lo
opus.c:36:2: error: unknown type name 'OggOpusFile'
  OggOpusFile *of;
  ^
opus.c:69:8: error: unknown type name 'OpusFileCallbacks'
 static OpusFileCallbacks callbacks = {
        ^
opus.c:70:2: error: field name not in record or union initializer
  .read = read_func,
  ^
opus.c:70:2: error: (near initialization for 'callbacks')
opus.c:70:2: warning: initialization makes integer from pointer without a cast
opus.c:70:2: warning: (near initialization for 'callbacks')
opus.c:71:2: error: field name not in record or union initializer
  .seek = seek_func,
  ^
opus.c:71:2: error: (near initialization for 'callbacks')
opus.c:71:2: warning: excess elements in scalar initializer
opus.c:71:2: warning: (near initialization for 'callbacks')
opus.c:72:2: error: field name not in record or union initializer
  .tell = tell_func,
  ^
opus.c:72:2: error: (near initialization for 'callbacks')
opus.c:72:2: warning: excess elements in scalar initializer
opus.c:72:2: warning: (near initialization for 'callbacks')
opus.c:73:2: error: field name not in record or union initializer
  .close = close_func
  ^
opus.c:73:2: error: (near initialization for 'callbacks')
opus.c:74:1: warning: excess elements in scalar initializer
 };
 ^
opus.c:74:1: warning: (near initialization for 'callbacks')
opus.c: In function 'opus_open':
opus.c:86:2: error: implicit declaration of function 'op_fdopen' [-Werror=implicit-function-declaration]
  source = op_fdopen(&callbacks, ip_data->fd, "r");
  ^
opus.c:86:9: warning: assignment makes pointer from integer without a cast
  source = op_fdopen(&callbacks, ip_data->fd, "r");
         ^
opus.c:92:2: error: implicit declaration of function 'op_open_callbacks' [-Werror=implicit-function-declaration]
  priv->of = op_open_callbacks(source, &callbacks, NULL, 0, &rc);
  ^
opus.c:92:11: warning: assignment makes pointer from integer without a cast
  priv->of = op_open_callbacks(source, &callbacks, NULL, 0, &rc);
           ^
opus.c: In function 'opus_close':
opus.c:116:2: error: implicit declaration of function 'op_free' [-Werror=implicit-function-declaration]
  op_free(priv->of);
  ^
opus.c: In function 'opus_read':
opus.c:139:2: error: implicit declaration of function 'op_read_stereo' [-Werror=implicit-function-declaration]
  samples = op_read_stereo(priv->of, (void*)buffer,
  ^
opus.c:143:8: error: 'OP_HOLE' undeclared (first use in this function)
   case OP_HOLE:
        ^
opus.c:143:8: note: each undeclared identifier is reported only once for each function it appears in
opus.c:147:8: error: 'OP_EREAD' undeclared (first use in this function)
   case OP_EREAD:
        ^
opus.c:151:8: error: 'OP_EFAULT' undeclared (first use in this function)
   case OP_EFAULT:
        ^
opus.c:155:8: error: 'OP_EIMPL' undeclared (first use in this function)
   case OP_EIMPL:
        ^
opus.c:158:8: error: 'OP_EINVAL' undeclared (first use in this function)
   case OP_EINVAL:
        ^
opus.c:162:8: error: 'OP_ENOTFORMAT' undeclared (first use in this function)
   case OP_ENOTFORMAT:
        ^
opus.c:165:8: error: 'OP_EBADHEADER' undeclared (first use in this function)
   case OP_EBADHEADER:
        ^
opus.c:168:8: error: 'OP_EVERSION' undeclared (first use in this function)
   case OP_EVERSION:
        ^
opus.c:171:8: error: 'OP_EBADPACKET' undeclared (first use in this function)
   case OP_EBADPACKET:
        ^
opus.c:175:8: error: 'OP_EBADLINK' undeclared (first use in this function)
   case OP_EBADLINK:
        ^
opus.c:179:8: error: 'OP_EBADTIMESTAMP' undeclared (first use in this function)
   case OP_EBADTIMESTAMP:
        ^
opus.c:190:3: error: implicit declaration of function 'op_current_link' [-Werror=implicit-function-declaration]
   current_link = op_current_link(priv->of);
   ^
opus.c: In function 'opus_seek':
opus.c:215:2: error: implicit declaration of function 'op_pcm_seek' [-Werror=implicit-function-declaration]
  rc = op_pcm_seek(priv->of, offset * SAMPLING_RATE);
  ^
opus.c:217:7: error: 'OP_ENOSEEK' undeclared (first use in this function)
  case OP_ENOSEEK:
       ^
opus.c:219:7: error: 'OP_EINVAL' undeclared (first use in this function)
  case OP_EINVAL:
       ^
opus.c:221:7: error: 'OP_EREAD' undeclared (first use in this function)
  case OP_EREAD:
       ^
opus.c:223:7: error: 'OP_EFAULT' undeclared (first use in this function)
  case OP_EFAULT:
       ^
opus.c:225:7: error: 'OP_EBADLINK' undeclared (first use in this function)
  case OP_EBADLINK:
       ^
opus.c: In function 'opus_read_comments':
opus.c:236:8: error: unknown type name 'OpusTags'
  const OpusTags *ot;
        ^
opus.c:241:2: error: implicit declaration of function 'op_tags' [-Werror=implicit-function-declaration]
  ot = op_tags(priv->of, -1);
  ^
opus.c:241:5: warning: assignment makes pointer from integer without a cast
  ot = op_tags(priv->of, -1);
     ^
opus.c:248:20: error: request for member 'comments' in something not a structure or union
  for (i = 0; i < ot->comments; i++) {
                    ^
opus.c:249:23: error: request for member 'user_comments' in something not a structure or union
   const char *str = ot->user_comments[i];
                       ^
opus.c: In function 'opus_duration':
opus.c:270:2: error: unknown type name 'ogg_int64_t'
  ogg_int64_t samples;
  ^
opus.c:274:2: error: implicit declaration of function 'op_pcm_total' [-Werror=implicit-function-declaration]
  samples = op_pcm_total(priv->of, -1);
  ^
opus.c: In function 'opus_bitrate':
opus.c:288:2: error: implicit declaration of function 'op_bitrate' [-Werror=implicit-function-declaration]
  bitrate = op_bitrate(priv->of, -1);
  ^
opus.c: In function 'opus_current_bitrate':
opus.c:302:2: error: implicit declaration of function 'op_bitrate_instant' [-Werror=implicit-function-declaration]
  bitrate = op_bitrate_instant(priv->of);
  ^
cc1: some warnings being treated as errors
scripts/lib.mk:76: recipe for target 'opus.lo' failed
make: *** [opus.lo] Error 1
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2382
Joined: Sun Apr 29, 2012 5:24 pm

Re: Play sounds with nsa320s?

Post by barmalej2 » Mon Mar 14, 2016 6:24 pm

MrDini wrote:Regarding xmms. I compiled the whole glib-1.3 and I installed all of required dependecies, but it isn't contains glib-config... :(

I read at another topic the glib-config is came from gtk+ package. But it is not logic... (I think...)
Indeed, I didn't find glib-config in glib-1.3.x source also, but in glib-1.2.x it is present.
Somehow you understand my statements differently. I didn't said that xmms should be linked to glib 1.x. Actually it should use glib2.x and that is your task to figure out how to do that.

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Play sounds with nsa320s?

Post by MrDini » Mon Mar 14, 2016 6:28 pm

barmalej2 wrote:
MrDini wrote:Regarding xmms. I compiled the whole glib-1.3 and I installed all of required dependecies, but it isn't contains glib-config... :(

I read at another topic the glib-config is came from gtk+ package. But it is not logic... (I think...)
Indeed, I didn't find glib-config in glib-1.3.x source also, but in glib-1.2.x it is present.
Somehow you understand my statements differently. I didn't said that xmms should be linked to glib 1.x. Actually it should use glib2.x and that is your task to figure out how to do that.
Me? Are you kidding? :) I haven't got an idea how to solve this... I will write a letter for the developers, or I will try an older package.
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2382
Joined: Sun Apr 29, 2012 5:24 pm

Re: Play sounds with nsa320s?

Post by barmalej2 » Mon Mar 14, 2016 6:35 pm

Regarding opus. Forget about sed -i 's|opusfile|opus|g' configure .
opusfile is different from libopus. My mistake :o

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Play sounds with nsa320s?

Post by MrDini » Mon Mar 14, 2016 6:39 pm

barmalej2 wrote:Regarding opus. Forget about sed -i 's|opusfile|opus|g' configure .
opusfile is different from libopus. My mistake :o
No problem. My favourite Latin sentence: Errare humanum est! ;)
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2382
Joined: Sun Apr 29, 2012 5:24 pm

Re: Play sounds with nsa320s?

Post by barmalej2 » Mon Mar 14, 2016 6:56 pm

MrDini wrote:Me? Are you kidding? :) I haven't got an idea how to solve this... I will write a letter for the developers, or I will try an older package.
If xmms can work with only glib 1.2.x, then it is very outdated source.
I wouldn't use it in latter case, but everyone chooses for himself.
BTW. There is xmms2, which uses glib2:
https://xmms2.org/wiki/Download_XMMS2#Source

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Play sounds with nsa320s?

Post by MrDini » Mon Mar 14, 2016 7:56 pm

The nas today jokes with me! I installed cmus but it says no modules loaded. And a lot of error answers the "why" question for each module. If I press enter the cmus gui shows up. So I typed ":add <music library>" and after it I Can show my musics. That's ok. The first (without ffmpeg) compilation also same situation. But when I open a music with enter it starts to play the music!!! That's amazing! :D But I can't change the volume and the default is too loud... I will read the manpage. :)

Thanks for your patience and support. I will change my signature to "Thanks barmalej2!" :D.
Thanks nas-central the lot of help! :)

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Play sounds with nsa320s?

Post by MrDini » Mon Mar 14, 2016 8:36 pm

barmalej2 wrote:
MrDini wrote:Me? Are you kidding? :) I haven't got an idea how to solve this... I will write a letter for the developers, or I will try an older package.
If xmms can work with only glib 1.2.x, then it is very outdated source.
I wouldn't use it in latter case, but everyone chooses for himself.
BTW. There is xmms2, which uses glib2:
https://xmms2.org/wiki/Download_XMMS2#Source
Thanks for the link! But I never seen installer with waf file before this package... The configure is ok, but the waf build not works...

Code: Select all

root@NSA320S:/i-data/bf835951/build/xmms2-0.8DrO_o# ./waf build
Waf: Entering directory `/i-data/bf835951/build/xmms2-0.8DrO_o/_build_'
[  1/246] xsubpp: src/clients/lib/perl/XMMSClientCollection.xs -> _build_/src/clients/lib/perl/XMMSClientCollection.c
Undefined subroutine &ExtUtils::ParseXS::errors called at /ffp/lib/perl5/5.14.2/ExtUtils/xsubpp line 41.
Waf: Leaving directory `/i-data/bf835951/build/xmms2-0.8DrO_o/_build_'
Build failed
 -> task failed (exit status 255):
        {task 1086083888: xsubpp XMMSClientCollection.xs -> XMMSClientCollection.c}
' /ffp/bin/perl /ffp/lib/perl5/5.14.2/ExtUtils/xsubpp -noprototypes -typemap /ffp/lib/perl5/5.14.2/ExtUtils/typemap ../src/clients/lib/perl/XMMSClientCollection.xs > src/clients/lib/perl/XMMSClientCollection.c '
Thanks nas-central the lot of help! :)

Post Reply