LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   slackware 14.0 gst-plugins-bad opus error (http://www.linuxquestions.org/questions/slackware-14/slackware-14-0-gst-plugins-bad-opus-error-4175476277/)

dumdadum 09-07-2013 07:31 AM

slackware 14.0 gst-plugins-bad opus error
 
Hello,

I have a problem with compiling gst-plugins-bad with the slackbuilds.org script for slackware 14.0. The error seems to be with the opus dependancy. Can anyone tell me what to do? Here is the error message:

Code:

make -C opus
make[3]: Entering directory `/tmp/SBo/gst-plugins-bad-0.10.23/ext/opus'
  CC    libgstopus_la-gstopus.lo
  CC    libgstopus_la-gstopusdec.lo
gstopusdec.c: In function 'opus_dec_chain_parse_data':
gstopusdec.c:361:67: error: 'opusdec_debug' undeclared (first use in this function)
gstopusdec.c:361:67: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [libgstopus_la-gstopusdec.lo] Error 1
make[3]: Leaving directory `/tmp/SBo/gst-plugins-bad-0.10.23/ext/opus'
make[2]: *** [opus] Error 2
make[2]: Leaving directory `/tmp/SBo/gst-plugins-bad-0.10.23/ext'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/gst-plugins-bad-0.10.23'
make: *** [all] Error 2

I tried rebuilding opus and recompiling but still same error.

Thanks for the help,
Dumdadum

ponce 09-07-2013 08:47 AM

apply this patch just before the ./configure block in the gst-plugins-bad.SlackBuild.

business_kid 09-07-2013 08:52 AM

Quote:

gstopusdec.c: In function 'opus_dec_chain_parse_data':
gstopusdec.c:361:67: error: 'opusdec_debug' undeclared (first use in this function)
You're missing something. Probably an include file (ending in .h). Grep for opusdec_debug, and if that fails, google for it.
Code:

grep -r    opusdec_debug  /usr/include/*
Substitute other include directories for /usr/include. Then go to google

dumdadum 09-07-2013 08:56 AM

Quote:

Originally Posted by ponce (Post 5023623)
apply this patch just before the ./configure block in the gst-plugins-bad.SlackBuild.

Ok will do... Just so I understand, is this the code? I checked out the "patch" link you gave and am not sure of what section of that "patch" link to put in the gst-plugins-bad script...

Code:

diff --git a/ext/opus/gstopusdec.c b/ext/opus/gstopusdec.c
index c1bbcc7..d01fb0f 100644
--- a/ext/opus/gstopusdec.c
+++ b/ext/opus/gstopusdec.c
@@ -363,7 +363,7 @@ opus_dec_chain_parse_data (GstOpusDec * dec, GstBuffer * buffer)
 
    GST_DEBUG_OBJECT (dec, "Creating decoder with %d channels, %d Hz",
        dec->n_channels, dec->sample_rate);
-#ifndef GST_DISABLE_DEBUG
+#ifndef GST_DISABLE_GST_DEBUG
    gst_opus_common_log_channel_mapping_table (GST_ELEMENT (dec), opusdec_debug,
        "Mapping table", dec->n_channels, dec->channel_mapping);
 #endif
diff --git a/ext/opus/gstopusenc.c b/ext/opus/gstopusenc.c
index 4c05028..ca12450 100644
--- a/ext/opus/gstopusenc.c
+++ b/ext/opus/gstopusenc.c
@@ -588,7 +588,7 @@ gst_opus_enc_setup_channel_mappings (GstOpusEnc * enc,
      }
    }
 
-#ifndef GST_DISABLE_DEBUG
+#ifndef GST_DISABLE_GST_DEBUG
    GST_INFO_OBJECT (enc,
        "Mapping tables built: %d channels, %d stereo streams", enc->n_channels,
        enc->n_stereo_streams);
@@ -655,7 +655,7 @@ gst_opus_enc_setup (GstOpusEnc * enc)
 {
  int error = OPUS_OK;
 
-#ifndef GST_DISABLE_DEBUG
+#ifndef GST_DISABLE_GST_DEBUG
  GST_DEBUG_OBJECT (enc,
      "setup: %d Hz, %d channels, %d stereo streams, family %d",
      enc->sample_rate, enc->n_channels, enc->n_stereo_streams,
diff --git a/gst/jpegformat/gstjpegparse.c b/gst/jpegformat/gstjpegparse.c
index b3c4010..bca723d 100644
--- a/gst/jpegformat/gstjpegparse.c
+++ b/gst/jpegformat/gstjpegparse.c
@@ -545,7 +545,7 @@ gst_jpeg_parse_skip_marker (GstJpegParse * parse,
  if (!gst_byte_reader_get_uint16_be (reader, &size))
    return FALSE;
 
-#ifndef GST_DISABLE_DEBUG
+#ifndef GST_DISABLE_GST_DEBUG
  /* We'd pry the id of the skipped application segment */
  if (marker >= APP0 && marker <= APP15) {
    const gchar *id_str = NULL;
@@ -561,7 +561,7 @@ gst_jpeg_parse_skip_marker (GstJpegParse * parse,
 #else
  GST_DEBUG_OBJECT (parse, "unhandled marker %x skiping %u bytes", marker,
      size);
-#endif // GST_DISABLE_DEBUG
+#endif // GST_DISABLE_GST_DEBUG
 
  if (!gst_byte_reader_skip (reader, size - 2))
    return FALSE;

Thanks,
Dumdadum

dumdadum 09-07-2013 09:07 AM

Quote:

Originally Posted by business_kid (Post 5023626)
You're missing something. Probably an include file (ending in .h). Grep for opusdec_debug, and if that fails, google for it.
Code:

grep -r    opusdec_debug  /usr/include/*
Substitute other include directories for /usr/include. Then go to google

I tried to google and also to look in linuxquestions.org posts and didnt find anything usefull other than the "patch" our dear friend spoke about. Correct me if I'm wrong, but if the .h file isnt there, isnt the opus team suppose to supply it? I'll try to see for a .cpp file and maybe do the .h manually, but still, I'm supprised to be the first one to ask about this error in the compiling of the gst-plugins-bad.

I'll post later after the reply for the patch to apply in the slackbuilds.org script.

Thanks mate,
Dumdadum

ponce 09-07-2013 09:18 AM

I prepared for you an all-inclusive one for easy applying: download this and save it somewhere as my.patch.
go in the gst-plugins-bad.Slackbuild directory and launch this command
Code:

patch -p1 < /path/to/my.patch
then launch the build

dumdadum 09-07-2013 09:33 AM

Quote:

Originally Posted by ponce (Post 5023647)
I prepared for you an all-inclusive one for easy applying: download this and save it somewhere as my.patch.
go in the gst-plugins-bad.Slackbuild directory and launch this command
Code:

patch -p1 < /path/to/my.patch
then launch the build

Will do, I'll keep you posted.

Thanks,
Dumdadum

dumdadum 09-07-2013 10:08 AM

Quote:

Originally Posted by ponce (Post 5023647)
I prepared for you an all-inclusive one for easy applying: download this and save it somewhere as my.patch.
go in the gst-plugins-bad.Slackbuild directory and launch this command
Code:

patch -p1 < /path/to/my.patch
then launch the build

Here is what I get after the command "patch p1 < my.patch" :

Code:

(Stripping trailing CRs from patch.)
patching file p1
Hunk #1 FAILED at 26.
Hunk #2 FAILED at 71.
patch: **** Can't reopen file p1 : No such file or directory

Dont know what to do next. Waiting for your reply.

Thanks,
Dumdadum

ponce 09-07-2013 10:08 AM

you are missing a "-"

dumdadum 09-07-2013 10:52 AM

Quote:

Originally Posted by ponce (Post 5023675)
you are missing a "-"

Quote:

Ahh damn no joke how stupid of me...
Will keep in touch, Thanks,
Dumdadum
Here is what I get with the "-" added...

Code:

(Stripping trailing CRs from patch.)
patching file gst-plugins-bad.SlackBuild
(Stripping trailing CRs from patch.)
patching file opus_jpegformat_unbreak_non-debug_build.patch
patch unexpectedly ends in middle of line
patch: **** malformed patch at line 97:

When I try compiling gst-plugins-bad, I get this error:
Code:

gst-plugins-bad-0.10.23/depcomp
./gst-plugins-bad.SlackBuild: line 75: /root/Desktop/gst-plugins-bad-dropbox/gst-plugins-bad/gst-plugins-bad/opus_jpegformat_unbreak_non-debug_build.patch: No such file or directory

I dont understand. Whats wrong?

Cheers,
Dumdadum

ponce 09-07-2013 12:18 PM

maybe you're not saving the link above but you are cutting and pasting doing something wrong (from a windows machine, I suppose): click on it, when it opens, from your browser menu "file" -> "save_page_as" and save it as "my.patch", then apply as described above.
you can also use a text browser on slack to save the patch file
Code:

links "http://pastebin.com/raw.php?i=sy0ywbrz"
then press "esc", then "f" and then "v" to save the file as "my.patch" and "q" after saving that to quit.

jon lee 09-07-2013 12:31 PM

I think I would just try and compile gstreamer itself again by hand (without the slackbuilds script), and then go through the series of plugins. I just used ./configure --prefix=/usr for it all...
(which may have compiled it with debugging symbols- I dunno).
http://gstreamer.freedesktop.org/src...0.10.36.tar.xz
I say this because that's what I did and didn't come across any problems (on Slackware 14).
In fact, because of your post, I had to check gst-inspect to see if I had the opus plugin (which I do).
http://pastebin.com/dbDK96mP
Also, I thought that it was neat that it picked up my lv2 and ladspa plugins.
I know I haven't come across any plugin problems with clementine after that (did have to install mad and the ugly plugins as well).
Anyway, probably not much help, but good luck.

dumdadum 09-07-2013 01:05 PM

Quote:

Originally Posted by ponce (Post 5023731)
maybe you're not saving the link above but you are cutting and pasting doing something wrong (from a windows machine, I suppose): click on it, when it opens, from your browser menu "file" -> "save_page_as" and save it as "my.patch", then apply as described above.
you can also use a text browser on slack to save the patch file
Code:

links "http://pastebin.com/raw.php?i=sy0ywbrz"
then press "esc", then "f" and then "v" to save the file as "my.patch" and "q" after saving that to quit.

Not from a Windows machine. I use slackware 14.0 from a usbkey and check your replies from yes a Windows machine but saved the patch code you gave me from my slackware 14.0 OS. I'll try again and let you know.

Thanks,
Dumdadum

dumdadum 09-08-2013 07:40 AM

Quote:

Originally Posted by ponce (Post 5023731)
maybe you're not saving the link above but you are cutting and pasting doing something wrong (from a windows machine, I suppose): click on it, when it opens, from your browser menu "file" -> "save_page_as" and save it as "my.patch", then apply as described above.
you can also use a text browser on slack to save the patch file
Code:

links "http://pastebin.com/raw.php?i=sy0ywbrz"
then press "esc", then "f" and then "v" to save the file as "my.patch" and "q" after saving that to quit.

Hi,

I'm not sure what goes wrong, but I get a error message like this:

Code:

(Stripping trailing CRs from patch.)
patching file gst-plugins-bad.SlackBuild
(Stripping trailing CRs from patch.)
patching file opus_jpegformat_unbreak_non-debug_build.patch
patch unexpectedly ends in middle of line
patch: **** malformed patch at line 97:

I did what you said, even though it says raw.php I saved the file as my.patch... What next sir?

Thanks,
Dumdadum

ponce 09-08-2013 09:27 AM

really dunno what's happening to you but let's try in another way: download this (an already patched version of the script on SBo), uncompress it, put the sources tarball inside the resulting directory and launch the build.


All times are GMT -5. The time now is 09:38 AM.