LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   alienBOB's vlc.Slackbuild script fails on libavcodec.pc on Slackware64 14.0 multilib. (http://www.linuxquestions.org/questions/slackware-14/alienbob%27s-vlc-slackbuild-script-fails-on-libavcodec-pc-on-slackware64-14-0-multilib-4175467651/)

indubitableness 06-27-2013 07:43 PM

alienBOB's vlc.Slackbuild script fails on libavcodec.pc on Slackware64 14.0 multilib.
 
I'm trying to build vlc using the restricted slackbuild script located here.

I've used this script in the past on previous versions of Slackware with no troubles though I'm unsure which changes, if any, have been made to it since my last successful build.

The following is a chunk of output immediately prior to the script's failure:

Code:

...

/tmp/build/tmp-vlc/projectM-2.0.1-Source/build
**
**  VLC ...
**
##
## Changing vlc VERSION from '2.0.7' to '2.0.7'
##
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- vlc-20110825/modules/text_renderer/freetype.c.orig        2011-08-25 02:26:05.000000000 +0200
|+++ vlc-20110825/modules/text_renderer/freetype.c        2011-08-25 14:11:55.855465981 +0200
--------------------------
patching file modules/text_renderer/freetype.c
Using Plan A...
Hunk #1 succeeded at 59 (offset 4 lines).
done
grep: /tmp/build/tmp-vlc/vlcdeps/usr/lib64/pkgconfig/libavcodec.pc: No such file or directory
sed: can't read /tmp/build/tmp-vlc/vlcdeps/usr/lib64/pkgconfig/libavcodec.pc: No such file or directory

At this point the script fails. I'm unsure how to proceed troubleshooting the issue.

stormtracknole 06-27-2013 09:48 PM

Quote:

Originally Posted by indubitableness (Post 4979924)
I'm trying to build vlc using the restricted slackbuild script located here.

I've used this script in the past on previous versions of Slackware with no troubles though I'm unsure which changes, if any, have been made to it since my last successful build.

The following is a chunk of output immediately prior to the script's failure:

Code:

...

/tmp/build/tmp-vlc/projectM-2.0.1-Source/build
**
**  VLC ...
**
##
## Changing vlc VERSION from '2.0.7' to '2.0.7'
##
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- vlc-20110825/modules/text_renderer/freetype.c.orig        2011-08-25 02:26:05.000000000 +0200
|+++ vlc-20110825/modules/text_renderer/freetype.c        2011-08-25 14:11:55.855465981 +0200
--------------------------
patching file modules/text_renderer/freetype.c
Using Plan A...
Hunk #1 succeeded at 59 (offset 4 lines).
done
grep: /tmp/build/tmp-vlc/vlcdeps/usr/lib64/pkgconfig/libavcodec.pc: No such file or directory
sed: can't read /tmp/build/tmp-vlc/vlcdeps/usr/lib64/pkgconfig/libavcodec.pc: No such file or directory

At this point the script fails. I'm unsure how to proceed troubleshooting the issue.

I had the same issue on my multilib setup and the way I got around it was to build it against a pure 64-bit in a virtual machine.

indubitableness 06-28-2013 03:19 AM

Oh thanks stormtracknole! I didn't even suspect that was the problem. I'll give it a try and report back.

Alien Bob 06-28-2013 05:44 AM

If you captured the full log of the compilation you should be able to find the real error which must have occurrent much earlier (looks like ffmpeg did not build).

If you download my checkpkg script you can let t hat script look for errors.
Suppose you captured the compilation log in a file "output.log" using the commandline "./vlc.SlackBuild 2>&1 | tee output.log" then run the script like this:
Code:

sh checkpkg -l output.log
and post the results in this thread. VLC should compile on a multilib system.

Eric

stormtracknole 06-28-2013 04:48 PM

Quote:

Originally Posted by Alien Bob (Post 4980160)
If you captured the full log of the compilation you should be able to find the real error which must have occurrent much earlier (looks like ffmpeg did not build).

If you download my checkpkg script you can let t hat script look for errors.
Suppose you captured the compilation log in a file "output.log" using the commandline "./vlc.SlackBuild 2>&1 | tee output.log" then run the script like this:
Code:

sh checkpkg -l output.log
and post the results in this thread. VLC should compile on a multilib system.

Eric

Awesome script! I am sure this will come in handy.

stormtracknole 06-28-2013 04:49 PM

I really should have paid more attention when I was having the script failures. I really haven't had the chance lately to look at this closely and see what is failing. So, I did the lazy thing and built it with the dependencies that I wanted on my virtual machine.

indubitableness 07-08-2013 10:29 PM

Capturing output log presently. Will update with results.

Thanks Alien Bob.

Here is the output from checkpkg:

Code:


++ Checking logfile 'output.log' (no news is good news):
16471  :libupnp-1.6.18/docs/dist/html/upnp/UPNP_E_INIT_FAILED-117.html
16510  :libupnp-1.6.18/docs/dist/html/upnp/UPNP_EVENT_AUTORENEWAL_FAILED.html
22434  :collect2: error: ld returned 1 exit status
22435  :make[3]: *** [libva-glx.la] Error 1
22438  :collect2: error: ld returned 1 exit status
22439  :make[3]: *** [libva-egl.la] Error 1
22441  :make[2]: *** [all-recursive] Error 1
22443  :make[1]: *** [all-recursive] Error 1
22445  :make: *** [all] Error 2
22479  :collect2: error: ld returned 1 exit status
22480  :make[2]: *** [libva-glx.la] Error 1
22482  :make[1]: *** [install-recursive] Error 1
22484  :make: *** [install-recursive] Error 1
26031  :./configure: line 12846: -static: command not found
27898  :make: [lib/libgsm.a] Error 1 (ignored)
27905  :make: [bin/tcat] Error 1 (ignored)
27908  :make: [bin/untoast] Error 1 (ignored)
29871  :ERROR: vaapi not found
29884  :make: *** No rule to make target `/tests/Makefile'.  Stop.
29891  :make: *** No rule to make target `/tests/Makefile'.  Stop.
36375  :echo "doxygen not found, cannot build docs"
36376  :doxygen not found, cannot build docs
36472  :echo "doxygen not found, cannot build docs"
36473  :doxygen not found, cannot build docs


Alien Bob 07-09-2013 02:39 AM

Quote:

Originally Posted by indubitableness (Post 4986676)
Capturing output log presently. Will update with results.

Thanks Alien Bob.

Here is the output from checkpkg:

Looks like the issue you are having is that libva is not compiling. That is why ffmpeg fails to build subsequently (the ffmpeg configure command explicitly mentions "--enable-vaapi" so that a missing vaapi library will cause configuration to fail).

You should check the output.log at the point where libva is being built and inspect that part of the build closely.

The errors you see about Control Room , tcat and untoast are harmless - they are not affecting the build.

Eric

Mark Pettit 07-09-2013 06:37 AM

Nice to see AlienBob answering here, but I suspect he is perhaps too modest to give the best answer : just download the fully built package from his repository :-)

indubitableness 07-12-2013 03:32 AM

Mark. Alien Bob has always been a consistent contributor to these forums.

The prebuilt package can not include restricted codecs. There's a point to this. I am currently using the prebuilt package, but I'm used to building with this script and it irks me that it's failing now when it never did in the past.

I'll explore further what's going on and report back. I'm determined to get this thing to build.

Alien Bob 07-12-2013 03:47 AM

Quote:

Originally Posted by indubitableness (Post 4988938)
Mark. Alien Bob has always been a consistent contributor to these forums.

The prebuilt package can not include restricted codecs. There's a point to this. I am currently using the prebuilt package, but I'm used to building with this script and it irks me that it's failing now when it never did in the past.

I'll explore further what's going on and report back. I'm determined to get this thing to build.

Just FYI:

The version of the VLC package which includes MP3 and AAC encoders, and DeCSS DVD decryption tech, can be downloaded here: http://taper.alienbase.nl/mirrors/pe...ackbuilds/vlc/

Eric

Alien Bob 07-12-2013 03:56 AM

Did you perhaps update the version of the libva library which is used in the build? The version I use (libva_0.32.0-1+sds2.tar.gz) can no longer be downloaded now that its development has been taken over by freedesktop.org. The newer versions 1.x which are released by freedesktop.org caused issues for me and therefore I stuck with the original source.

Eric

Mark Pettit 07-12-2013 11:33 AM

I think it's obvious that this package is not trivial to build - especially to the level of functionality that one gets with the full package. So this is as good an opportunity as one can find to publicly thank Eric (Alien Bob) for the tremendous effort he goes in to keep the build working up to the latest features that VLC provide ... and also for providing prebuilt binaries. Especially the nudge-nudge-wink-wink ones.

stormtracknole 08-19-2013 12:11 PM

Hey Alien,

I am getting now this error on my pure 64-bit box (no multi-lib). I'm including the output of my logfile. I'm custom building vlc to include some extra libraries.
Code:

++ Checking logfile 'output.log' (no news is good news):
16472  :libupnp-1.6.18/docs/dist/html/upnp/UPNP_E_INIT_FAILED-117.html
16511  :libupnp-1.6.18/docs/dist/html/upnp/UPNP_EVENT_AUTORENEWAL_FAILED.html
22435  :collect2: error: ld returned 1 exit status
22436  :make[3]: *** [libva-glx.la] Error 1
22439  :collect2: error: ld returned 1 exit status
22440  :make[3]: *** [libva-egl.la] Error 1
22442  :make[2]: *** [all-recursive] Error 1
22444  :make[1]: *** [all-recursive] Error 1
22446  :make: *** [all] Error 2
22480  :collect2: error: ld returned 1 exit status
22481  :make[2]: *** [libva-glx.la] Error 1
22483  :make[1]: *** [install-recursive] Error 1
22485  :make: *** [install-recursive] Error 1
26029  :./configure: line 12846: -static: command not found
27896  :make: [lib/libgsm.a] Error 1 (ignored)
27903  :make: [bin/tcat] Error 1 (ignored)
27906  :make: [bin/untoast] Error 1 (ignored)
29867  :ERROR: vaapi not found
29880  :make: *** No rule to make target `/tests/Makefile'.  Stop.
29887  :make: *** No rule to make target `/tests/Makefile'.  Stop.
36358  :echo "doxygen not found, cannot build docs"
36359  :doxygen not found, cannot build docs
36455  :echo "doxygen not found, cannot build docs"
36456  :doxygen not found, cannot build docs


Alien Bob 08-19-2013 12:27 PM

I guess I will release my vlc-2.1.0-rc1 package tonight then...
It's only built for Slackware-current but at least you'll get my working vlc.SlackBuild using all the latest libraries (including libva-1.2.1).

Eric


All times are GMT -5. The time now is 09:48 PM.