LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-23-2009, 12:58 PM   #1
Scuzz
Member
 
Registered: Jul 2009
Posts: 35

Rep: Reputation: 16
MPlayer.Slackbuild cant compile.


Im using Slackware-current and im trying to to enable the Slackbuild to use patented code as stated in the SLackBuild. I edited the script to show

USE_PATENTS=${USE_PATENTS:-"NO"}
to
USE_PATENTS="YES"

and it fails all the time with

MPlayer.SlackBuild: line 289: cd: /tmp/build/package-MPlayer/usr/share/mplayer/skins: No such file or directory
MPlayer.SlackBuild FAILED at line 289!

If i leave the Slackbuild script as is it compiles fine.

Any ideas on how to fix this ?
 
Old 09-23-2009, 01:24 PM   #2
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 226

Rep: Reputation: 33
Was there any error in the /tmp/configure-MPlayer.log file? The skins directory is not being created. You should be able to trace the error in the log file.
 
Old 09-23-2009, 01:56 PM   #3
Scuzz
Member
 
Registered: Jul 2009
Posts: 35

Original Poster
Rep: Reputation: 16
The /tmp/configure-MPlayer.log doesnt show any errors but the
error.MPlayer.log shows exactley the same thing s as i posted.
MPlayer.SlackBuild FAILED at line 289!.

I tried adding this to the MPlayer.Slackbuild


# Install our default skin:
mkdir -p $PKG/usr/share/mplayer/skins <---
cd $PKG/usr/share/mplayer/skins

and it compiled and made a package but after its installed it wont work.

No icon and it wont even work through command line.
 
Old 09-23-2009, 02:02 PM   #4
linuxpokernut
Member
 
Registered: Jul 2007
Distribution: Slackware 14
Posts: 237
Blog Entries: 8

Rep: Reputation: 59
Quote:
Originally Posted by Scuzz View Post
Im using Slackware-current and im trying to to enable the Slackbuild to use patented code as stated in the SLackBuild. I edited the script to show

USE_PATENTS=${USE_PATENTS:-"NO"}
to
USE_PATENTS="YES"

and it fails all the time with

MPlayer.SlackBuild: line 289: cd: /tmp/build/package-MPlayer/usr/share/mplayer/skins: No such file or directory
MPlayer.SlackBuild FAILED at line 289!

If i leave the Slackbuild script as is it compiles fine.

Any ideas on how to fix this ?
USE_PATENTS=${USE_PATENTS:-"YES"}

Seems like the answer to me.
 
Old 09-23-2009, 02:06 PM   #5
Scuzz
Member
 
Registered: Jul 2009
Posts: 35

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by linuxpokernut View Post
USE_PATENTS=${USE_PATENTS:-"YES"}

Seems like the answer to me.
the Bottom of the Slackbuild has this written in it.

Code:
** If you are unaffected by patent concerns because you hold the required
** licenses and permission to use the patented code, or reside in a
** location where this is not a concern, and wish to include the patented
** and restricted code (you take all legal responsibility for doing so),
** then edit this SlackBuild script and change the line:
** USE_PATENTS=${USE_PATENTS:-"NO"}
** to:
** USE_PATENTS="YES"
**
 
Old 09-23-2009, 02:12 PM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,259

Rep: Reputation: Disabled
I guess that somewhere earlier the process went off the rails. The difference when setting USE_PATENTS="YES" is that the SlackBuild script will try to checkout the MPlayer sources (the source tarball in Slackware is stripped of patent-encumbered source code). Perhaps this failed on your computer? Then, there could have been compilation issues that you failed to detect but which result in nothing getting installed (so that the directory $PKG/usr/share/mplayer/skins will be absent too).
Compile the package using this command:
Code:
./MPlayer.SlackBuild 2>&1 | tee build.log
which copies every line that gets written to the screen, into the file "build.log". Then, go through the build.log file to find out what went wrong.

Eric
 
Old 09-23-2009, 02:13 PM   #7
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 13.37
Posts: 238

Rep: Reputation: 17
Try linuxpokernut's idea. The worst that can happen is it still doesn't work.
 
Old 09-23-2009, 02:18 PM   #8
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 14.1 32bit
Posts: 725
Blog Entries: 3

Rep: Reputation: 77
Quote:
Originally Posted by Scuzz View Post
The /tmp/configure-MPlayer.log doesnt show any errors but the
error.MPlayer.log shows exactley the same thing s as i posted.
MPlayer.SlackBuild FAILED at line 289!.

I tried adding this to the MPlayer.Slackbuild


# Install our default skin:
mkdir -p $PKG/usr/share/mplayer/skins <---
cd $PKG/usr/share/mplayer/skins

and it compiled and made a package but after its installed it wont work.

No icon and it wont even work through command line.
There are these lines in the Slackbuild script:

Quote:
DEFSKIN=${DEFSKIN:-"Blue"} # Download more skins at the following url:
SKINVER=${SKINVER:-"1.7"} # http://www.mplayerhq.hu/design7/dload.html
...
...
# The default skin to use (we need to add at least one)
SOURCE[1]="$SRCDIR/${DEFSKIN}-${SKINVER}.tar.bz2"
SRCURL[1]="http://www.mplayerhq.hu/MPlayer/skins/${DEFSKIN}-${SKINVER}.tar.bz2"
Did you have the default skin source file Blue-1.7.tar.bz2 in your build directory?
 
Old 09-23-2009, 02:21 PM   #9
Scuzz
Member
 
Registered: Jul 2009
Posts: 35

Original Poster
Rep: Reputation: 16
yes i have Blue-1.7.tar.bz2 .
 
Old 09-23-2009, 02:53 PM   #10
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,259

Rep: Reputation: Disabled
The problem is with that particular snapshot of MPlayer that you are trying to build.
Apparently, the part that gets stripped when building the Slackware package without patent issues, contains a bit of code which was added recently and which prevents successful compilation.

This has more information about your "error: static declaration of 'log2' follows non-static declaration" issue (look it up in your build log): http://lists.mplayerhq.hu/pipermail/...ly/077259.html

Using the latest SVN snapshot of MPlayer fixes your problem
Look for the VERSION definition in MPlayer.SlackBuild and change the value "r29390" to either one of these: "r29709" or "20090923". Both will checkout today's snapshot. Using this version, the MPlayer.SlackBuild script will compile a package with no errors.

Eric
 
Old 09-23-2009, 02:56 PM   #11
larryhaja
Member
 
Registered: Jul 2008
Distribution: Slackware 13.1
Posts: 292

Rep: Reputation: 75
Nevermind.
 
Old 09-23-2009, 03:00 PM   #12
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado
Distribution: Slackware
Posts: 421

Rep: Reputation: 58
Quote:
Originally Posted by Scuzz View Post
Im using Slackware-current and im trying to to enable the Slackbuild to use patented code as stated in the SLackBuild. I edited the script to show

USE_PATENTS=${USE_PATENTS:-"NO"}
to
USE_PATENTS="YES"

and it fails all the time with

MPlayer.SlackBuild: line 289: cd: /tmp/build/package-MPlayer/usr/share/mplayer/skins: No such file or directory
MPlayer.SlackBuild FAILED at line 289!

If i leave the Slackbuild script as is it compiles fine.

Any ideas on how to fix this ?
Scuzz, I had the same issue when I tried to use Eric's script. I must have tried it a half dozen times with different settings. I really wanted it to work for me but no joy.

I ended up using the 12.2 SlackBuild - mplayer (svn_20090413) with the latest player sources - mplayer-export-2009-09-11.tar.bz2. I changed the mplayer.SlackBuild as follows:

Code:
PRGNAM=mplayer
#VERSION=${VERSION:-svn_20090413}
VERSION=${VERSION:-export-2009-09-11}
Maybe not the best solution but my MPlayer seems to be working just fine. Hope that helps.

P.S. I noticed Eric has replied while I was typing and it looks like he already identified what was happening. I might have to give those new instructions a test drive when I get a chance.
 
Old 09-23-2009, 03:09 PM   #13
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,259

Rep: Reputation: Disabled
Quote:
Originally Posted by larryhaja View Post
Nevermind.
Hey! You did not have to remove your post - you have independently come to the same conclusion I made, that a current SVN snapshot works fine. We both posted around the same time... always better to get confirmation from two sources.

Eric
 
Old 09-23-2009, 03:43 PM   #14
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
Seems easier to just install libdvdcss [1] than to rebuild mplayer...
[1] http://slackbuilds.org/repository/13...ies/libdvdcss/
 
Old 09-23-2009, 04:41 PM   #15
Scuzz
Member
 
Registered: Jul 2009
Posts: 35

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by rworkman View Post
Seems easier to just install libdvdcss [1] than to rebuild mplayer...
[1] http://slackbuilds.org/repository/13...ies/libdvdcss/
And you would be correct.

I have to build MPlayer anyway with the --enable-lirc option so i thought this would be a better option. Turns out i was wrong again.

Quote:
Originally Posted by Alien Bob View Post
Using the latest SVN snapshot of MPlayer fixes your problem
Look for the VERSION definition in MPlayer.SlackBuild and change the value "r29390" to either one of these: "r29709" or "20090923". Both will checkout today's snapshot. Using this version, the MPlayer.SlackBuild script will compile a package with no errors.

I tried to compile as you posted above and it compiled fine, But when i try starting MPlayer it just crashes with like 5 different errors on startup before dieing.

Thanks for all your help though.

Im going to just compile the basic source thats on my disk with lirc support and download libdvdcss

Last edited by Scuzz; 09-23-2009 at 04:46 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile error with slackbuild and auctex. Says I'm missing LaTeX. kevin01123 Slackware 9 07-07-2011 08:35 PM
svn MPlayer slackbuild script: r29363 changes = no more docs andrew.46 Slackware 2 06-20-2009 07:52 AM
Question on SlackBuild for Mplayer and libdvdnav Lufbery Slackware 6 01-12-2008 07:25 AM
Slackbuild MPlayer trouble installing DaveXensen Linux - Desktop 1 02-13-2007 02:29 PM
.SlackBuild optimize compile, need help chemtraX Slackware 4 05-27-2004 04:09 PM


All times are GMT -5. The time now is 11:55 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration