General NAS-Central Forums

Welcome to the NAS community
It is currently Thu Dec 14, 2017 10:41 pm

All times are UTC




Post new topic Reply to topic  [ 69 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
PostPosted: Mon Mar 14, 2016 5:02 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2314
MrDini wrote:
root@NSA320S:~# pkg-config --libs libavformat
-lavformat
The output above doesn't corresponds to your cmus configuration output below:
Quote:
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:
sed -i 's|opusfile|opus|g' configure


Top
 Profile  
 
PostPosted: Mon Mar 14, 2016 5:15 pm 
Online
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 605
I'm using your ffmpeg! I tried a reinstall, but the issue is still the same...

Here are the last lines of configure:

Code:
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! :)


Top
 Profile  
 
PostPosted: Mon Mar 14, 2016 5:17 pm 
Online
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 605
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! :)


Top
 Profile  
 
PostPosted: Mon Mar 14, 2016 5:21 pm 
Online
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 605
Unfortunatelly with removed libav and reinstalled ffmpeg the issue is the same...

_________________
Thanks nas-central the lot of help! :)


Top
 Profile  
 
PostPosted: Mon Mar 14, 2016 5:39 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2314
Paste full config output after libav remove and ffmpeg reinstallation.


Top
 Profile  
 
PostPosted: Mon Mar 14, 2016 6:01 pm 
Online
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 605
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! :)


Top
 Profile  
 
PostPosted: Mon Mar 14, 2016 6:13 pm 
Online
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 605
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:
  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! :)


Top
 Profile  
 
PostPosted: Mon Mar 14, 2016 6:18 pm 
Online
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 605
I changed the opusfile.h to simple opus.h...:

Code:
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! :)


Top
 Profile  
 
PostPosted: Mon Mar 14, 2016 6:24 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2314
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.


Top
 Profile  
 
PostPosted: Mon Mar 14, 2016 6:28 pm 
Online
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 605
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! :)


Top
 Profile  
 
PostPosted: Mon Mar 14, 2016 6:35 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2314
Regarding opus. Forget about sed -i 's|opusfile|opus|g' configure .
opusfile is different from libopus. My mistake :o


Top
 Profile  
 
PostPosted: Mon Mar 14, 2016 6:39 pm 
Online
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 605
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! :)


Top
 Profile  
 
PostPosted: Mon Mar 14, 2016 6:56 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2314
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


Top
 Profile  
 
PostPosted: Mon Mar 14, 2016 7:56 pm 
Online
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 605
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! :)


Top
 Profile  
 
PostPosted: Mon Mar 14, 2016 8:36 pm 
Online
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 605
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:
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! :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 69 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC


Who is online

Users browsing this forum: MrDini, osisisyda and 50 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group